[jbosstools-issues] [JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails
Andre Dietisheim (JIRA)
issues at jboss.org
Mon May 22 16:38:00 EDT 2017
[ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410180#comment-13410180 ]
Andre Dietisheim commented on JBIDE-23862:
------------------------------------------
[~dbocharov] finally found the solution. For mac the full path to the binary has to be given as argument while for linux/windows the binary name is used as argument and the builder directory set:
{code}
+ if (IS_MAC) {
+ args.add(location);
+ Arrays.stream(StringUtils.split(buildArgs(Arrays.asList(options)))).forEach(s -> args.add(s));
+ builder = new ProcessBuilder(args);
+ } else {
+ File oc = new File(location);
+ args.add(oc.getName());
+ Arrays.stream(StringUtils.split(buildArgs(Arrays.asList(options)))).forEach(s -> args.add(s));
+ builder = new ProcessBuilder(args);
+ builder.directory(oc.getParentFile());
+ }
{code}
> 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: Dmitrii Bocharov
> Labels: oc_binary, openshift_v3
> 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