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