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

  Modified:    .        build.xml
  Log:
  Include version info the in jar manifests
  
  Revision  Changes    Path
  1.23      +20 -5     jbossmq/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/build.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- build.xml 17 Feb 2002 09:52:55 -0000      1.22
  +++ build.xml 17 Feb 2002 18:32:08 -0000      1.23
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.22 2002/02/17 09:52:55 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.23 2002/02/17 18:32:08 starksm Exp $ -->
   
   <project default="main" name="JBoss/Messaging">
   
  @@ -364,14 +364,27 @@
   
     <!-- Compile etc files (manifests and such) -->
     <target name="compile-etc" depends="init">
  -    <mkdir dir="${build.etc}"/>
  +    <mkdir dir="${build.etc}/manifest"/>
       <copy todir="${build.etc}" filtering="yes">
         <fileset dir="${source.etc}">
            <include name="**/*"/>
         </fileset>
       </copy>
  -  </target>
   
  +    <!-- 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                                                           -->
  @@ -390,7 +403,8 @@
       </copy>
    
       <!-- Build jbossmq.jar -->
  -    <jar jarfile="${build.lib}/jbossmq.jar">
  +    <jar jarfile="${build.lib}/jbossmq.jar"
  +         manifest="${build.etc}/manifest/version.mf">
         <fileset dir="${build.classes}">
           <include name="**"/>
           <exclude name="log4j.properties"/>
  @@ -398,7 +412,8 @@
       </jar>
   
       <!-- Build jbossmq-client.jar -->
  -    <jar jarfile="${build.lib}/jbossmq-client.jar">
  +    <jar jarfile="${build.lib}/jbossmq-client.jar"
  +         manifest="${build.etc}/manifest/version.mf">
         <fileset dir="${build.classes}">
           <include name="log4j.properties"/>
           <include name="org/jboss/mq/*"/>
  
  
  

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

Reply via email to