Mercurial > hg > pub > prymula > com
diff kopieckreta/build.xml @ 0:2787f5e749ae
INIT
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 21 Sep 2023 22:33:57 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kopieckreta/build.xml Thu Sep 21 22:33:57 2023 +0200 @@ -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>