Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: apply task

Dominique Devienne

2008-04-21

Replies: Find Java Web Hosting

Author LoginPost Reply
On Sun, Apr 20, 2008 at 12:57 AM, Shawn Castrianni
<Shawn.Castrianni@(protected):
> I just discovered the apply task as a better exec task. I like that it automatically loops through the fileset one at a time and automatically does a timestamp check if you give it a dest and mapper. However, I have one small problem. On windows, the C compiler specifies the output file name with a /Fofoo.obj such that the output filename is directly after /Fo with no space in between. The apply task provides me with a <targetfile/> tag which is the place holder for the target file name, but it treats this as a separate argument to the executable. Therefore, it puts a space in between /Fo and <targetfile/>. This break the C compiler on windows. How can I specify that <targetfile/> should be part of the previous <arg value="/Fo"/>. Is there some property that is set for each file as apply loops through the fileset so that I can use the property name instead of the <targetfile/> tag?

Hmmm, you may not like this answer Shawn, but don't use <apply> for C
compiles, use CppTasks instead. You even have plenty of builds already
using it as examples ;-)

--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.