RE: Re: [Beanshell-dev] Build file for BeanShel

"Shankar Unni" <[email protected]> Tue, 1 Feb 2005 12:32:04 -0800
Newsgroups gmane.comp.java.beanshell.user,gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
> 2. You cannot build C++ projects with Ant.  I know there are 
> people who have tried and I've seen the plugins. To build a 
> C++ project you need to iterate through a list of files 
> performing an operation on each one.  I have yet to see Ant 
> to such a thing.  Yes I could write a plugin to do this and I 
> could also alter the trunk of my car to haul dirt, but what I 
> really need is a truck.
> 3. Ant builds are based on tasks and not file dependencies.  
> Using file dependencies is much more powerful.  If the 
> project is up to date and you try to build it, it should do nothing.

I use the "cpptasks" extension from
https://sourceforge.net/projects/ant-contrib/. It's a bit of a beast to
understand, but it's pretty powerful. 

We have a fairly involved set of files to compile (mixed c/c++, on windows,
linux, solaris and aix, in many static and shared libraries, and
executables), and it does all this just fine, with the proper dependency
analysis to boot. (I.e. if I touch a header file, it manages to rebuild
exactly all the files that include it directly or indirectly). 

More importantly, if I edit the build file and change an option setting, it
will recompile everything that used that option setting. It doesn't use the
file mod time of the build file for this - it actually saves the options in
the dependency list, and does a fine-grained comparison.

Not to denigrate what you've done - let a thousand flowers bloom, and all
that.. 



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl