<project name="asm" default="dist">
  <target name="dist">
    <property name="product.id" value="asm-xml"/>

    <jar jarfile="${out.dist.lib}/${product.id}-${product.version}.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-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="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}"/>
  </target>
</project>
