ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jantje <>
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/"/>
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}/"/>

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message