Changeset 15444

Show
Ignore:
Timestamp:
14.05.2008 14:47:03 (12 years ago)
Author:
ak19
Message:

Added an ensure-check-java-version target so that CheckJavaVersion?.java is only downloaded during builds when it or its class file are missing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/gs3-webservices-democlient/build.xml

    r15319 r15444  
    6969 
    7070<!-- Main targets: to build the GS3 web services demo-client and to create the tar.gz file for downloading --> 
    71 <target name="build-demo-client" description="Creates the jar distribution file" depends="compile-demo-client,update-check-java-version"> 
     71<target name="build-demo-client" description="Creates the jar distribution file" depends="compile-demo-client,ensure-check-java-version"> 
    7272  <mkdir dir="${basedir}/logs" /> <!-- Need a logs dir for outputting log4j stuff--> 
    7373  <delete file="${exec.jar.name}" /> <!--For now: Let's delete it first and do a fresh rebuild--> 
     
    139139</target> 
    140140 
     141<target name="ensure-check-java-version" description="Ensures the CheckJavaVersion.java file required to run the demo-client's launching scripts (sh or bat) is present"> 
     142    <condition property="check.java.version.exists"> 
     143    <and> 
     144    <available file="${basedir}/CheckJavaVersion.class"/> 
     145    <available file="${basedir}/CheckJavaVersion.java"/> 
     146    </and> 
     147    </condition> 
     148    <antcall target="update-check-java-version" /> 
     149</target> 
     150 
    141151<!-- Gets the file if the local copy is missing or out of date (since usetimestamp=true) --> 
    142 <target name="update-check-java-version" description="Gets the latest version of CheckJavaVersion.javafrom Greenstone's SVN repository"> 
     152<target name="update-check-java-version" description="Gets the latest version of CheckJavaVersion.java from Greenstone's SVN repository" unless="check.java.version.exists"> 
    143153  <get src="${check.java.version.svn.file}"  
    144154    dest="${basedir}/CheckJavaVersion.java"