Skip to content

Commit 3612428

Browse files
committed
Added ANT build.xml
1 parent 0a00ab9 commit 3612428

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

build.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<project name="SampleBuild" default="war" basedir=".">
2+
<path id="compile.classpath">
3+
<fileset dir="WebContent/WEB-INF/lib">
4+
<include name="*.jar"/>
5+
</fileset>
6+
</path>
7+
<target name="init">
8+
<mkdir dir="build/classes"/>
9+
<mkdir dir="dist"/>
10+
</target>
11+
<target name="compile" depends="init">
12+
<javac srcdir="src" debug="true" destdir="build/classes">
13+
<classpath refid="compile.classpath"/>
14+
</javac>
15+
</target>
16+
<target name="war" depends="compile">
17+
<war webxml="WebContent/WEB-INF/web.xml" destfile="dist/SampleWebApp.war">
18+
<fileset dir="WebContent"/>
19+
<lib dir="WebContent/WEB-INF/lib"/>
20+
<classes dir="build/classes"/>
21+
</war>
22+
</target>
23+
</project>
118 Bytes
Binary file not shown.
1.53 KB
Binary file not shown.

build/classes/math/Calculator.class

729 Bytes
Binary file not shown.

dist/SampleWebApp.war

10.9 MB
Binary file not shown.

src/example/junit/TestCalculator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.junit.After;
44
import org.junit.Before;
55
import org.junit.Test;
6-
import org.junit.Assert.*;
6+
import static org.junit.Assert.*;
77

88
public class TestCalculator {
99

0 commit comments

Comments
 (0)