sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [sling-scriptingbundle-maven-plugin] 14/17: made script file handling OS-independent
Date Mon, 10 Dec 2018 12:01:19 GMT
This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-scriptingbundle-maven-plugin.git

commit bb072ae9626ceb58c19895b244df065ae2c42515
Author: Radu Cotescu <radu@apache.org>
AuthorDate: Tue Aug 14 16:54:57 2018 +0200

    made script file handling OS-independent
---
 .../org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java
b/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java
index 875133c..bdbded3 100644
--- a/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java
+++ b/src/main/java/org/apache/sling/scripting/maven/plugin/ScriptingMavenPlugin.java
@@ -177,7 +177,7 @@ public class ScriptingMavenPlugin extends AbstractMojo
 
     static Script getScripts(String script) {
         Script result = new Script();
-        String[] parts = script.split("/");
+        String[] parts = script.split(File.separator);
 
         result.rt = parts[0];
         result.version = parts.length > 2 ? new Version(parts[1]).toString() : null;


Mime
View raw message