ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jantje <janvanop...@skynet.be>
Subject ? function in build.xml
Date Tue, 01 Jul 2008 23:52:30 GMT

Hi there,

I have this in build.xml
    <delete dir="/tmp/module"/>
    <mkdir dir="/tmp/module/usr/local/fop"/>
    <copy todir="/tmp/module/usr/local/fop">
      <fileset dir="/usr/local/fop/"/>
    </copy>
These three tasks I have to repeat multiple times (only changing fop in f.i.
jdk or project or..). Is it possible to make some kind of function so I only
have to pass the word "fop"? f.i.:

function SSS {
    <delete dir="/tmp/module"/>
    <mkdir dir="/tmp/module/usr/local/${1}"/>
    <copy todir="/tmp/module/usr/local/${1}">
      <fileset dir="/usr/local/${1}/"/>
    </copy>
}

Thanks..
-- 
View this message in context: http://www.nabble.com/--function-in-build.xml-tp18227643p18227643.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message