Now using Apache Ant to compile.

This commit is contained in:
Deathsbreed 2014-09-21 11:22:22 -05:00
parent a1b8f22383
commit 015da8fd34
2 changed files with 27 additions and 0 deletions

25
build.xml Normal file
View File

@ -0,0 +1,25 @@
<project name="MMMCalc" basedir="." default="main" >
<property name="src.dir" value="src" />
<property name="bin.dir" value="bin" />
<property name="classes.dir" value="${bin.dir}/classes" />
<property name="jar.dir" value="${bin.dir}/jar" />
<property name="main-class" value="mmmcalc.MMMCalc" />
<target name="clean" >
<delete dir="bin" />
</target>
<target name="compile" >
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
</target>
<target name="jar" depends="compile" >
<mkdir dir="${jar.dir}" />
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}" >
<manifest>
<attribute name="Main-Class" value="${main-class}" />
</manifest>
</jar>
</target>
</project>

View File

@ -1,3 +1,5 @@
package mmmcalc;
import java.lang.Math; import java.lang.Math;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;