ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huditsch Roman" <Roman.Hudit...@lexisnexis.at>
Subject AW: [Maybe spam] Re: using file names
Date Wed, 13 Apr 2005 09:17:55 GMT
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 <Roman.Huditsch@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


Mime
View raw message