Commit 97e0a1ca authored by ebruneton's avatar ebruneton
Browse files

added target for building asm-all jar

parent 1419d888
<project name="asm-all" default="dist">
<target name="dist" depends="build-jar,build-snapshot"/>
<target name="build-jar">
<mkdir dir="${out.dist.lib}/all"/>
<jar jarfile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar"
basedir="${out.build}">
<include name="org/objectweb/asm/**/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM all classes"/>
<attribute name="Implementation-Version" value="${product.artifact}"/>
<attribute name="Implementation-Vendor" value="France Telecom R&amp;D"/>
</manifest>
</jar>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom"/>
<replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/>
<echo file="${out.dist.lib}/all/README.txt">It is highly recommended to use only the necessary ASM jars for your
application instead of using the asm-all jar, unless you really need
all ASM packages.</echo>
</target>
<target name="build-snapshot" if="product.snapshot">
<mkdir dir="${out.dist.lib}/all"/>
<copy file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.jar"/>
<copy file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.pom"/>
<echo file="${out.dist.lib}/all/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment