ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50091] <java jar=".."> task referring to installed optional packages with nested <jvmarg value="-Djava.ext.dirs=.."/> fails with NoClassDefFoundError
Date Fri, 22 Oct 2010 14:56:52 GMT

Stefan Bodewig <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Stefan Bodewig <> 2010-10-22 10:56:49 EDT ---
the "depreacted" jvmargs attribute strips away the quotes that aren't
needed anyway.


 <jvmarg value="-Djava.ext.dirs=lib"/>

things work fine (for me on Linux where the version with quotes fails).

You are setting a Java property and there is no directory called "lib" (with 
the quotes as part of the name).  On Windows different command line parsing
rules apply, that's why it works there.

If your directory cotained spaces you wouldn't need quotes either since
Ant uses a String[] version of exec() and thus the CLI won't erronously split

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

View raw message