Class DirectLauncher
java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.DirectLauncher
- All Implemented Interfaces:
Launcher
An implementation of a
Launcher that expects that the JDrupes
Builder project already been compiled and its classes are available
on the classpath.-
Field Summary
Fields inherited from class AbstractLauncher
commandLine, jdbldProps, log -
Constructor Summary
ConstructorsConstructorDescriptionDirectLauncher(ClassLoader classloader, String[] args) Instantiates a new direct launcher. -
Method Summary
Methods inherited from class AbstractLauncher
baseOptions, findProjects, unwrapBuildException
-
Constructor Details
-
DirectLauncher
Instantiates a new direct launcher. The classpath is scanned for classes that implementProjectbut do not implementMasked. One of these must also implement theRootProjectinterface. The latter is instantiated and registered as root project with all other classes found as direct sub projects.- Parameters:
classloader- the classloaderargs- the arguments
-
-
Method Details
-
provide
Description copied from interface:LauncherProvide the requested resources from the root project.- Type Parameters:
T- the requested type- Parameters:
request- the request- Returns:
- the stream
-
main
This main can be used to start the user's JDrupes Builder project from an IDE for debugging purposes. It expects that the JDrupes Builder project has already been compiled (typically by the IDE) and is available on the classpath.- Parameters:
args- the arguments
-