<project name="asm-parent" default="dist">
<target name="dist" depends="build-jar,build-snapshot"/>
<target name="build-jar">
<copy file="${archive}/asm-parent.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/>
</target>
<target name="build-snapshot" if="product.snapshot">
<copy file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.pom"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
|