created ant build script

main
Codinget 6 years ago
parent 4cba2d1cf3
commit cae1ae1135
  1. 1
      .gitignore
  2. 23
      build.xml

1
.gitignore vendored

@ -1,4 +1,5 @@
/bin/ /bin/
/build/
.classpath .classpath
.project .project
TotallyNotMalware.jar TotallyNotMalware.jar

@ -0,0 +1,23 @@
<project>
<target name="clean">
<delete dir="build" />
</target>
<target name="compile">
<mkdir dir="build/classes" />
<javac srcdir="src" destdir="build/classes" />
<copy todir="build/classes">
<fileset dir="data" />
</copy>
</target>
<target name="jar" depends="compile">
<jar destfile="build/TotallyNotMalware.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="totallynotmalware.TotallyNotMalware" />
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="build/TotallyNotMalware.jar" fork="true" />
</target>
</project>
Loading…
Cancel
Save