Commit d589314a authored by ekuleshov's avatar ekuleshov
Browse files

added support for snapshot builds for uploading to Ibiblio

parent 5f0abdb9
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm-analysis"/>
<project name="asm-analysis" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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/tree/analysis/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM static code analysis framework"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm-attrs"/>
<project name="asm-attrs" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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/attrs/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM Attribute classes"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm-tree"/>
<project name="asm-tree" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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/tree/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM Tree class visitor"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm-util"/>
<project name="asm-util" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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/util/**/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM Utilities"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm-xml"/>
<project name="asm-xml" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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.version}"/>
<attribute name="Implementation-Version" value="${product.artifact}"/>
<attribute name="Implementation-Vendor" value="Eugene Kuleshov"/>
<attribute name="Class-path" value="asm-${product.version}.jar asm-util-${product.version}.jar asm-attrs-${product.version}.jar"/>
<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}/maven-pom-template.xml" toFile="${out.dist.lib}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="asm"/>
<target name="dist" depends="build-jar,build-snapshot"/>
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<target name="build-jar">
<jar jarfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"
basedir="${out.build}">
<include name="org/objectweb/asm/*.class"/>
<manifest>
<attribute name="Implementation-Title" value="ASM"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
<project name="asm" default="dist">
<target name="dist">
<property name="product.id" value="kasm"/>
<project name="kasm" default="dist">
<jar jarfile="${out.dist.lib}/${product.id}-${product.version}.jar"
<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/*.class"/>
<exclude name="org/objectweb/asm/*Adapter.class"/>
<exclude name="org/objectweb/asm/ClassReader.class"/>
<manifest>
<attribute name="Implementation-Title" value="kASM (reduced version of ASM, for code generation only)"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<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}/${product.id}-${product.version}.xml"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.name@" value="${product.id}"/>
<replace file="${out.dist.lib}/${product.id}-${product.version}.xml" token="@product.version@" value="${product.version}"/>
<copy file="${archive}/maven-pom-template.xml" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.name@" value="${ant.project.name}"/>
<replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.xml" token="@product.version@" 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}.xml" toFile="${out.dist.lib}/${ant.project.name}-SNAPSHOT.xml"/>
<echo file="${out.dist.lib}/${ant.project.name}-snapshot-version" message="${product.build.time}"/>
</target>
</project>
......@@ -31,7 +31,8 @@
# Some information about the product
product.name asm
product.version 2.0_alpha
product.version 2.0
product.snapshot yes
###############################################################################
# BUILD
......
......@@ -145,6 +145,16 @@
</target>
<target name="jar" depends="dist.init,compile">
<tstamp>
<format property="product.build.time" pattern="yyyyMMdd.HHmmss"/>
</tstamp>
<condition property="product.artifact" value="${product.version}">
<not><isset property="product.snapshot"/></not>
</condition>
<condition property="product.artifact" value="${product.build.time}">
<isset property="product.snapshot"/>
</condition>
<multipleAnt dir="${archive}"/>
<java classname="org.objectweb.asm.optimizer.JarOptimizer">
<classpath refid="classpath"/>
......
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