Package org.apache.karaf.jpm.impl
Class ScriptUtils
- java.lang.Object
-
- org.apache.karaf.jpm.impl.ScriptUtils
-
public class ScriptUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ScriptUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyFilteredResource(String resource, File outFile, Map<String,String> props)static intexecute(String name, Map<String,String> props)static intexecuteProcess(ProcessBuilder builder)static StringgetJavaCommandPath()static booleanisWindows()
-
-
-
Method Detail
-
execute
public static int execute(String name, Map<String,String> props) throws IOException
- Throws:
IOException
-
executeProcess
public static int executeProcess(ProcessBuilder builder) throws IOException
- Throws:
IOException
-
copyFilteredResource
public static void copyFilteredResource(String resource, File outFile, Map<String,String> props) throws IOException
- Throws:
IOException
-
isWindows
public static boolean isWindows()
-
getJavaCommandPath
public static String getJavaCommandPath() throws IOException
- Throws:
IOException
-
-