From 4c81f5a58ec0f1ff426e8f7848f765cdb65d707f Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Tue, 15 Aug 2017 14:46:39 +0300 Subject: [PATCH] Maven: simplify code --- .../compiler/MavenWebArtifactRootCopyingHandlerProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/maven/jps-plugin/src/org/jetbrains/jps/maven/compiler/MavenWebArtifactRootCopyingHandlerProvider.java b/plugins/maven/jps-plugin/src/org/jetbrains/jps/maven/compiler/MavenWebArtifactRootCopyingHandlerProvider.java index a29774ce8586..49c24e904a88 100644 --- a/plugins/maven/jps-plugin/src/org/jetbrains/jps/maven/compiler/MavenWebArtifactRootCopyingHandlerProvider.java +++ b/plugins/maven/jps-plugin/src/org/jetbrains/jps/maven/compiler/MavenWebArtifactRootCopyingHandlerProvider.java @@ -80,7 +80,7 @@ public class MavenWebArtifactRootCopyingHandlerProvider extends ArtifactRootCopy relativePathInWar = FileUtil.getRelativePath(new File(artifact.getOutputPath()), new File(targetDirectory, root.getName())); if (relativePathInWar != null) { // cut the exploded directory name - relativePathInWar = StringUtil.substringAfter(relativePathInWar, String.valueOf(File.separatorChar)); + relativePathInWar = StringUtil.substringAfter(relativePathInWar, File.separator); } if (relativePathInWar == null) return null; }