This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 530441 - Update to Ant 1.10.3
Summary: Update to Ant 1.10.3
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 4.8 M7   Edit
Assignee: Sarika Sinha CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-29 05:16 EST by Sarika Sinha CLA
Modified: 2018-05-08 03:39 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sarika Sinha CLA 2018-01-29 05:16:20 EST
https://github.com/apache/ant/blob/master/WHATSNEW
Talk of cutting a new release has started.
Comment 1 Sarika Sinha CLA 2018-01-29 05:18:16 EST
Changes from Ant 1.10.1 TO Ant 1.10.2
===================================

Changes that could break older environments:
-------------------------------------------

 * updated the dependency of BCEL to 6.2.
   Bugzilla Report 61196

 * delete task previously would silently accept wildcard (*)
   value for the "file" attribute. That's no longer the case
   and an exception could get thrown by the underlying filesystem
   for such use. Usage like:

   <delete file="/foo/bar/*.something"/>

   should instead be changed to use resource collections like:

   <delete>
   	 <fileset dir="/foo/bar/" includes="*.something"/>
   </delete>

 * Commons Net 3.6 is binary-code, but not source compatible;
   see change list of Commons Net 3.0 for details

 * The Log4jListener is marked as deprecated as the required log4j library
(in version 1.x) is not maintained any more.
Comment 2 Eclipse Genie CLA 2018-02-12 07:09:22 EST
New Gerrit change created: https://git.eclipse.org/r/117154
Comment 3 Eclipse Genie CLA 2018-02-13 04:33:54 EST
New Gerrit change created: https://git.eclipse.org/r/117233
Comment 4 Eclipse Genie CLA 2018-02-13 04:37:19 EST
New Gerrit change created: https://git.eclipse.org/r/117233
Comment 5 Sarika Sinha CLA 2018-02-13 23:34:51 EST
We have a mojor bug with Apache Ant 1.10.2 release
https://bz.apache.org/bugzilla/show_bug.cgi?id=62086
Bug 62086 - NullPointerException in ChainedMapper.mapFileName when building Lucene with Ant 1.10.2

Need to see when are they cutting 1.10.3
Comment 6 Sarika Sinha CLA 2018-02-28 06:01:57 EST
Moving to M7 in the wait of 1.10.3 release.
Comment 7 Sarika Sinha CLA 2018-03-30 04:57:59 EDT
Ant 1.10.3 is released.
Changes from Ant 1.10.2 TO Ant 1.10.3
=====================================

Changes that could break older environments:
-------------------------------------------

 * Previous versions of Ant's copy task would throw a BuildException
   if the "name" of the resource to copy was null. Starting
   this version, the copy task instead silently skips such resources
   and no longer throws an exception.
   ant-dev list https://www.mail-archive.com/dev@ant.apache.org/msg46634.html

 * Reverted the signature change of various clone method
   implementation in Ant's data-types introduced with 1.10.2 as they
   broke subclasses of said data-types which tried to override clone.

Fixed bugs:
-----------

 * Fixed NullPointerException in ChainedMapper
   Bugzilla Report 62086

 * Fixed NullPointerException when a mappedresource is used in pathconvert
   Bugzilla Report 62076

 * Fixed an issue where a string, when used as a resource collection, within
   tokens, would be replaced by property values
   Bugzilla Report 62147

 * Added a workaround for a bug in the jarsigner tool to <verifyjar>
   which requires the -storepass command line argument when verifying
   signatures using -strict together with a PKCS12 keystore. Unlike
   when signing the jar it will not prompt for the keystore's password
   and read it from standard input.
   This means Ant will now pass the keystore's password on the command
   line when using <verifyjar>, which poses a security risk you should
   be aware of.
   Bugzilla Report 62194

Other changes:
--------------

 * Allow Saxon to be used for junitreport XSL transformation
   Github Pull Request #57

 * when running on Java 11+ rmic will fail early if iiop or idl are
   requested. Java11 removes support for CORBA and the switches have
   been removed from the rmic tool.

 * A new junitlauncher task which support JUnit 5 test framework.
Bugzilla Report 61796
Comment 9 Sarika Sinha CLA 2018-04-11 00:43:39 EDT
Thanks Ronald! When can we hope to get the new Orbit build?
Comment 10 Roland Grunberg CLA 2018-04-11 12:09:59 EDT
(In reply to Sarika Sinha from comment #9)
> Thanks Ronald! When can we hope to get the new Orbit build?

You could try against the following I-build :

http://download.eclipse.org/tools/orbit/I-builds/I20180411145523/repository

It should be visible from the Orbit downloads page as well.
Comment 11 Roland Grunberg CLA 2018-04-11 12:10:53 EDT
(In reply to Roland Grunberg from comment #10)
> (In reply to Sarika Sinha from comment #9)
> > Thanks Ronald! When can we hope to get the new Orbit build?
> 
> You could try against the following I-build :
> 
> http://download.eclipse.org/tools/orbit/I-builds/I20180411145523/repository
> 
> It should be visible from the Orbit downloads page as well.

Whoops, the more ideal url would be :

http://download.eclipse.org/tools/orbit/downloads/drops/I20180411145523/repository
Comment 12 Sarika Sinha CLA 2018-04-12 09:21:35 EDT
I downloaded org.apache.ant_1.10.3.v20180410-1723.jar

Found these differences from org.apache.ant_1.10.1.v20170504-0840
1. We have etc folder missing in 1.10.3 jar
2. We have bin folder missing in 1.10.3 jar
3. I need to update about.html for junitlauncher jar.
Comment 13 Roland Grunberg CLA 2018-04-12 10:28:28 EDT
(In reply to Sarika Sinha from comment #12)
> I downloaded org.apache.ant_1.10.3.v20180410-1723.jar
> 
> Found these differences from org.apache.ant_1.10.1.v20170504-0840
> 1. We have etc folder missing in 1.10.3 jar
> 2. We have bin folder missing in 1.10.3 jar
> 3. I need to update about.html for junitlauncher jar.

Sounds fine. 1-3 is easily done. With respect to 1 & 2, between patchset 5 and 6 ( https://git.eclipse.org/r/#/c/117233/5..6 ) they were removed from the resources folder, which is the mechanism used to ensure they end up in the final jar. I thought it was intentional but they can easily be restored.
Comment 14 Eclipse Genie CLA 2018-04-13 01:22:15 EDT
New Gerrit change created: https://git.eclipse.org/r/121111
Comment 15 Sarika Sinha CLA 2018-04-13 07:23:14 EDT
(In reply to Eclipse Genie from comment #14)
> New Gerrit change created: https://git.eclipse.org/r/121111

Handled 1, 2, 3 here.
Comment 17 Sarika Sinha CLA 2018-04-21 02:15:08 EDT
http://download.eclipse.org/tools/orbit/downloads/drops/I20180417184143/ 
contains the latest ant jar.
Looks fine, in Manifest I see added minimum version info for some plugins but that should be ok I think.
Comment 18 Sarika Sinha CLA 2018-04-24 02:08:58 EDT
Available with I20180423-0655.

Test failure fixed.
Comment 20 Sarika Sinha CLA 2018-05-08 03:39:45 EDT
Verified using
Eclipse SDK

Version: Photon (4.8)
Build id: I20180507-2205