hi all,

Thanks jan for the reply. 
When I run ant with -projecthelp option, it says something like this. 

prompt>>ant -projecthelp
Buildfile: build.xml

        Sample ant file for demonstration purpose

Main targets:

Other targets:

 ant_sample
 import_ant
 say_hai
 spawn_ant
Default target: ant_sample

Now what is the diff. between Main targets and Other targets. How do I make a 
target as Main target and what is the purpose of it ?

Bst rgds
Shreedhar



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 1:13 AM
To: user@ant.apache.org
Subject: AW: Ant queries


>Hello from shreedhar, my first mail to this group. And I have 
>couple of questions !

welcome


>BUT, I want to use Ant for 
>building my reasonably big C++ projec. Can it be used ? 

yes
using AntContribs cc tasks, <exec> ...
But for more infos ... not my topic ;-)


>I am 
>aware about things like ant-contrib and so forth. but they are 
>not maintained by Apache.  

What means "maintained" ... some Ant committers are also in the AC-team.
And AC-questions are done here also. Only the repository is at sourceforge.



>Has anybody out here used them to 
>build their c,c++ project successfully.

Have heard, but I havent.


>2) I have the task "java" that is used to compile java files. 
>But I can achieve the something by using task exec. What 
>advantage the task "java" gives me over the using exec task to 
>execute the java.exe.

s/java/javac/

* Why use Ant not invoking the tools from the command line? Because
  it´s easier ....
* <exec> needs an executable while <javac> accesses the compiler from tools.jar
* better support
  ** nested src-paths (e.g. filesets)
  ** compiler settings
* <javac> works as a facade to several compilers, JDK 1.3, 1.4, 5.0, Jikes...


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to