This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139448 - Use Ant 1.7.1 for builds
Summary: Use Ant 1.7.1 for builds
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 124554
  Show dependency tree
 
Reported: 2008-07-09 18:25 UTC by Jesse Glick
Modified: 2009-02-19 22:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-07-09 18:25:32 UTC
Ant 1.7.1 has been released and we should begin using it for builds.

Among changes in

http://www.apache.org/dist/ant/RELEASE-NOTES-1.7.1.html

one of note is

"Regression: ant.version was not passed down in <ant>, <subant>. This worked in Ant 1.6.5, but not in 1.7.0.
ant.core.lib (added in 1.7.0) was also not being propagated. Bugzilla bug 42263"

There are a few places in our build scripts where we call

<ant ...>
  <property name="ant.core.lib" value="${ant.core.lib}"/>
</ant>

This workaround (the added <property/>) can be removed once we have switched over build systems to use 1.7.1.


Also probably useful for our builders, which can generate multi-megabyte log files:

"A new logger, BigProjectLogger, lists the project name with every target"


There may also be uses for

"<fileset> has a new attribute - errorOnMissingDir. Bugzilla 11270."

(I just ran into the lack of this feature in 1.7.0 a couple of days ago, in the build harness.)
Comment 1 Michal Zlamal 2008-07-23 17:38:18 UTC
Dev production builds are uses Ant 1.7.1, now
Comment 2 Jesse Glick 2008-07-28 16:05:09 UTC
Need to make sure all builder machines are using 1.7.1. I can do deadlock since I have a shell account, but I cannot do
konik, and there are probably others I do not know about. Cannot be considered FIXED until nbbuild/build.xml specifies

  <antversion atleast="1.7.1"/>
                           ^

meaning that we really can use 1.7.1 features safely.
Comment 3 Jesse Glick 2008-11-02 22:06:08 UTC
Production builds are apparently still using 1.7.0. I pushed core-main #7c45ed7f2e72 so the build will fail with a clean
error message if you try to use Ant < 1.7.1.

ant.core.lib, erroronmissingdir, and BigProjectLogger should still be used before this can be considered fully FIXED,
but those would be P3 I think.
Comment 4 Jesse Glick 2008-11-03 19:04:15 UTC
Seems production builder is now using 1.7.1, good.

Assigning back to myself for miscellaneous items.
Comment 5 Quality Engineering 2008-11-04 16:27:10 UTC
Integrated into 'main-golden', will be available in build *200811041401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7c45ed7f2e72
User: Jesse Glick <jglick@netbeans.org>
Log: #139448: forcing use of Ant 1.7.1.
Comment 6 Michal Zlamal 2008-11-11 11:10:41 UTC
It's enforced now. So I'd say we may close this issue.
Comment 7 Jesse Glick 2008-11-11 16:35:46 UTC
No, as I said there are various aspects of 1.7.1 which I want to take advantage of.
Comment 8 Jesse Glick 2008-11-19 01:39:06 UTC
BigProjectLogger is useless:

https://issues.apache.org/bugzilla/show_bug.cgi?id=46236

Otherwise, can use new features. core-main #96d6a939afd9
Comment 9 Quality Engineering 2008-11-19 16:41:15 UTC
Integrated into 'main-golden', will be available in build *200811191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/96d6a939afd9
User: Jesse Glick <jglick@netbeans.org>
Log: #139448: take advantage of Ant 1.7.1 enhancements.