dflorey     2004/10/17 10:06:18

  Modified:    contract build.xml
  Log:
  Changes project name to commons-...
  
  Revision  Changes    Path
  1.2       +24 -3     jakarta-commons-sandbox/contract/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/contract/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml 8 Oct 2004 09:36:20 -0000       1.1
  +++ build.xml 17 Oct 2004 17:06:18 -0000      1.2
  @@ -7,7 +7,7 @@
       WebDAV projector build file                                          
     ======================================================================= 
   -->
  -<project name="contract" default="jar" basedir=".">
  +<project name="commons-contract" default="jar" basedir=".">
   
        <!-- Give user a chance to override without editing this file 
     (and without typing -D each time it compiles it) -->
  @@ -19,7 +19,7 @@
        <property name="optimize" value="true" />
   
        <property name="version" value="0.2" />
  -     <property name="name" value="contract" />
  +     <property name="name" value="commons-contract" />
        <!-- 
     ===================================================================
     Set the properties related to the source tree
  @@ -27,6 +27,7 @@
     -->
        <property name="src.dir" value="src" />
        <property name="java.dir" value="${src.dir}/java" />
  +     <property name="examples.dir" value="${src.dir}/examples" />
        <property name="lib.dir" value="lib" />
        <property name="docs.dir" value="doc" />
        <property name="dist.dir" value="dist" />
  @@ -67,6 +68,10 @@
                        <src path="${java.dir}" />
                        <classpath refid="classpath" />
                </javac>
  +             <javac destdir="${build.classes}" debug="${debug}" 
deprecation="${deprecation}" optimize="${optimize}">
  +                     <src path="${examples.dir}" />
  +                     <classpath refid="classpath" />
  +             </javac>
        </target>
   
        <!-- 
  @@ -77,7 +82,23 @@
        <target name="jar" depends="build">
                <jar jarfile="${build.lib}/${name}-${version}.jar" 
basedir="${build.classes}">
                        <include name="org/apache/commons/contract/**" />
  -                     <fileset dir="${conf.dir}"/>
  +                     <exclude name="org/apache/commons/contract/example/**" />
  +                     <fileset dir="${conf.dir}">
  +                             <include name="constraints.xml" />
  +                             <include name="exceptions.xml" />
  +                             <include name="util.xml" />
  +                     </fileset>
  +             </jar>
  +             <jar jarfile="${build.lib}/${name}-examples-${version}.jar" 
basedir="${build.classes}">
  +                     <include name="org/apache/commons/contract/example/**" />
  +                     <fileset dir="${conf.dir}">
  +                             <include name="example.xml" />
  +                     </fileset>
  +            <manifest>
  +              <attribute name="Built-By" value="Daniel Florey"/>
  +              <attribute name="Main-Class" 
value="org/apache/commons/contract/example/SimpleMain"/>
  +              <attribute name="Class-Path" value="commons-contract-0.2.jar 
../../lib/commons-xmlio-0.1pre.jar ../../lib/commons-i18n-0.2.jar"/>
  +            </manifest>
                </jar>
        </target>
   
  
  
  

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

Reply via email to