Package scala_maven_executions
Class JavaMainCallerSupport
java.lang.Object
scala_maven_executions.JavaMainCallerSupport
- All Implemented Interfaces:
JavaMainCaller
- Direct Known Subclasses:
JavaMainCallerByFork
,JavaMainCallerInProcess
Abstract helper implementation for JavaMainCaller interface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JavaMainCallerSupport
(org.apache.maven.plugin.AbstractMojo requester1, String mainClassName1, String classpath, String[] jvmArgs1, String[] args1) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds arguments for the processvoid
Adds an environemnt variablevoid
addJvmArgs
(String... args0) Adds a JVM arg.void
Adds the key if the value is truevoid
Adds an option (key-file pair).void
Adds option (basically two arguments)void
addToClasspath
(File entry) void
run
(boolean displayCmd) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala_maven_executions.JavaMainCaller
redirectToLog, run, spawn
-
Field Details
-
requester
protected org.apache.maven.plugin.AbstractMojo requester -
env
-
mainClassName
-
jvmArgs
-
args
-
-
Constructor Details
-
Method Details
-
addJvmArgs
Description copied from interface:JavaMainCaller
Adds a JVM arg. Note: This is not available for in-process "forks"- Specified by:
addJvmArgs
in interfaceJavaMainCaller
-
addToClasspath
- Throws:
Exception
-
addOption
Description copied from interface:JavaMainCaller
Adds option (basically two arguments)- Specified by:
addOption
in interfaceJavaMainCaller
-
addOption
Description copied from interface:JavaMainCaller
Adds an option (key-file pair). This will pull the absolute path of the file- Specified by:
addOption
in interfaceJavaMainCaller
-
addOption
Description copied from interface:JavaMainCaller
Adds the key if the value is true- Specified by:
addOption
in interfaceJavaMainCaller
-
addArgs
Description copied from interface:JavaMainCaller
Adds arguments for the process- Specified by:
addArgs
in interfaceJavaMainCaller
-
addEnvVar
Description copied from interface:JavaMainCaller
Adds an environemnt variable- Specified by:
addEnvVar
in interfaceJavaMainCaller
-
run
- Specified by:
run
in interfaceJavaMainCaller
- Throws:
Exception
-