ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=50091

Stefan Bodewig <bodewig@apache.org> changed:

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

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

using 

 <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
things.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message