ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: Getting the name of the current file in a fileset
Date Wed, 04 Jun 2003 12:52:21 GMT
What you are doing seems to be what the new <subant/> task of ant 1.6alpha
is addressing.
Antoine
----- Original Message -----
From: <martin.me.roberts@bt.com>
To: <user@ant.apache.org>
Sent: Wednesday, June 04, 2003 2:48 PM
Subject: RE: Getting the name of the current file in a fileset


Jan,
How could I get multiple properties passed to the target being
called from the foreach.  I need to set directories for the target to work
with.

Thanks

Martin Roberts
xml designer,
BT Exact
e-mail: martin.me.roberts@bt.com
tel: +44(0) 1473 609785  clickdial
fax: +44(0) 1473 609834
Intranet Site :http://twiki.btlabs.bt.co.uk/twiki



-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: 04 June 2003 11:30
To: user@ant.apache.org
Subject: AW: Getting the name of the current file in a fileset


I think the only way is to use AntContrib┬┤s <foreach>.
This topic is already discussed on
http://marc.theaimsgroup.com/?l=ant-user&m=104464267224692&w=2

Maybe we can add a property ${xmlfile} which is set by <xslt> and can be
used in nested <param> tags. <xslt dir="" xsl="">
    <param name="thefile" value="${xmlfile}"/>
</xslt>
So the stylesheet can use its "thefile".

Maybe a little work in XSLTProcess.process(File baseDir, String xmlFile,
File destDir, File stylesheet).


Jan



Ant-Contrib:
  Homepage:   http://sourceforge.net/projects/ant-contrib/
  CVS-Source:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/src/n
et/sf/antcontrib/
  CVS-Manual:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/manua
l/index.html

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/ant-co
ntrib/manual/tasks/index.html
  Binary:     http://gump.covalent.net/jars/latest/ant-contrib/



> -----Urspr├╝ngliche Nachricht-----
> Von: martin.me.roberts@bt.com [mailto:martin.me.roberts@bt.com]
> Gesendet am: Mittwoch, 4. Juni 2003 12:10
> An: user@ant.apache.org
> Betreff: Getting the name of the current file in a fileset
>
> Hi,
>         I need to get the current file name so I can pass it
> into the xslt
> task as a value for the stylesheet.  How do I do this?  Is
> there a property
> for this?
>
> Martin Roberts
>
>
>

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




Mime
View raw message