blob: 5d596f7b3281fae48c4d47c35b5efc0e7b4a8a29 [file] [log] [blame]
<?xml version="1.0"?>
<project default="dist"
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven">
<tstamp>
<format property="today" pattern="yyyyMMdd"/>
</tstamp>
<postGoal name="dist">
<attainGoal name="jar:install"/>
</postGoal>
<postGoal name="dist:prepare-bin-filesystem">
<ant:copy todir="${maven.dist.bin.assembly.dir}">
<ant:fileset dir="${basedir}">
<ant:include name="NOTICE*"/>
</ant:fileset>
</ant:copy>
</postGoal>
<postGoal name="dist:prepare-src-filesystem">
<ant:copy todir="${maven.dist.src.assembly.dir}">
<ant:fileset dir="${basedir}">
<ant:include name="NOTICE*"/>
</ant:fileset>
</ant:copy>
</postGoal>
<!-- Required by nightly build since it is not inherited from build/maven.xml -->
<goal name="copy-distribution">
<ant:mkdir dir="../build/nightly/${pom.artifactId}/"/>
<ant:copy tofile="../build/nightly/${pom.artifactId}/${pom.artifactId}-${pom.currentVersion}-${today}.tar.gz">
<ant:fileset dir="${maven.build.dir}/distributions">
<ant:include name="${pom.artifactId}-${pom.currentVersion}.tar.gz"/>
</ant:fileset>
</ant:copy>
<ant:copy tofile="../build/nightly/${pom.artifactId}/${pom.artifactId}-${pom.currentVersion}-${today}.zip">
<ant:fileset dir="${maven.build.dir}/distributions">
<ant:include name="${pom.artifactId}-${pom.currentVersion}.zip"/>
</ant:fileset>
</ant:copy>
<ant:copy tofile="../build/nightly/${pom.artifactId}/${pom.artifactId}-${pom.currentVersion}-${today}-src.tar.gz">
<ant:fileset dir="${maven.build.dir}/distributions">
<ant:include name="${pom.artifactId}-${pom.currentVersion}-src.tar.gz"/>
</ant:fileset>
</ant:copy>
<ant:copy tofile="../build/nightly/${pom.artifactId}/${pom.artifactId}-${pom.currentVersion}-${today}-src.zip">
<ant:fileset dir="${maven.build.dir}/distributions">
<ant:include name="${pom.artifactId}-${pom.currentVersion}-src.zip"/>
</ant:fileset>
</ant:copy>
</goal>
</project>