Skip to content

Commit a3d5060

Browse files
committed
Added Ant script for building, booting Jetty and deploying all four web apps in a single command.
1 parent 29c98e8 commit a3d5060

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
1.07 MB
Binary file not shown.

dddsample/build.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<project name="dddsample" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant" default="quickstart">
2+
3+
<path id="maven-ant-tasks.classpath" path="antlib/maven-ant-tasks-2.0.10.jar"/>
4+
5+
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
6+
uri="antlib:org.apache.maven.artifact.ant"
7+
classpathref="maven-ant-tasks.classpath"/>
8+
9+
<artifact:pom file="pom.xml" id="maven"/>
10+
11+
<artifact:dependencies pathId="webapps">
12+
<dependency groupId="se.citerus.dddsample.tracking" artifactId="core" version="${maven.version}" type="war"/>
13+
<dependency groupId="se.citerus.dddsample.tracking" artifactId="bookingui" version="${maven.version}" type="war"/>
14+
<dependency groupId="se.citerus.dddsample.external" artifactId="pathfinder" version="${maven.version}" type="war"/>
15+
<dependency groupId="se.citerus.dddsample.external" artifactId="reporting" version="${maven.version}" type="war"/>
16+
</artifact:dependencies>
17+
18+
<artifact:dependencies pathId="jetty.classpath">
19+
<dependency groupId="org.mortbay.jetty" artifactId="jetty-ant" version="6.1.19"/>
20+
<dependency groupId="org.slf4j" artifactId="slf4j-log4j12" version="1.5.11"/>
21+
</artifact:dependencies>
22+
23+
<taskdef classpathref="jetty.classpath" resource="tasks.properties" loaderref="jetty.loader"/>
24+
25+
<target name="prepare">
26+
<echo>Building...</echo>
27+
<artifact:mvn>
28+
<arg value="-q"/>
29+
<arg value="-DskipTests"/>
30+
<arg value="clean"/>
31+
<arg value="install"/>
32+
</artifact:mvn>
33+
<echo>Done.</echo>
34+
</target>
35+
36+
37+
<target name="jetty.run">
38+
<jetty tempDirectory="target/jetty-temp">
39+
<webApp name="Core" warfile="${se.citerus.dddsample.tracking:core:war}" contextpath="/core"/>
40+
<webApp name="Pathfinder" warfile="${se.citerus.dddsample.external:pathfinder:war}" contextpath="/pathfinder"/>
41+
<webApp name="Booking" warfile="${se.citerus.dddsample.tracking:bookingui:war}" contextpath="/booking"/>
42+
<webApp name="Reporting" warfile="${se.citerus.dddsample.external:reporting:war}" contextpath="/reporting"/>
43+
</jetty>
44+
</target>
45+
46+
<target name="quickstart" depends="prepare,jetty.run"/>
47+
48+
</project>

0 commit comments

Comments
 (0)