Show
Ignore:
Timestamp:
06/22/11 13:26:25 (11 months ago)
Author:
martijn
Message:

Use bnd to generate OSGi headers. Merge common build file bits in build-common.xml

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.tools.batchmapper/build.xml

    r334 r521  
    44        <property name="jar.file" value="../dist/org.bridgedb.tools.batchmapper.jar"/> 
    55         
    6         <path id="project.class.path"> 
    7                 <pathelement location="build"/> 
    8                 <pathelement location="../dist/org.bridgedb.jar"/> 
    9                 <pathelement location="../dist/org.bridgedb.bio.jar"/> 
    10                 <!--TODO make sure corelib build is called first --> 
     6        <!-- absolute deps are used for building, testing and in the manifest classpath --> 
     7        <path id="absolute.deps"> 
     8                <fileset dir="../dist"> 
     9                        <include name="org.bridgedb.jar"/> 
     10                        <include name="org.bridgedb.bio.jar"/> 
     11                </fileset> 
    1112        </path> 
    1213 
    13         <target name="prepare"> 
    14                 <mkdir dir="../dist"/> 
    15                 <mkdir dir="build"/> 
    16         </target> 
    17          
    18         <target name="clean" description="Remove all generated files."> 
    19                 <delete dir="build"/> 
    20         </target> 
    21          
    22         <target name="compile" depends="prepare" description="Compile all sources"> 
    23                 <javac srcdir="src"  
    24                             debug="true"         
    25                             destdir="build"> 
    26                         <classpath refid="project.class.path"/> 
    27                 </javac> 
    28         </target> 
     14        <!-- transient deps are optional, they are used only in the manifest classpath --> 
     15        <path id="transient.deps"> 
     16        </path> 
    2917 
    30         <target name="test" depends="compile" description="Test batchmapper"> 
    31                 <!-- TODO --> 
    32         </target> 
     18        <!-- test deps are only used for testing --> 
     19        <path id="test.deps"> 
     20                <!-- nothing yet... --> 
     21        </path>  
    3322 
    34         <target name="jar" depends="compile"> 
     23        <target name="jar" depends="build"> 
    3524                <jar jarfile="${jar.file}"> 
    3625                        <manifest> 
     
    4130                </jar> 
    4231        </target> 
    43          
    44         <target name="dist-clean" depends="clean" description="Remove all generated files."> 
    45                 <delete file="${jar.file}"/> 
    46         </target> 
    47          
    48         <target name="dist" depends="jar"/> 
     32 
     33        <import file="../build-common.xml" /> 
     34 
    4935</project>