Ignore:
Timestamp:
Feb 17, 2011 12:47:35 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d59e3f9
Parents:
a3d466e
Message:
  • Build:
    • Add includeAntRuntime=false to all javac targets
    • Add build date, mtn rev, and changed file list to all manifests
    • Add unless=uptodate to all jar and war targets (bob and dtg still todo)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/build.xml

    ra3d466e rfd91927c  
    2525        <mkdir dir="./build/obj" />
    2626        <!-- half of this is deprecated classes so turn deprecation off -->
    27         <javac srcdir="./src" debug="true" deprecation="off" source="1.5" target="1.5" destdir="./build/obj" classpath="../../../core/java/build/i2p.jar" >
     27        <javac srcdir="./src" debug="true" deprecation="off" source="1.5" target="1.5"
     28               includeAntRuntime="false"
     29               destdir="./build/obj" classpath="../../../core/java/build/i2p.jar" >
    2830            <compilerarg line="${javac.compilerargs}" />
    2931        </javac>
    3032    </target>
    31     <target name="jar" depends="compile">
    32         <jar destfile="./build/mstreaming.jar" basedir="./build/obj" includes="**/*.class" />
     33
     34    <target name="jar" depends="compile, jarUpToDate" unless="jar.uptodate" >
     35        <exec executable="mtn" outputproperty="workspace.changes" errorproperty="mtn.error2" failifexecutionfails="false" >
     36            <arg value="list" />
     37            <arg value="changed" />
     38            <arg value="." />
     39        </exec>
     40        <!-- \n in an attribute value generates an invalid manifest -->
     41        <exec executable="tr" inputstring="${workspace.changes}" outputproperty="workspace.changes.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
     42            <arg value="-s" />
     43            <arg value="[:space:]" />
     44            <arg value="," />
     45        </exec>
     46        <jar destfile="./build/mstreaming.jar" basedir="./build/obj" includes="**/*.class" >
     47            <manifest>
     48                <attribute name="Build-Date" value="${build.timestamp}" />
     49                <attribute name="Base-Revision" value="${workspace.version}" />
     50                <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
     51            </manifest>
     52        </jar>
    3353    </target>
     54
     55    <target name="jarUpToDate">
     56        <uptodate property="jar.uptodate" targetfile="build/mstreaming.jar" >
     57            <srcfiles dir= "." includes="build/obj/**/*.class" />
     58        </uptodate>
     59    </target>
     60
    3461    <target name="javadoc">
    3562        <mkdir dir="./build" />
Note: See TracChangeset for help on using the changeset viewer.