| <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven"> |
| <preGoal name="xdoc:transform"> |
| <!-- create custom dependencies --> |
| <j:include uri="file:src/xdocs/dependencies.xml" /> |
| </preGoal> |
| <postGoal name="xdoc:jelly-transform" > |
| <ant:delete> |
| <fileset dir="${maven.build.dir}/docs/style" includes="**/maven*.css"/> |
| </ant:delete> |
| <!-- |
| <ant:style force="true" style="src/xdocs/news.xsl" in="${maven.docs.src}/index.xml" out="${maven.docs.dest}/news.rss"/> |
| --> |
| </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"> |
| <fileset dir="src"> |
| <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> |
| |
| <goal name="dist:prepare-src-filesystem" /> |
| <goal name="dist:build-src" /> |
| </project> |