[jetty-dev] [jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting
"Jamie Maher (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <230920180.44493.1330462143307.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> |
[ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292947#comment-292947 ]
Jamie Maher commented on JETTY-1492:
------------------------------------
Hi Joakim,
Using the forward slash syntax:
-Djava.security.krb5.conf=C:/Program Files/Apache Software Foundation/Tomcat 5.5/krb5.conf
Results in this:
"-Djava.security.auth.login.config=C:/Program\ Files/Apache\ Software\ Foundation/Tomcat\ 5.5/krb5.conf"
If I quote the start.ini sections (they were not quoted before) then it excludes them in the spawned java jre command line.
It's funny, because the -Djetty.home parameter in the spawned java jre contains spaces in the command line:
(although it's not specified in the start.ini)
"-Djetty.home=C:\Program Files\Jetty\jetty-distribution-8.1.1.v20120215"
There must be some magic processing in the start.jar that is unix specific that's getting applied when it shouldn't..
> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
> Key: JETTY-1492
> URL: https://jira.codehaus.org/browse/JETTY-1492
> Project: Jetty
> Issue Type: Bug
> Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
> Reporter: Jamie Maher
> Priority: Minor
> Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email