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
ConstructorsModifierConstructorDescriptionprotectedJavaMainCallerSupport(org.apache.maven.plugin.AbstractMojo requester1, String mainClassName1, String classpath, String[] jvmArgs1, String[] args1) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds arguments for the processvoidAdds an environemnt variablevoidaddJvmArgs(String... args0) Adds a JVM arg.voidAdds the key if the value is truevoidAdds an option (key-file pair).voidAdds option (basically two arguments)voidaddToClasspath(File entry) voidrun(boolean displayCmd) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JavaMainCallerAdds a JVM arg. Note: This is not available for in-process "forks"- Specified by:
addJvmArgsin interfaceJavaMainCaller
-
addToClasspath
- Throws:
Exception
-
addOption
Description copied from interface:JavaMainCallerAdds option (basically two arguments)- Specified by:
addOptionin interfaceJavaMainCaller
-
addOption
Description copied from interface:JavaMainCallerAdds an option (key-file pair). This will pull the absolute path of the file- Specified by:
addOptionin interfaceJavaMainCaller
-
addOption
Description copied from interface:JavaMainCallerAdds the key if the value is true- Specified by:
addOptionin interfaceJavaMainCaller
-
addArgs
Description copied from interface:JavaMainCallerAdds arguments for the process- Specified by:
addArgsin interfaceJavaMainCaller
-
addEnvVar
Description copied from interface:JavaMainCallerAdds an environemnt variable- Specified by:
addEnvVarin interfaceJavaMainCaller
-
run
- Specified by:
runin interfaceJavaMainCaller- Throws:
Exception
-