[ 
http://jira.codehaus.org/browse/SUREFIRE-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92762
 ] 

Carlos Sanchez commented on SUREFIRE-297:
-----------------------------------------

with this config 

          <argLine>"-Djava.library.path=foo foo/foo/bar/1.0"</argLine>

I get

[DEBUG] Using JVM: c:\Program Files\Java\jdk1.5.0_10\jre\bin\java
[INFO] Surefire report directory: 
d:\dev\maven\surefire\maven-surefire-plugin\src\it\testArgLine\target\surefire-reports
Forking command line: "c:\Program Files\Java\jdk1.5.0_10\jre\bin\java" 
'"-Djava.library.path=foo' 'foo/foo/bar/1.0"' -classpath "C:\Documents and 
Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;C:\Documents
 and Settings\csanchez\.m2\re
pository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Documents and 
Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;C:\Documents
 and 
Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3
.jar;C:\Documents and 
Settings\csanchez\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;C:\Documents
 and 
Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents
 and Settings\csanchez\.m2\repository\commons-lang\commons-la
ng\2.1\commons-lang-2.1.jar;C:\Documents and 
Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar"
 org.apache.maven.surefire.booter.SurefireBooter 
c:\DOCUME~1\csanchez\LOCALS~1\Temp\surefire53727tmp 
c:\DOCUME~1\csanchez\LOCALS~1\Temp\surefire53728tmp

java.lang.NoClassDefFoundError: '-Djava/library/path=foo' 'foo/foo/bar/1/0'
Exception in thread "main"

> argLine has changed behavior from 2.2 to 2.3.
> ---------------------------------------------
>
>                 Key: SUREFIRE-297
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-297
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows XP
>            Reporter: Bård Dybwad Kristensen
>            Priority: Critical
>             Fix For: 2.3.1
>
>
> Hi
> I have used the following configuration for the surefire plugin version 2.2:
>                               <configuration>
>                                       <argLine>-verbose 
> -javaagent:D:\.m2\repository\jmockit\jmockit\0.83\jmockit-0.83.jar</argLine>
>                               </configuration>
> It works (not really, but that is another issue). But when I downloaded 
> version 2.3, this stopped working. The -verbose argument is still forwarded 
> to the java process, but the -javaagent is not forwarded. If I switch back to 
> the 2.2 version of the plug in, everything is fine. Any ideas?
> regards,
> bdk

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to