generate object and primitive jars in both maven and ant

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rodney Waldhoff 2003-09-16 05:32:54 +00:00
parent 3fa63e40d4
commit c26f01fb1c
2 changed files with 42 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<!-- $Id: build.xml,v 1.38 2003/01/13 23:54:38 rwaldhoff Exp $ --> <!-- $Id: build.xml,v 1.39 2003/09/16 05:32:54 rwaldhoff Exp $ -->
<project name="commons-collections" default="test" basedir="."> <project name="commons-collections" default="test" basedir=".">
<!-- patternset describing files to be copied from the doc directory --> <!-- patternset describing files to be copied from the doc directory -->
@ -71,6 +71,8 @@
<property name="dest.doc.api" value="${dest.doc}/api"/> <property name="dest.doc.api" value="${dest.doc}/api"/>
<property name="dest.jardir" value="${dest}"/> <property name="dest.jardir" value="${dest}"/>
<property name="dest.jardir.jar" value="${dest.jardir}/${name}.jar"/> <property name="dest.jardir.jar" value="${dest.jardir}/${name}.jar"/>
<property name="dest.jardir.object-jar" value="${dest.jardir}/${name}-object.jar"/>
<property name="dest.jardir.primitive-jar" value="${dest.jardir}/${name}-primitive.jar"/>
<property name="bin.name" value="${name}-${component.version}"/> <property name="bin.name" value="${name}-${component.version}"/>
<property name="dest.bin.tar" value="${dest}/${bin.name}.tar"/> <property name="dest.bin.tar" value="${dest}/${bin.name}.tar"/>
@ -266,6 +268,20 @@
<jar jarfile="${dest.jardir.jar}" manifest="${source.src}/conf/MANIFEST.MF"> <jar jarfile="${dest.jardir.jar}" manifest="${source.src}/conf/MANIFEST.MF">
<fileset dir="${workdir}"/> <fileset dir="${workdir}"/>
</jar> </jar>
<jar jarfile="${dest.jardir.object-jar}" manifest="${source.src}/conf/MANIFEST.MF">
<fileset dir="${workdir}">
<exclude name="org/apache/commons/collections/primitives/**"/>
</fileset>
</jar>
<jar jarfile="${dest.jardir.primitive-jar}" manifest="${source.src}/conf/MANIFEST.MF">
<fileset dir="${workdir}">
<include name="META-INF/**"/>
<include name="org/apache/commons/collections/primitives/**"/>
</fileset>
</jar>
<delete dir="${workdir}"/> <delete dir="${workdir}"/>
<delete dir="${dest.classes}"/> <delete dir="${dest.classes}"/>

View File

@ -1,6 +1,30 @@
<project default="java:jar" xmlns:j="jelly:core"> <project default="java:jar" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
<postGoal name="clover:on"> <postGoal name="clover:on">
<j:set var="maven.junit.sysproperties" value="${maven.junit.sysproperties} org.apache.commons.collections:with-clover"/> <j:set var="maven.junit.sysproperties" value="${maven.junit.sysproperties} org.apache.commons.collections:with-clover"/>
<j:set var="org.apache.commons.collections:with-clover" value="true"/> <j:set var="org.apache.commons.collections:with-clover" value="true"/>
</postGoal> </postGoal>
<postGoal name="jar:jar">
<ant:tstamp/>
<ant:property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
<ant:unjar dest="${workdir}" src="${maven.build.dir}/${maven.final.name}.jar"/>
<ant:jar jarfile="${maven.build.dir}/${pom.artifactId}-object-${pom.currentVersion}.jar" manifest="${workdir}/META-INF/MANIFEST.MF">
<ant:fileset dir="${workdir}">
<ant:exclude name="org/apache/commons/collections/primitives/**"/>
<ant:exclude name="META-INF/INDEX.LIST"/>
</ant:fileset>
</ant:jar>
<ant:jar jarfile="${maven.build.dir}/${pom.artifactId}-primitive-${pom.currentVersion}.jar" manifest="${workdir}/META-INF/MANIFEST.MF">
<ant:fileset dir="${workdir}">
<ant:include name="META-INF/**"/>
<ant:exclude name="META-INF/INDEX.LIST"/>
<ant:include name="org/apache/commons/collections/primitives/**"/>
</ant:fileset>
</ant:jar>
<delete dir="${workdir}"/>
</postGoal>
</project> </project>