1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<project name="asm-xml" default="dist">
<target name="dist" depends="build-jar,build-snapshot"/>
<target name="build-jar">
<jar jarfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"
basedir="${out.build}">
<include name="org/objectweb/asm/xml/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM XML classes"/>
<attribute name="Implementation-Version" value="${product.artifact}"/>
<attribute name="Implementation-Vendor" value="Eugene Kuleshov"/>
<attribute name="Class-path" value="asm-${product.artifact}.jar asm-util-${product.artifact}.jar asm-attrs-${product.artifact}.jar"/>
<attribute name="Main-class" value="org.objectweb.asm.xml.Processor"/>
</manifest>
</jar>
<copy file="${archive}/asm-xml.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}.jar" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.jar"/>
<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>
|