[jetty-dev] [jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting
"Joakim Erdfelt (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <517382129.44506.1330463282947.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> |
[ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292949#comment-292949 ]
Joakim Erdfelt commented on JETTY-1492:
---------------------------------------
Actually, it's not unix specific, its Runtime.exec() specific.
The arguments for it must be properly quoted/escaped for it to work.
Wish I could flag bugs on jira as 'valid' or 'confirmed'
> 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