[jboss-svn-commits] JBL Code SVN: r33839 - labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 12 10:36:01 EDT 2010
Author: whitingjr
Date: 2010-07-12 10:36:00 -0400 (Mon, 12 Jul 2010)
New Revision: 33839
Modified:
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
Log:
Added task to copy local file.
Modified: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml 2010-07-12 14:17:32 UTC (rev 33838)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml 2010-07-12 14:36:00 UTC (rev 33839)
@@ -185,6 +185,36 @@
</if>
</target>
+ <target name="substitute-local-config">
+ <echo>Checking for configuration to replace local file.</echo>
+
+ <condition property="replacement.file.exists" else="false">
+ <and>
+ <isset property="replacement.file.source.name"/>
+ <isset property="replacement.file.target.name"/>
+ <available file="${replacement.file}"/>
+ </and>
+ </condition>
+
+ <echo>Status of all expected properties and files: ${replacement.file.exists}</echo>
+ <antcall target="replace-local-file" inheritall="true"/>
+
+ </target>
+
+ <target name="replace-local-file">
+
+ <if>
+ <equals arg1="true" arg2="${replacement.file.exists}"/>
+ <then>
+ <echo>Replacing file ${replacement.file.target.name} </echo>
+ <copy file="${replacement.file.source.name}" tofile="${replacement.file.target.name}"/>
+ </then>
+ <else>
+ <echo>No replacement of local file.</echo>
+ </else>
+ </if>
+ </target>
+
<target name="usage">
<echo>usage: Do not call this directly, instead use build-commands</echo>
</target>
More information about the jboss-svn-commits
mailing list