-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding an ant build file to make sure the ant task is working per #105
- Loading branch information
1 parent
e61de3c
commit ad0b702
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="example" basedir="." xmlns:mvn="urn:maven-artifact-ant"> | ||
|
||
<!--global references to other modules--> | ||
<property name="lib.dir" value="${basedir}/../../lib"/> | ||
|
||
<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="${lib.dir}/build"> | ||
<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="${current.pom.version}"/> | ||
</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" configFile="${basedir}/enunciate.xml" buildDir="${basedir}/target/enunciate-via-ant"> | ||
<include name="**/*.java" /> | ||
<classpath refid="project.classpath" /> | ||
</enunciate> | ||
</target> | ||
|
||
</project> |