ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Garralda <PGarra...@amtec.net>
Subject RE: setting properties from a User defined Task.
Date Wed, 02 Aug 2000 14:25:53 GMT

I have run Ant with -verbose option and You are rigth, the property
subtitution is showed at the end. :)

I notice that patters like "**/src/*.java" can't be used everywhere as you
do with (Unix) bash.

eg. you can't do "echo *.java" with ant but you can with bash. 
 
This could be useful not only for executing ECHOs. Some people
on the list have similars problems. 

I'm learning how to use Ant, i've started this week :)

Thank for your interest.

Saludos,
     Pablo G.


-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Martes 1 de Agosto de 2000 19:37
To: ant-user@jakarta.apache.org
Subject: RE: setting properties from a User defined Task.


Pablo,

The problem is that the property substitution happens before any tasks are
executed. Currently ant cannot do what you are asking. Perhaps you can tell
us how you wish to use the ppp value. There may be other mechanisms within
ant that you can use.

Conor

--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Pablo Garralda [mailto:PGarralda@amtec.net]
> Sent: Wednesday, 2 August 2000 5:15
> To: ant-user@jakarta.apache.org
> Subject: setting properties from a User defined Task.
>
>
>
> Hi !!
>
> I'm trying to build a user defined Task to store a directory
> listing into a
> Property.
> Someting like this:
>
>   ...
>   <target name="Test" depends="" >
>       <dirlisting basedir="." includes="*.java" property="ppp"
> separator=" "
> />
>       <echo message="Java files: ${ppp}" />
>   </target>
>   ...
>
> This prints:
>
>   Java files: ${ppp}
>
> It don't replace ${ppp} with "ppp" value!!! What's wrong?
>
> Thanks in advance,
> 		Pablo.
>
>
>
>
>

Mime
View raw message