-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathantrunner.xml
34 lines (28 loc) · 1.08 KB
/
antrunner.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="tools">
<target name="war"
description="Create war file from the staged site">
<copy todir="${stagingDir}">
<fileset dir="${warSourceDir}">
<include name="**/*"/>
<exclude name="**/.*"/>
</fileset>
</copy>
<zip basedir="${stagingDir}"
destfile="${project.build.directory}/${maven.project.build.finalName}.war">
</zip>
</target>
<target name="site-install"
description="There is no site:install in the Maven plugin so this may be used instead">
<echo>Install ${project.name} site into repo at ${settings.localRepository}</echo>
<exec executable="mvn">
<arg value="-o"/>
<arg value="install:install-file"/>
<arg value="-DgroupId=${project.groupId}"/>
<arg value="-DartifactId=${project.artifactId}"/>
<arg value="-Dversion=${project.version}"/>
<arg value="-Dpackaging=jar"/>
<arg value="-Dclassifier=site"/>
<arg value="-Dfile=${project.build.directory}/${project.groupId}.${project.artifactId}-${project.version}-site.jar"/>
</exec>
</target>
</project>