ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sayed, Irfan \(Irfan\)" <>
Subject RE: Ant help for c compiler
Date Thu, 29 Jun 2006 07:03:15 GMT


why do we need to the path <taskdef

we have installed ant in /opt/apache-ant-1.6.5/bin/ant and copied jar
(ant-contrib-gump-28062006.jar) into /opt/apache-ant-1.6.5/lib

PATH is set to

please let me know.


-----Original Message-----
From: Sayed, Irfan (Irfan) 
Sent: Thursday, June 29, 2006 12:10 PM
Cc: Ant Users List
Subject: RE: Ant help for c compiler


I have added CC task in build .xml but it's not working

I request you to please look into the file attached and let me know what
I am doing wrong



-----Original Message-----
From: []
Sent: Wednesday, June 28, 2006 6:02 PM
Subject: RE: Ant help for c compiler

Download the " ant-contrib.jar" file from the URL provided by Jan, put
this jar file to the lib folder of ANT and first try to run a simple cpp
program like this:

<taskdef resource="net/sf/antcontrib/"/>

	<taskdef resource="cpptasks.tasks"/>
	<typedef resource="cpptasks.types"/>
	<target name="compile-cpp" >
	    <cc name="gcc" objdir="." debug="true">
		    <fileset dir="." includes="*.cpp"/>

After this you can go for more complex situations.


-----Original Message-----
From: []

Sent: Wednesday, June 28, 2006 4:34 PM
Subject: AW: Ant help for c compiler

Ant doesnt support C .... by its own.
Have a look at AntContribs CC task



	Von: Sayed, Irfan (Irfan) []

	Gesendet: Mittwoch, 28. Juni 2006 13:00
	Betreff: Ant help for c compiler

		Hi All,

	I have been assign a task of migrating our build environment
from make file base system to ant base system. Our code base has code of
java, C and cpp.

	With Make file we are able to compile and generate the code. To
migrate I have downloaded sample makefile (see the attached
build_java.xml file). using this I am able to compile java codes ,
	but if I modify the code to (see attache modified build_c.xml
file) have C++ compile I getting weied errors. Its apparent that I
missing something, can anyone guide me to how to have C++ and C
	Please provide a sample build file that can compile java, C and
C++ codes, also point me to a write-up that can help me ramp up on
setting up ant build environment.


	Would appreciate a quick and prompt response




To unsubscribe, e-mail: For additional
commands, e-mail:

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

To unsubscribe, e-mail: For additional
commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message