Lines 823-830
Link Here
|
823 |
try { |
823 |
try { |
824 |
FileSystem fs = FileSystemProvider.getFileSystem(conf.getFileSystemHost()); |
824 |
FileSystem fs = FileSystemProvider.getFileSystem(conf.getFileSystemHost()); |
825 |
FileObject root = fs.getRoot(); |
825 |
FileObject root = fs.getRoot(); |
|
|
826 |
if (workingDir.startsWith("\\\\")) { //NOI18N |
827 |
// fileUtil cannot create folder on network path. See IZ #268116 |
828 |
String unixWorkingDir= workingDir.replace('\\', '/'); |
829 |
FileObject[] children = root.getChildren(); |
830 |
for(FileObject ch : root.getChildren()) { |
831 |
String prefix = ch.getPath()+"/"; |
832 |
if (unixWorkingDir.startsWith(prefix)) { |
833 |
root = ch; |
834 |
break; |
835 |
} |
836 |
} |
837 |
} |
826 |
String toRelativePath = CndPathUtilities.toRelativePath(root, workingDir); |
838 |
String toRelativePath = CndPathUtilities.toRelativePath(root, workingDir); |
827 |
FileUtil.createFolder(fs.getRoot(), toRelativePath); |
839 |
FileUtil.createFolder(root, toRelativePath); |
828 |
} catch (IOException ex) { |
840 |
} catch (IOException ex) { |
829 |
Exceptions.printStackTrace(ex); |
841 |
Exceptions.printStackTrace(ex); |
830 |
} |
842 |
} |
Lines 834-840
Link Here
|
834 |
actionEvents.add(projectActionEvent); |
846 |
actionEvents.add(projectActionEvent); |
835 |
return true; |
847 |
return true; |
836 |
} |
848 |
} |
837 |
|
849 |
|
838 |
private boolean onBuildStep(ArrayList<ProjectActionEvent> actionEvents, MakeConfigurationDescriptor pd, MakeConfiguration conf, Lookup context, Type actionEvent) { |
850 |
private boolean onBuildStep(ArrayList<ProjectActionEvent> actionEvents, MakeConfigurationDescriptor pd, MakeConfiguration conf, Lookup context, Type actionEvent) { |
839 |
if (conf.isCompileConfiguration() && !validateProject(conf)) { |
851 |
if (conf.isCompileConfiguration() && !validateProject(conf)) { |
840 |
return true; |
852 |
return true; |