Skip to content

Commit

Permalink
Added ANT build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaynsrinivas committed Jun 23, 2017
1 parent 0a00ab9 commit 3612428
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<project name="SampleBuild" default="war" basedir=".">
<path id="compile.classpath">
<fileset dir="WebContent/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist"/>
</target>
<target name="compile" depends="init">
<javac srcdir="src" debug="true" destdir="build/classes">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<war webxml="WebContent/WEB-INF/web.xml" destfile="dist/SampleWebApp.war">
<fileset dir="WebContent"/>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
</project>
Binary file added build/classes/example/math/package-info.class
Binary file not shown.
Binary file added build/classes/junit/TestCalculator.class
Binary file not shown.
Binary file added build/classes/math/Calculator.class
Binary file not shown.
Binary file added dist/SampleWebApp.war
Binary file not shown.
2 changes: 1 addition & 1 deletion src/example/junit/TestCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.Assert.*;
import static org.junit.Assert.*;

public class TestCalculator {

Expand Down

0 comments on commit 3612428

Please sign in to comment.