NB now includes Ant 1.5.1. Everyone is using it.
The NB build supports it, yet assumes 1.4.1 as the
- 1.5.x supports debuglevel attr on <javac> which
- XML tasks can use catalogs, enabling us to
discard org.netbeans.nbbuild.XMLValidate, use
<style> offline, etc.
- many other bugfixes and improvements which we
cannot take advantage of currently
FYI - we now have blanket approval for using Ant 1.5.x throughout NB
wherever we currently use earlier releases.
Any status or plans for this? Does it sound reasonable? Are there
non-obvious dependencies on Ant 1.4.x somewhere?
I'm doing testing. If all go good we'll switch.
Seems SignJar changed signatures again, need to patch MakeNBM. Now
setKeystore takes String while setSignedjar takes File.
Filed the SignJar problem separately as that should be fixed for 3.5 -
i.e. in 3.5 it should be *possible* to use Ant 1.5.2 (with 1.4.1 the
supported version) whereas in the trunk it should be *required*.
It seems <style> is badly broken on 1.4.1 also for some cases where
the stylesheet uses entity includes which use relative paths going to
near the root of the Unix filesystem. Apparently fixed in 1.5.2;
possibly Ant bug #6259, possibly something else.
FYI - 1.5.3 is in beta.
My mistake, 1.5.3 is already released.
In the future is it possible to keep the build ant version
and the ant version that we ship with the product
With the way we are doing it now (the build scripts lag
the product), it seems like we could get into a situation
where ant scripts that work inside the IDE would not work
outside the IDE and visa versa.
I agree that consistency between the bundled Ant and that used for
builds would be desirable. But first priority for each is making them
be current. IMHO NB dev sources should support any new stable Ant
releases within a week or so of its release, a month at the outside.
This could probably be said of other libraries too of course. Anyway
that is all a broader topic suitable for nbdev but somewhat out of
such inconsistencies are not only in our hands. Apache Ant is well
known for introducing huge incompatibilities between releases ;-( and
also turnbacks in further releases.
I agree with Jesse, that keeping consistency is desirable, but not
feasible with current Apache Ant's developers approach to backward
To clarify: the Ant project definitely pays attention to compatibility
of build scripts, and generally also to custom tasks. However NB has
some tasks which either (1) do bizarre things with the Ant core such
as dynamically add targets to a build, or (2) directly refer to the
implementation classes of existing tasks.
Such dumb tricks are not generally supported, so we sometimes need to
do a bit of work to upgrade the build system to a new Ant release. I
would not call them "huge incompatibilities"; most commonly a
parameter changes from String to File or something like that. An
hour's work for a programmer maybe. (In this case, the 1.5.3 support
work is already done I think - we only need to *require* the new
version rather than merely *permit* it.)
Progress report please? This has been open for half a year. In the
meantime I am wasting time trying to work around Ant 1.4.x bugs which
have already been fixed in 1.5.
Here's the report (for NetBeans product):
- NetBeans daily production dev build is almost ready,
doing final test build (future dev build #200305150700 is going
to be built with Ant 1.5.3)
- NetBeans continuous build needs update (dev, release35,
prj40_prototype), probably it would be enough to recognize
whether it's release35 or other branch
- NetBeans features update build needs update (I expect just test
build would be enough)
I've forgot to mention, that the referenced build 200305150700 is just
test build, even it was run in full production environment, just with
different Ant release. The report was not a promise of any kind. I'm
sorry, if there was any misunderstandings.
*** Issue 31837 has been marked as a duplicate of this issue. ***
NB build is now switched to ANT 1.5.3
There was no resolution, correcting.
You forgot to update some web pages in nbbuild.netbeans.org; I will do
Lots of other related stuff to do, I will try to work on it.