Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-18863 - browse button causes wrong separators in deployment pref UI #311

Merged
merged 1 commit into from Dec 4, 2014

Conversation

@robstryker
Copy link
Member

robstryker commented Dec 3, 2014

No description provided.

protected char getSeparatorCharacter(IServer server) {
// Discover the proper separator character for the paths being used
char sep = File.separatorChar;
IControllableServerBehavior beh = JBossServerBehaviorUtils.getControllableBehavior(server);
return makeRelative(path, getPage().getServer().getRuntime());
}

private static String makeRelative(String path, IRuntime runtime) {
return ServerUtil.makeRelative(runtime, new Path(path)).toString();
return ServerUtil.makeRelative(runtime, new Path(path)).toOSString();

This comment has been minimized.

Copy link
@fbricon

fbricon Dec 3, 2014

Member

So what if the remote OS is different from the local one?

This comment has been minimized.

Copy link
@robstryker

robstryker Dec 3, 2014

Author Member

If remote OS is different from local, that's handled 5 lines above: if separators are different from local, do not modify the path at all.

@robstryker robstryker force-pushed the robstryker:JBIDE-18863 branch 4 times, most recently from f731a52 to 009e2c2 Dec 3, 2014
@fbricon
Copy link
Member

fbricon commented Dec 4, 2014

+1 to apply, after squashing the commits

…f UI

JBIDE-18863 - fix a missing toOSString() in the deployment scanner additions
@robstryker robstryker force-pushed the robstryker:JBIDE-18863 branch from 009e2c2 to 80bfaee Dec 4, 2014
@robstryker robstryker merged commit 80bfaee into jbosstools:master Dec 4, 2014
@robstryker robstryker deleted the robstryker:JBIDE-18863 branch Jan 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.