[jbosstools-issues] [JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails
Dmitrii Bocharov (JIRA)
issues at jboss.org
Fri May 12 09:03:00 EDT 2017
[ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405661#comment-13405661 ]
Dmitrii Bocharov commented on JBIDE-23862:
------------------------------------------
I said firstly that it wouldn't work because even if we add quotes, we split the command string with spaces after: https://github.com/openshift/openshift-restclient-java/pull/255/files#diff-47cc26c5c237feb5f5c57eed960d1ee2R156. So i'm really surprised now that when we run
{code:java}
ProcessBuilder builder = new ProcessBuilder(args);
builder.start();
{code}
and pass the following array inside ProcessBuilder:
{noformat}
["C:\name, with, spaces\oc.exe", rsync, --token=ToKeN server=https://10.1.2.2:8443, --insecure-skip-tls-verify=true, --exclude='.git', jboss-eap70-openshift-1-zn39w:/opt/eap/standalone/deployments/, -n, myproject, C:\Users\dbocharo\dev\runtime-New_configuration\.metadata\.plugins\org.jboss.ide.eclipse.as.core\myproject at jboss-eap70-openshift\deploy\]
{noformat}
everything finishes without errors.
> Server adapter: if "oc" in preferences is set to path with a " " syncing fails
> ------------------------------------------------------------------------------
>
> Key: JBIDE-23862
> URL: https://issues.jboss.org/browse/JBIDE-23862
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.4.3.Final
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.5.0.AM1
>
> Attachments: ProcessMain.java
>
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list