You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Rothmaler (JIRA)" <ji...@codehaus.org> on 2010/08/10 11:07:33 UTC

[jira] Commented: (SUREFIRE-634) setting "java.library.path" via systemPropertyVariables or systemProperties is not working

    [ http://jira.codehaus.org/browse/SUREFIRE-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231569#action_231569 ] 

Daniel Rothmaler commented on SUREFIRE-634:
-------------------------------------------

It seems that "java.library.path" can't be changed, using the System.setProperty method (see: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4280189), as it is done by the SurefireBooter. So there should be a special handling for such read-only properties (conversion to "-D" commandline arguments) or at least it would be nice, if the "systemPropertyVariables" documentation would contain an hint, that they are configured using "System.setProperty" and that this may not work for some properties like "java.library.path".


> setting "java.library.path" via systemPropertyVariables or systemProperties is not working
> ------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-634
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-634
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.5
>         Environment: Windows 7 (x64)
>            Reporter: Daniel Rothmaler
>            Priority: Minor
>
> I tried to set "java.library.path" for my tests, to use an native windows dll (in my case jawin.dll). 
> Id tried to do this the following way:
> <systemPropertyVariables>
>   <java.library.path>${basedir}/src/main/runtime/lib/</java.library.path>
> </systemPropertyVariables>
> I also tried to use the older <systemProperties>, with "${project.build.directory}/lib/" as base (with copied libs of cause), with an absolute path and with different fork modes; but nothing worked.
> The only way to get it going was to use "<argLine>":
> <argLine>-Djava.library.path=${basedir}/src/main/runtime/lib/</argLine>

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