From: Scott M S. <st...@us...> - 2002-02-17 18:32:09
|
User: starksm Date: 02/02/17 10:32:08 Modified: . build.xml Log: Include version info the in jar manifests Revision Changes Path 1.17 +31 -8 jbosspool/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosspool/build.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- build.xml 17 Feb 2002 09:52:55 -0000 1.16 +++ build.xml 17 Feb 2002 18:32:08 -0000 1.17 @@ -12,7 +12,7 @@ <!-- --> <!-- ====================================================================== --> -<!-- $Id: build.xml,v 1.16 2002/02/17 09:52:55 user57 Exp $ --> +<!-- $Id: build.xml,v 1.17 2002/02/17 18:32:08 starksm Exp $ --> <project default="main" name="JBoss/Pool"> @@ -217,7 +217,7 @@ | documentation compiles. --> <target name="compile" - depends="compile-classes" + depends="compile-classes, compile-etc" description="Compile all source files."/> <!-- Compile all class files --> @@ -241,7 +241,25 @@ <exclude name="**/jdbc/*.*"/> </javac> </target> - + + <!-- Compile manifests --> + <target name="compile-etc" depends="init"> + <mkdir dir="${build.etc}/manifest"/> + <!-- Copy with filtering to replace the following tokens that are + used to make up the jar manifest version information. + --> + <filter token="version.major" value="${version.major}"/> + <filter token="version.minor" value="${version.minor}"/> + <filter token="version.revision" value="${version.revision}"/> + <filter token="version.tag" value="${version.tag}"/> + <filter token="version.name" value="${version.name}"/> + <copy todir="${build.etc}/manifest" filtering="yes"> + <fileset dir="${project.root}/build/etc"> + <include name="version.mf"/> + </fileset> + </copy> + </target> + <!-- Compile resource files - -> <target name="compile-resources" depends="init"> <mkdir dir="${build.resources}"/> @@ -265,7 +283,8 @@ <mkdir dir="${build.lib}"/> <!-- Build jbosspool.jar --> - <jar jarfile="${build.lib}/jbosspool.jar"> + <jar jarfile="${build.lib}/jbosspool.jar" + manifest="${build.etc}/manifest/version.mf"> <fileset dir="${build.classes}"> <include name="**"/> <exclude name="org/jboss/pool/connector/jdbc/*.class"/> @@ -274,7 +293,8 @@ <!-- Create the local transaction JDBC resource adapter --> <!-- Build ra-jdbc-libs.jar - -> - <jar jarfile="${build.lib}/ra-jdbc-libs.jar"> + <jar jarfile="${build.lib}/ra-jdbc-libs.jar" + manifest="${build.etc}/manifest/version.mf"> <fileset dir="${build.classes}"> <include name="org/jboss/pool/connector/jdbc/BaseManagedConnection.class"/> <include name="org/jboss/pool/connector/jdbc/Connection*.class"/> @@ -288,7 +308,8 @@ --> <!-- Build jboss-jdbc.rar - -> - <jar jarfile="${build.lib}/jboss-jdbc.rar"> + <jar jarfile="${build.lib}/jboss-jdbc.rar" + manifest="${build.etc}/manifest/version.mf"> <fileset dir="${build.resources}/jdbc-rar"> <include name="**/*"/> </fileset> @@ -299,7 +320,8 @@ --> <!-- Build ra-xa-libs.jar - -> - <jar jarfile="${build.lib}/ra-xa-libs.jar"> + <jar jarfile="${build.lib}/ra-xa-libs.jar" + manifest="${build.etc}/manifest/version.mf"> <fileset dir="${build.classes}"> <include name="org/jboss/pool/connector/jdbc/BaseManagedConnection.class"/> <include name="org/jboss/pool/connector/jdbc/JDBCDataSource.class"/> @@ -309,7 +331,8 @@ --> <!-- Build jbosspool-xa.rar - -> - <jar jarfile="${build.lib}/jboss-xa.rar"> + <jar jarfile="${build.lib}/jboss-xa.rar" + manifest="${build.etc}/manifest/version.mf"> <fileset dir="${build.resources}/xa-rar"> <include name="**/*"/> </fileset> |