diff options
author | Przemyslaw <prymula76@outlook.com> | 2024-04-01 09:02:22 +0200 |
---|---|---|
committer | Przemyslaw <prymula76@outlook.com> | 2024-04-01 09:02:22 +0200 |
commit | d8afc9f5c2aa97a96ca326c0178a7fc9577afaaf (patch) | |
tree | 730acbaff01acd5ebed98a7c6ee831ccb731706e /build.xml |
Init
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..a4e2204 --- /dev/null +++ b/build.xml @@ -0,0 +1,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> |