summaryrefslogtreecommitdiff
path: root/build.xml
blob: a4e2204399464f78c7d2106160c7cbe61e1b94b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project>

    <target name="clean">
        <delete dir="build"/>
    </target>

    <target name="compile">
        <mkdir dir="build/classes"/>
        <javac srcdir="src" destdir="build/classes"/>
        <fileset file="slownik.txt" />
        <fileset file="bass-bad.wav" />
        <fileset file="smooth-ok.wav" />
				<fileset file="startscreen.jpg" />
    </target>


    <target name="jar">
        <mkdir dir="build/jar"/>
        <jar destfile="build/jar/KopiecKreta.jar" basedir="build/classes">
        <fileset file="slownik.txt" />
        <fileset file="bass-bad.wav" />
        <fileset file="smooth-ok.wav" />
				<fileset file="startscreen.jpg" />
            <manifest>
                <attribute name="Main-Class" value="src.KopiecKreta"/>
            </manifest>
        </jar>
    </target>

    <target name="run">
        <java jar="build/jar/KopiecKreta.jar" fork="true"/>
    </target>

</project>