summaryrefslogtreecommitdiff
path: root/java/common.xml
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-07-09 19:35:55 +0000
committerRafael H. Schloming <rhs@apache.org>2009-07-09 19:35:55 +0000
commit5a48e3da672620aa5905babcd1d457e07c0afd80 (patch)
tree5f76c67763b40c3829695f72d1e3dc8bab083ffb /java/common.xml
parent101aabaaf518ff65349fb80200cb12a601d8b8ff (diff)
downloadqpid-python-5a48e3da672620aa5905babcd1d457e07c0afd80.tar.gz
refrain from using anything other than filesets inside copy, this makes the build backwards compatible to pre 1.7 versions of ant
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common.xml')
-rw-r--r--java/common.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/common.xml b/java/common.xml
index fdac37f846..3393be7070 100644
--- a/java/common.xml
+++ b/java/common.xml
@@ -111,6 +111,19 @@
<taskdef name="foreach" classname="org.apache.qpid.tasks.Foreach"
classpath="${tasks.classes}"/>
+ <macrodef name="copylist">
+ <attribute name="todir"/>
+ <attribute name="dir"/>
+ <attribute name="files"/>
+ <sequential>
+ <foreach property="file" list="@{files}">
+ <copy todir="@{todir}" flatten="true">
+ <fileset dir="@{dir}" includes="${file}"/>
+ </copy>
+ </foreach>
+ </sequential>
+ </macrodef>
+
<target name="clean-tasks">
<delete dir="${tasks.classes}"/>
</target>