asm-all.xml 1.77 KB
Newer Older
1
2
3
4
5
6
7
8
9
<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"/>
ebruneton's avatar
ebruneton committed
10
      <exclude name="org/objectweb/asm/optimizer/*.class"/>
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
      <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>