forked from stoicflame/enunciate-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
37 lines (28 loc) · 1.24 KB
/
build.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
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<project name="wannabecool" basedir="." xmlns:mvn="urn:maven-artifact-ant" default="enunciate">
<target name="clean">
<delete dir="target"/>
</target>
<target name="enunciate">
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" loaderref="antlib.loader">
<classpath>
<fileset dir="${basedir}/lib">
<include name="maven-ant-tasks-*.jar"/>
</fileset>
</classpath>
</typedef>
<mvn:pom id="current.pom" file="${basedir}/pom.xml"/>
<echo message="Current version is: ${current.pom.version}"/>
<mvn:dependencies pathId="enunciate.classpath">
<dependency groupId="com.webcohesion.enunciate" artifactId="enunciate-top" version="2.0.0"/>
</mvn:dependencies>
<mvn:dependencies pathId="project.classpath" pomRefId="current.pom"/>
<taskdef name="enunciate" classname="com.webcohesion.enunciate.EnunciateTask">
<classpath refid="enunciate.classpath" />
</taskdef>
<enunciate basedir="${basedir}/src/main/java" buildDir="${basedir}/target/${current.pom.build.finalName}">
<include name="**/*.java" />
<classpath refid="project.classpath" />
</enunciate>
</target>
</project>