You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Redondo Gallardo, Raul Maria" <rm...@eservicios.indra.es> on 2009/08/06 10:11:06 UTC

View which contains a filset

Goodmornig ANT users,

I want to know if is ti possible to know the content of a fileset, I've tried with:

<echo>
<fileset dir="D:\path">
 <include name="**/*V2.txt"/>

</fileset> 
</echo>

But return an error. Is this possible? How can I use each element of a fileset to do several things for each one?

Thank you very much.

Best regards,

Raúl




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


RE: View which contains a filset

Posted by "Redondo Gallardo, Raul Maria" <rm...@eservicios.indra.es>.
GREAT,

Thank you very much.

-----Mensaje original-----
De: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Enviado el: jueves, 06 de agosto de 2009 11:33
Para: user@ant.apache.org
Asunto: AW: View which contains a filset

If you have
  <fileset id="yourid" .../>

you could directly use
  <echo>${toString:yourid}</echo> 

or convert to your needs with 
  <pathconvert ...><fileset refid="yourid"/>


Jan

>-----Ursprüngliche Nachricht-----
>Von: Redondo Gallardo, Raul Maria 
>[mailto:rmredondo@eservicios.indra.es] 
>Gesendet: Donnerstag, 6. August 2009 10:22
>An: Ant Users List
>Betreff: RE: View which contains a filset
>
>Thank you very much.
>
>
>-----Mensaje original-----
>De: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Enviado el: jueves, 06 de agosto de 2009 10:18
>Para: 'Ant Users List'
>Asunto: RE: View which contains a filset
>
> 
>-----Original Message-----
>From: Redondo Gallardo, Raul Maria
>[mailto:rmredondo@eservicios.indra.es] 
>Sent: Thursday, August 06, 2009 10:11 AM
>To: Ant Users List
>Subject: View which contains a filset
>
>/*
>I want to know if is ti possible to know the content of a fileset, I've
>tried with:
>
><echo>
><fileset dir="D:\path">
> <include name="**/*V2.txt"/>
>
></fileset> 
></echo>
>*/
>
><fileset dir="..." id="yourid"  .../>
>
><echo>${toString:yourid}</echo>
>
>/*
>But return an error. Is this possible? How can I use each element of a
>fileset to do several things for each one?
>*/
>
>
><for param="file">
>  <path>
>    <fileset dir="..." includes="..."/>
>  </path>
>  <sequential>
>   ... do something with @{file} ...
>  </sequential>
></for>
>
>
>Regards, Gilbert
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


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


AW: View which contains a filset

Posted by Ja...@rzf.fin-nrw.de.
If you have
  <fileset id="yourid" .../>

you could directly use
  <echo>${toString:yourid}</echo> 

or convert to your needs with 
  <pathconvert ...><fileset refid="yourid"/>


Jan

>-----Ursprüngliche Nachricht-----
>Von: Redondo Gallardo, Raul Maria 
>[mailto:rmredondo@eservicios.indra.es] 
>Gesendet: Donnerstag, 6. August 2009 10:22
>An: Ant Users List
>Betreff: RE: View which contains a filset
>
>Thank you very much.
>
>
>-----Mensaje original-----
>De: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Enviado el: jueves, 06 de agosto de 2009 10:18
>Para: 'Ant Users List'
>Asunto: RE: View which contains a filset
>
> 
>-----Original Message-----
>From: Redondo Gallardo, Raul Maria
>[mailto:rmredondo@eservicios.indra.es] 
>Sent: Thursday, August 06, 2009 10:11 AM
>To: Ant Users List
>Subject: View which contains a filset
>
>/*
>I want to know if is ti possible to know the content of a fileset, I've
>tried with:
>
><echo>
><fileset dir="D:\path">
> <include name="**/*V2.txt"/>
>
></fileset> 
></echo>
>*/
>
><fileset dir="..." id="yourid"  .../>
>
><echo>${toString:yourid}</echo>
>
>/*
>But return an error. Is this possible? How can I use each element of a
>fileset to do several things for each one?
>*/
>
>
><for param="file">
>  <path>
>    <fileset dir="..." includes="..."/>
>  </path>
>  <sequential>
>   ... do something with @{file} ...
>  </sequential>
></for>
>
>
>Regards, Gilbert
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


RE: View which contains a filset

Posted by "Redondo Gallardo, Raul Maria" <rm...@eservicios.indra.es>.
Thank you very much.


-----Mensaje original-----
De: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Enviado el: jueves, 06 de agosto de 2009 10:18
Para: 'Ant Users List'
Asunto: RE: View which contains a filset

 
-----Original Message-----
From: Redondo Gallardo, Raul Maria
[mailto:rmredondo@eservicios.indra.es] 
Sent: Thursday, August 06, 2009 10:11 AM
To: Ant Users List
Subject: View which contains a filset

/*
I want to know if is ti possible to know the content of a fileset, I've
tried with:

<echo>
<fileset dir="D:\path">
 <include name="**/*V2.txt"/>

</fileset> 
</echo>
*/

<fileset dir="..." id="yourid"  .../>

<echo>${toString:yourid}</echo>

/*
But return an error. Is this possible? How can I use each element of a
fileset to do several things for each one?
*/


<for param="file">
  <path>
    <fileset dir="..." includes="..."/>
  </path>
  <sequential>
   ... do something with @{file} ...
  </sequential>
</for>


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


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


RE: View which contains a filset

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
 
-----Original Message-----
From: Redondo Gallardo, Raul Maria [mailto:rmredondo@eservicios.indra.es] 
Sent: Thursday, August 06, 2009 10:11 AM
To: Ant Users List
Subject: View which contains a filset

/*
I want to know if is ti possible to know the content of a fileset, I've tried with:

<echo>
<fileset dir="D:\path">
 <include name="**/*V2.txt"/>

</fileset> 
</echo>
*/

<fileset dir="..." id="yourid"  .../>

<echo>${toString:yourid}</echo>

/*
But return an error. Is this possible? How can I use each element of a fileset to do several things for each one?
*/


<for param="file">
  <path>
    <fileset dir="..." includes="..."/>
  </path>
  <sequential>
   ... do something with @{file} ...
  </sequential>
</for>


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