| <project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven"> |
| <!-- |
| Disable the src distribution generation, as source files are |
| included the single file distribution, together with the binary |
| distribution. |
| --> |
| <goal name="dist:prepare-src-filesystem" /> |
| <goal name="dist:build-src" /> |
| |
| <preGoal name="xdoc:transform"> |
| <!-- create custom dependencies --> |
| <j:include uri="file:src/xdocs/dependencies.xml" /> |
| </preGoal> |
| |
| <postGoal name="xdoc:jelly-transform" > |
| <ant:echo>Replacing &nbsp;</ant:echo> |
| <ant:delete> |
| <fileset dir="${maven.build.dir}/docs/style" |
| includes="**/maven*.css"/> |
| </ant:delete> |
| </postGoal> |
| |
| <postGoal name="dist:prepare-bin-filesystem" > |
| <ant:mkdir dir="${maven.dist.bin.assembly.dir}/lib" /> |
| <ant:mkdir dir="${maven.dist.bin.assembly.dir}/licenses" /> |
| <j:forEach var="lib" items="${pom.artifacts}"> |
| <j:set var="dep" value="${lib.dependency}" /> |
| <j:if test="${dep.type=='jar'}"> |
| <j:choose> |
| <j:when test="${dep.getProperty('endorsed')}"> |
| <ant:copy |
| todir="${maven.dist.bin.assembly.dir}/lib/endorsed" |
| file="${lib.path}" /> |
| </j:when> |
| <j:otherwise> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}/lib" |
| file="${lib.path}" /> |
| </j:otherwise> |
| </j:choose> |
| </j:if> |
| </j:forEach> |
| <!-- |
| <ant:copy todir="${maven.dist.bin.assembly.dir}/licenses"> |
| <fileset dir="licenses"> |
| <include name="**/*"/> |
| </fileset> |
| </ant:copy> |
| --> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}/src/java"> |
| <fileset dir="src/java"> |
| <include name="**/*"/> |
| </fileset> |
| </ant:copy> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}/src/test"> |
| <fileset dir="src/test"> |
| <include name="**/*"/> |
| </fileset> |
| </ant:copy> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}/xdocs"> |
| <fileset dir="xdocs"> |
| <include name="**/*"/> |
| </fileset> |
| </ant:copy> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}" file="project.xml" /> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}" file="project.properties" /> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}" file="maven.xml" /> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}" file="build.xml" /> |
| <ant:copy todir="${maven.dist.bin.assembly.dir}" file="LICENSE.txt" /> |
| </postGoal> |
| </project> |