You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/07/23 16:17:56 UTC
svn commit: r679091 - /harmony/enhanced/classlib/trunk/build.xml
Author: hindessm
Date: Wed Jul 23 07:17:56 2008
New Revision: 679091
URL: http://svn.apache.org/viewvc?rev=679091&view=rev
Log:
Make it easier to keep identical targets in sync by using a common macro.
Modified:
harmony/enhanced/classlib/trunk/build.xml
Modified: harmony/enhanced/classlib/trunk/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/build.xml?rev=679091&r1=679090&r2=679091&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/build.xml (original)
+++ harmony/enhanced/classlib/trunk/build.xml Wed Jul 23 07:17:56 2008
@@ -287,21 +287,7 @@
/>
<target name="-init-hdk">
- <mkdir dir="${hy.hdk}/build/ant" />
- <copy file="make/properties.xml"
- tofile="${hy.hdk}/build/ant/properties.xml"
- outputencoding="UTF-8" >
- <filterchain>
- <tokenfilter>
- <replacestring from="Top-Level property definitions"
- to="Common property definitions" />
- </tokenfilter>
- </filterchain>
- </copy>
- <copy file="make/make.xml"
- tofile="${hy.hdk}/build/ant/make.xml"
- outputencoding="UTF-8" >
- </copy>
+ <init-hdk />
</target>
<target name="-init-hdk-for-clean">
@@ -310,17 +296,7 @@
get called once - before the clean - during a rebuild
and not called a second time - before the build.
-->
- <mkdir dir="${hy.hdk}/build/ant" />
- <copy file="make/properties.xml"
- tofile="${hy.hdk}/build/ant/properties.xml"
- outputencoding="UTF-8" >
- <filterchain>
- <tokenfilter>
- <replacestring from="Top-Level property definitions"
- to="Common property definitions" />
- </tokenfilter>
- </filterchain>
- </copy>
+ <init-hdk />
</target>
<target name="-clean-hdk">
@@ -338,5 +314,25 @@
</sequential>
</macrodef>
+ <macrodef name="init-hdk">
+ <sequential>
+ <mkdir dir="${hy.hdk}/build/ant" />
+ <copy file="make/properties.xml"
+ tofile="${hy.hdk}/build/ant/properties.xml"
+ outputencoding="UTF-8" >
+ <filterchain>
+ <tokenfilter>
+ <replacestring from="Top-Level property definitions"
+ to="Common property definitions" />
+ </tokenfilter>
+ </filterchain>
+ </copy>
+ <copy file="make/make.xml"
+ tofile="${hy.hdk}/build/ant/make.xml"
+ outputencoding="UTF-8" >
+ </copy>
+ </sequential>
+ </macrodef>
+
</project>