You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Huditsch Roman <Ro...@lexisnexis.at> on 2005/04/13 11:17:55 UTC

AW: [Maybe spam] Re: using file names

Ah, I see.
But how can I incorporate it into an <uptodate> statement?

<uptodate property="copy.notRequired" srcfile="@{file}">
	<!-- How to specify my @targetfile correctly? -->
</uptodate>
 
I would like to test @{file} againt the same basename within the "result" directory....

I tried it first with "result/@{file}" which gave me "result/c:\Programme\test.xml".

I also tried 
<uptodate property="copy.notRequired" srcfile="@{file}">
	<mapper>
		<flattenmapper/>
		<globmapper from="*" to="result/*"/>
	</mapper>
</uptodate>
but with no success either....

Thanks for the help!

wbr,
Roman


> -----Ursprüngliche Nachricht-----
> Von: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com] 
> Gesendet: Mittwoch, 13. April 2005 11:12
> An: Ant Users List
> Betreff: [Maybe spam] Re: using file names
> 
> Huditsch,
> 
> You can use <basename> task[1].
> 
> HTH Ivan
> 
> [1]http://ant.apache.org/manual/CoreTasks/basename.html
> --- Huditsch Roman <Ro...@lexisnexis.at>
> wrote:
> > Hi,
> > 
> > After using
> > <for param="file">
> > 	<path>
> > 		<fileset dir="@{src}" includes="*.xml"/>
> > 	</path>
> > 	....
> > 
> > @{file} gives me the "complete" file name inlcuding directory 
> > information.
> > How can I pick just the file name itself (leaving out all the 
> > directory structure)?
> > 
> > wbr,
> > Roman
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> 
> 
> 		
> __________________________________
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
> 
> ---------------------------------------------------------------------
> 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