incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1607018 - in /sling/trunk/contrib/crankstart: api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java
Date Tue, 01 Jul 2014 08:35:48 GMT
Author: bdelacretaz
Date: Tue Jul  1 08:35:48 2014
New Revision: 1607018

URL: http://svn.apache.org/r1607018
Log:
SLING-3720 - set crankstart.jar.path - contributed by Artyom Stetsenko, thanks!

Modified:
    sling/trunk/contrib/crankstart/api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java
    sling/trunk/contrib/crankstart/launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java

Modified: sling/trunk/contrib/crankstart/api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/crankstart/api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java?rev=1607018&r1=1607017&r2=1607018&view=diff
==============================================================================
--- sling/trunk/contrib/crankstart/api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java
(original)
+++ sling/trunk/contrib/crankstart/api/src/main/java/org/apache/sling/crankstart/api/CrankstartConstants.java
Tue Jul  1 08:35:48 2014
@@ -18,4 +18,5 @@ package org.apache.sling.crankstart.api;
 
 public class CrankstartConstants {
     public static final String CRANKSTART_INPUT_FILENAME = "crankstart.input.filename";
+    public static final String CRANKSTART_JAR_PATH = "crankstart.jar.path";
 }
\ No newline at end of file

Modified: sling/trunk/contrib/crankstart/launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/crankstart/launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java?rev=1607018&r1=1607017&r2=1607018&view=diff
==============================================================================
--- sling/trunk/contrib/crankstart/launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java
(original)
+++ sling/trunk/contrib/crankstart/launcher/src/main/java/org/apache/sling/crankstart/launcher/Main.java
Tue Jul  1 08:35:48 2014
@@ -16,6 +16,8 @@
  */
 package org.apache.sling.crankstart.launcher;
 
+import org.apache.sling.crankstart.api.CrankstartConstants;
+
 /** Execute a crankstart file */
 public class Main {
     public static final String CLASSPATH_PREFIX = "classpath ";
@@ -28,6 +30,7 @@ public class Main {
         } else {
             crankFile = args[0];
         }
+        System.setProperty(CrankstartConstants.CRANKSTART_JAR_PATH, Main.class.getProtectionDomain().getCodeSource().getLocation().getPath());
         new CrankstartBootstrap(crankFile).start();
     }
 }
\ No newline at end of file



Mime
View raw message