Package org.wildfly.plugin.tools.cli
Class ForkedCLIUtil
java.lang.Object
org.wildfly.plugin.tools.cli.ForkedCLIUtil
A utility for forking a CLI process.
- Author:
- jdenise, James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ForkedCLIUtil
public ForkedCLIUtil()
-
-
Method Details
-
fork
public static void fork(String[] artifacts, Class<?> clazz, Path home, Path output, String... args) throws IOException Forks a CLI process.- Parameters:
artifacts
- the artifacts to add to the class pathclazz
- the class to invokehome
- the home directory, this is always the first argumentoutput
- the path to the output file for the processargs
- any additional arguments to send add to the call- Throws:
IOException
- if an error occurs create the process
-
fork
public static void fork(Collection<String> artifacts, Class<?> clazz, Path home, Path output, String... args) throws IOException Forks a CLI process.- Parameters:
artifacts
- the artifacts to add to the class pathclazz
- the class to invokehome
- the home directory, this is always the first argumentoutput
- the path to the output file for the processargs
- any additional arguments to send add to the call- Throws:
IOException
- if an error occurs create the process
-