Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r2504 - branches/new-structure/trunk/geant2_java-rrd-ma/ant

Subject: perfsonar development work

List archive

perfsonar: r2504 - branches/new-structure/trunk/geant2_java-rrd-ma/ant


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r2504 - branches/new-structure/trunk/geant2_java-rrd-ma/ant
  • Date: Wed, 4 Jul 2007 07:37:57 -0400

Author: roman
Date: 2007-07-04 07:37:57 -0400 (Wed, 04 Jul 2007)
New Revision: 2504

Modified:
branches/new-structure/trunk/geant2_java-rrd-ma/ant/compile-targets.xml
Log:

If 'jar' target is called and const.properties file does not exist then
const.properties.template is renamed into
const.properties before compilation.




Modified:
branches/new-structure/trunk/geant2_java-rrd-ma/ant/compile-targets.xml
===================================================================
--- branches/new-structure/trunk/geant2_java-rrd-ma/ant/compile-targets.xml
2007-07-04 10:44:55 UTC (rev 2503)
+++ branches/new-structure/trunk/geant2_java-rrd-ma/ant/compile-targets.xml
2007-07-04 11:37:57 UTC (rev 2504)
@@ -19,9 +19,23 @@

<target name="compile"
depends="lib"
+ xmlns:antcontrib="antlib:net.sf.antcontrib"
xmlns:psbase="psbase:/base.perfsonar.org">

- <psbase:compile srcdir="src" dstdir="${build}" libdir="lib/repository"/>
+ <property name="conf.file" value="${basedir}/ant/const.properties"/>
+ <available file="${conf.file}" property="conf.file.present"/>
+ <antcontrib:if>
+ <isset property="conf.file.present"/>
+ <antcontrib:then>
+ <psbase:compile srcdir="src" dstdir="${build}"
libdir="lib/repository"/>
+ </antcontrib:then>
+ <antcontrib:else>
+ <psbase:template-use template-file="ant/const.properties.template"
+ dest-file="ant/const.properties"/>
+ <property file="${basedir}/ant/const.properties"/>
+ <psbase:compile srcdir="src" dstdir="${build}"
libdir="lib/repository"/>
+ </antcontrib:else>
+ </antcontrib:if>

</target>




  • perfsonar: r2504 - branches/new-structure/trunk/geant2_java-rrd-ma/ant, svnlog, 07/04/2007

Archive powered by MHonArc 2.6.16.

Top of Page