Ignore:
Timestamp:
Jun 8, 2011 8:15:53 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3d18255e
Parents:
d57925e8
Message:
  • Don't do 'mtn list changed' if not in a workspace or not needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/build.xml

    rd57925e8 rc5f04ee  
    9999    </target>
    100100
    101     <target name="jar" depends="compile, jarUpToDate" unless="jar.uptodate" >
     101    <target name="listChangedFiles" depends="jarUpToDate" if="shouldListChanges" >
    102102        <exec executable="mtn" outputproperty="workspace.changes" errorproperty="mtn.error2" failifexecutionfails="false" >
    103103            <arg value="list" />
     
    111111            <arg value="," />
    112112        </exec>
     113    </target>
     114
     115    <target name="jar" depends="compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" >
     116        <!-- set if unset -->
     117        <property name="workspace.changes.tr" value="" />
    113118        <jar destfile="./jettylib/org.mortbay.jetty.jar" basedir="./build/obj" includes="**/*.class" update="true" >
    114119            <manifest>
     
    124129            <srcfiles dir= "build/obj" includes="**/*.class" />
    125130        </uptodate>
     131        <condition property="shouldListChanges" >
     132            <and>
     133                <not>
     134                    <isset property="jar.uptodate" />
     135                </not>
     136                <isset property="mtn.available" />
     137            </and>
     138        </condition>
    126139    </target>   
    127140
Note: See TracChangeset for help on using the changeset viewer.