Skip to content

Commit

Permalink
Fixed cross-plattform fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Loskutov <[email protected]>
  • Loading branch information
iloveeclipse committed Jan 19, 2016
1 parent cbd060f commit a87d048
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*******************************************************************************/
package org.eclipselabs.plugindependencies.core.fixture;

import java.io.File;
import java.security.Permission;

import org.eclipselabs.plugindependencies.core.MainClass;
Expand Down Expand Up @@ -51,8 +52,8 @@ public void checkPermission(Permission perm) {
}

protected static String unFix(String s){
if(s == null){
return null;
if(s == null || File.separatorChar == '/'){
return s;
}
return s.replace('/', '\\');
}
Expand Down

0 comments on commit a87d048

Please sign in to comment.