We know we have a problem with building NB using
Ant 1.5. I guess that the root problem is a change
in the way optional taskdefs are handled. I will
try to come up with a testcase and report it.
In the meantime, I find that indeed <nbmerge> is
running the bootstrap and init targets *again*.
This is a bug in NbMerge. I am attaching a patch
which seems to correct it. The patch *does*
however require Ant 1.4 or higher and will not
work with Ant 1.3: there were big API changes in
Ant 1.4 in Project, Target, etc. There is probably
a workaround patch that will work in Ant 1.3 -
1.5, but it would be better to require >= 1.4 I
think. Note that bootstrap compiles against
nbextra/nbbuild/lib/ant.jar, meaning we would
really have to upgrade that ant.jar in order for
the patch to work.
Created attachment 6129 [details]
Filed an Ant bug:
However there is also a bug in the NetBeans build code which if fixed
with this patch will make #9675 irrelevant.
The Ant bug is supposedly fixed in the 1.5 branch. Please download the
1.5 build linked to from the Ant bug report and confirm that it fixes
the NB problem (without this patch). I think the patch ought to be
applied anyway however, at least if we can require Ant >= 1.4.
- downloaded pointed Ant build (10 june),
- replaced ant jars in modules/ext, and
- successfully built NB from current CVS trunk.
I have not used the NbMerge.java patch.
The Ant log contains some "DEPRECATED" messages and plenty
of "Trying to override old definition of task ..."
If it is interesting and possible, I can attach compressed
log (~10K) to direct email - I have difficulties with
an attachment via IZ.
Sounds good. Andrew, you can mail the log to either me or Michal; just
make sure the issue # is visible in the mail. Thanks!
Created attachment 6188 [details]
ZIP of log from Andrew
I'll go through the proposed patch and the attached log.
Set target milestone to TBD
Fixed in ANT 1.5.1 so I suggest to use this version of ANT