User: starksm 
  Date: 02/02/17 10:32:08

  Modified:    .        build.xml
  Log:
  Include version info the in jar manifests
  
  Revision  Changes    Path
  1.16      +21 -3     jboss-j2ee/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-j2ee/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build.xml 17 Feb 2002 09:52:55 -0000      1.15
  +++ build.xml 17 Feb 2002 18:32:08 -0000      1.16
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.15 2002/02/17 09:52:55 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.16 2002/02/17 18:32:08 starksm Exp $ -->
   
   <project default="main" name="JBoss/J2EE">
   
  @@ -164,7 +164,7 @@
   
     <target name="compile" 
          description="Compile all source files."
  -       depends="compile-classes"/>
  +       depends="compile-etc, compile-classes"/>
   
     <!-- Compile all class files -->
     <target name="compile-classes" depends="init">
  @@ -186,6 +186,23 @@
       </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>
   
     <!-- ================================================================== -->
     <!-- Archives                                                           -->
  @@ -201,7 +218,8 @@
       <mkdir dir="${build.lib}"/>
       
       <!-- jboss-j2ee.jar -->
  -    <jar jarfile="${build.lib}/jboss-j2ee.jar">
  +    <jar jarfile="${build.lib}/jboss-j2ee.jar"
  +         manifest="${build.etc}/manifest/version.mf">
         <fileset dir="${build.classes}">
           <include name="javax/ejb/**"/>
           <include name="javax/jms/**"/>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to