query wrote:
Hi,
Currently , I am using Visuall C++ cl.exe, rc.exe amd mc.exe commands in ANT by using
<exec> task and running them directly. Are there any tasks similar to these
commands in ANT?
1. ant-contrib.sf.net has a <cc> task that wraps cl, link gcc, etc.
http://ant-contrib.sourceforge.net/cc.html
"Java Development with Ant" has a chapter on this topic, so find
someone who has a copy and borrow it (*).
2. the rest you can use <exec> for.
3. I've found in the past that it was easiest to exec the whole of
visual studio to do the work; you can call it on the command line to
build a big project. That way you don' t need to keep the build file in
sync with the IDE, but you do need to wait for the entire build to
finish before you get a line of output.
4. there is a library that can run msbuild or nant from under Ant:
http://ant.apache.org/antlibs/dotnet/
this lets you delegate the windows side of the build to tools that know
it. I dont know how well the dotnet build tools support cl, mc and other
native Win32/64 build tools. It may just be best to use <exec>. The
Ant-contrib <outofdate> Task can be used to add timestamp logic around
the <execs> : http://ant-contrib.sourceforge.net/tasks/tasks/outofdate.html
-Steve
(*) The forthcoming Ant in Action book has dropped this chapter; I will
stick the PDF of it up on antbook.org at some time in the future.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]