Re: Netbeans & Ant Help
Andrew Thompson wrote:
On May 31, 7:18?am, "John B. Matthews" <nos...@nospam.invalid> wrote:
...
Start with the one created by NetBeans for a new project.
Really? I have written a number of build files, from the
simple and short, to the very long. Yet every time I go
to delve into the guts of a NB build file, I see..
? ? <import file="nbproject/build-impl.xml"/>
..that import, which leads to an horrendously long and complex
build file that I cannot make head nor tail of*.
The build files generated by NetBeans are not usually overcomplicated unless
they need to be. The import makes lots of targets available to the build
process, but NetBeans only uses those it needs to.
It does, however, allow you access to many of the features of the NetBeans build
process if you can untangle what is going on. I've made use of this a few
times, for example to add additional targets to the build which can be accessed
from within NetBeans.
For simpler build files which should also be NB compatible,
try some of the examples available on my JWS API examples**
page. They are so simple, even /I/ can understand them!
** <http://pscode.org/jws/api.html>
Look for the .zip in the Download column.
* BTW - is it just me? Can other people understand those
NB build files?
Barely a fraction, but sometimes that's enough.
--
Nigel Wade