harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r805619 - /harmony/enhanced/classlib/trunk/make/properties.xml
Date Tue, 18 Aug 2009 22:56:34 GMT
Author: hindessm
Date: Tue Aug 18 22:56:34 2009
New Revision: 805619

URL: http://svn.apache.org/viewvc?rev=805619&view=rev
Log:
Add {make,delete}-patternset macros.  They are currently unused but I
plan to use them soon and I wanted to check in my work as it wasn't
trivial and I'd hate to spend that much time reading ant manuals again.

Modified:
    harmony/enhanced/classlib/trunk/make/properties.xml

Modified: harmony/enhanced/classlib/trunk/make/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/make/properties.xml?rev=805619&r1=805618&r2=805619&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/make/properties.xml (original)
+++ harmony/enhanced/classlib/trunk/make/properties.xml Tue Aug 18 22:56:34 2009
@@ -886,4 +886,37 @@
         </sequential>
     </macrodef>
 
+    <macrodef name="make-patternset">
+        <attribute name="source" default="${basedir}/src/main" />
+        <attribute name="file"
+                   default="${hy.hdk}/build/ant/patternsets/${hy.module}.txt" />
+        <sequential>
+            <dirname file="@{file}" property="@{file}.dir" />
+            <mkdir dir="${@{file}.dir}" />
+            <pathconvert targetos="unix" property="@{file}.content"
+                         pathsep="${line.separator}">
+                <fileset dir="@{source}" includes="java*/**/*.java" />
+                <map from="@{source}/java/unix/" to="" />
+                <map from="@{source}/java/windows/" to="" />
+                <map from="@{source}/java/common/" to="" />
+                <map from="@{source}/java5/" to="" />
+                <map from="@{source}/java/" to="" />
+                <compositemapper>
+                    <mapper type="regexp" from="^(.*)\.java$$" to="\1.*"/>
+                    <mapper type="regexp" from="^(.*)\.java$$" to="\1$*.*"/>
+                </compositemapper>
+            </pathconvert>
+            <echo message="${@{file}.content}${line.separator}"
+                  file="@{file}" />
+        </sequential>
+    </macrodef>
+
+    <macrodef name="delete-patternset">
+        <attribute name="file"
+                   default="${hy.hdk}/build/ant/patternsets/${hy.module}.txt" />
+        <sequential>
+            <delete file="@{file}" />
+        </sequential>
+    </macrodef>
+
 </project>



Mime
View raw message