jstrachan    2003/01/23 02:55:01

  Modified:    messenger build.xml
  Log:
  regenerated the ant build file so it includes the license & manifest entry in the jar
  
  Revision  Changes    Path
  1.37      +49 -21    jakarta-commons-sandbox/messenger/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/build.xml,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- build.xml 22 Jan 2003 22:31:41 -0000      1.36
  +++ build.xml 23 Jan 2003 10:55:01 -0000      1.37
  @@ -3,6 +3,8 @@
   <project default="jar" name="commons-messenger" basedir=".">
     <property name="defaulttargetdir" value="target">
     </property>
  +  <property name="libdir" value="target/lib">
  +  </property>
     <property name="classesdir" value="target/classes">
     </property>
     <property name="testclassesdir" value="target/test-classes">
  @@ -16,7 +18,7 @@
     <property name="final.name" value="commons-messenger-1.0-dev-10">
     </property>
     <target name="init" description="o Initializes some properties">
  -    <mkdir dir="lib">
  +    <mkdir dir="${libdir}">
       </mkdir>
       <condition property="noget">
         <equals arg2="only" arg1="${build.sysclasspath}">
  @@ -32,7 +34,7 @@
           </pathelement>
         </src>
         <classpath>
  -        <fileset dir="lib">
  +        <fileset dir="${libdir}">
             <include name="*.jar">
             </include>
           </fileset>
  @@ -41,6 +43,34 @@
     </target>
     <target name="jar" description="o Create the jar" depends="compile,test">
       <jar jarfile="target/${final.name}.jar" excludes="**/package.html" 
basedir="${classesdir}">
  +      <metainf dir="${basedir}">
  +        <include name="LICENSE.txt">
  +        </include>
  +      </metainf>
  +      <manifest>
  +        <attribute name="Built-By" value="${user.name}">
  +        </attribute>
  +        <attribute name="Created-By" value="Apache Jakarta Maven">
  +        </attribute>
  +        <attribute name="Package" value="org.apache.commons">
  +        </attribute>
  +        <attribute name="Build-Jdk" value="${java.version}">
  +        </attribute>
  +        <section name="org.apache.commons">
  +          <attribute name="Specification-Title" value="commons-messenger">
  +          </attribute>
  +          <attribute name="Specification-Version" value="1.0-dev-10">
  +          </attribute>
  +          <attribute name="Specification-Vendor" value="Apache Software Foundation">
  +          </attribute>
  +          <attribute name="Implementation-Title" value="org.apache.commons">
  +          </attribute>
  +          <attribute name="Implementation-Version" value="1.0-dev-10">
  +          </attribute>
  +          <attribute name="Implementation-Vendor" value="Apache Software 
Foundation">
  +          </attribute>
  +        </section>
  +      </manifest>
       </jar>
     </target>
     <target name="clean" description="o Clean up the generated directories">
  @@ -48,8 +78,6 @@
       </delete>
       <delete dir="${distdir}">
       </delete>
  -    <delete dir="lib">
  -    </delete>
     </target>
     <target name="dist" description="o Create a distribution" depends="jar, javadoc">
       <mkdir dir="dist">
  @@ -57,7 +85,7 @@
       <copy todir="dist">
         <fileset dir="${defaulttargetdir}" includes="*.jar">
         </fileset>
  -      <fileset dir="${basedir}" includes="LICENSE*, README*">
  +      <fileset dir="${basedir}" includes="LICENSE*, README*, RELEASE*">
         </fileset>
       </copy>
     </target>
  @@ -76,7 +104,7 @@
         <formatter usefile="false" type="plain">
         </formatter>
         <classpath>
  -        <fileset dir="lib">
  +        <fileset dir="${libdir}">
             <include name="*.jar">
             </include>
           </fileset>
  @@ -102,7 +130,7 @@
           </pathelement>
         </src>
         <classpath>
  -        <fileset dir="lib">
  +        <fileset dir="${libdir}">
             <include name="*.jar">
             </include>
           </fileset>
  @@ -124,7 +152,7 @@
       </property>
       <javadoc use="true" private="true" destdir="${javadocdir}" author="true" 
version="true" sourcepath="src/java" packagenames="org.apache.commons.*">
         <classpath>
  -        <fileset dir="lib">
  +        <fileset dir="${libdir}">
             <include name="*.jar">
             </include>
           </fileset>
  @@ -134,31 +162,31 @@
       </javadoc>
     </target>
     <target name="get-deps" unless="noget" depends="init">
  -    <get dest="lib/commons-logging-1.0.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.jar";>
  +    <get dest="${libdir}/commons-logging-1.0.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.jar";>
       </get>
  -    <get dest="lib/commons-beanutils-1.3.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.3.jar";>
  +    <get dest="${libdir}/commons-beanutils-1.3.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.3.jar";>
       </get>
  -    <get dest="lib/commons-collections-2.0.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.0.jar";>
  +    <get dest="${libdir}/commons-collections-2.0.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.0.jar";>
       </get>
  -    <get dest="lib/commons-digester-1.2.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.2.jar";>
  +    <get dest="${libdir}/commons-digester-1.2.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.2.jar";>
       </get>
  -    <get dest="lib/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar";>
  +    <get dest="${libdir}/servletapi-2.3.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar";>
       </get>
  -    <get dest="lib/jms-1.0.2b.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/jms/jars/jms-1.0.2b.jar";>
  +    <get dest="${libdir}/jms-1.0.2b.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/jms/jars/jms-1.0.2b.jar";>
       </get>
  -    <get dest="lib/jta-1.0.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/jta/jars/jta-1.0.1.jar";>
  +    <get dest="${libdir}/jta-1.0.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/jta/jars/jta-1.0.1.jar";>
       </get>
  -    <get dest="lib/xml-apis-2.0.0.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.0.jar";>
  +    <get dest="${libdir}/xml-apis-2.0.0.jar" usetimestamp="true" 
ignoreerrors="true" 
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-2.0.0.jar";>
       </get>
  -    <get dest="lib/ant-1.4.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar";>
  +    <get dest="${libdir}/ant-1.4.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar";>
       </get>
  -    <get dest="lib/junit-3.7.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar";>
  +    <get dest="${libdir}/junit-3.7.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar";>
       </get>
  -    <get dest="lib/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar";>
  +    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar";>
       </get>
  -    <get dest="lib/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar";>
  +    <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar";>
       </get>
  -    <get dest="lib/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" 
src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar";>
  +    <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" 
ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar";>
       </get>
     </target>
     <target name="install-maven">
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to