ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48541] New: JarJar task silently behaves in incorrect way
Date Thu, 14 Jan 2010 13:11:45 GMT

           Summary: JarJar task silently behaves in incorrect way
           Product: Ant
           Version: 1.8.0RC1
          Platform: PC
        OS/Version: Mac System 7
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Core

In JRuby build, we use JarJar to bundle multiple JARs into a single one, plus
tweak the package names. We have the following:

<rule pattern="org.objectweb.asm.**" result="jruby.objectweb.asm.@1"/>

to replace org.objectweb.asm package with jruby.objectweb.asm one.

And it works just fine with Ant 1.7.0 and 1.7.1. But with 1.8.0RC1 the things
are broken and jarjar just silently skips this step of renaming the package.

If you'd like a test for this, then from JRuby repository:

1. ant jar-complete
2. java -cp lib\jruby-complete.jar org.jruby.Main -v

leads to crash (due to missing classes).

I bisected Ant repo, and it seems that the commit that introduced this problem
rev 794204:

Author: Stefan Bodewig <>
Date:   Wed Jul 15 09:01:48 2009 +0000

preserve ZIP extra fields

So, this is a regression that breaks important and popular JarJar task and
makes JRuby build completely broken.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message