File: asm-util.xml

package info (click to toggle)
asm3 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,180 kB
  • ctags: 3,898
  • sloc: java: 37,049; xml: 1,814; makefile: 44
file content (27 lines) | stat: -rw-r--r-- 1,431 bytes parent folder | download | duplicates (4)
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
<project name="asm-util" 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/util/**/*.class"/>
      <manifest>
        <attribute name="Implementation-Title" value="ASM Utilities"/>
        <attribute name="Implementation-Version" value="${product.artifact}"/> 
        <attribute name="Implementation-Vendor" value="France Telecom R&amp;D"/>
      </manifest>
    </jar>

    <copy file="${archive}/asm-util.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>