Class EclipseProjectByClassRegistration
java.lang.Object
tools.mdsd.library.standalone.initialization.core.EclipseProjectByClassRegistration
- All Implemented Interfaces:
InitializationTask
This Initialization Task allows to register the eclipse project which encloses a given class.
The task looks for Eclipse Project files (".project") files and Jar-File Manifests
("META-INF/MANIFEST.MF"). It should be added to a Standalone Initialization sequence through
StandaloneInitializerBuilder.addCustomTask(InitializationTask)
.-
Constructor Summary
ConstructorDescriptionEclipseProjectByClassRegistration
(Class<?> clazz) Creates a new instance of the initialization task. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an initialization if running outside of Eclipse.tryFindProjectContaining
(Class<?> clz) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.mdsd.library.standalone.initialization.InitializationTask
init, initializationWithPlatform, isPlatformRunning
-
Constructor Details
-
EclipseProjectByClassRegistration
Creates a new instance of the initialization task.- Parameters:
clazz
- the class which is used to look up the enclosing project. Therefore, it needs to be located on the file system.
-
-
Method Details
-
initilizationWithoutPlatform
Description copied from interface:InitializationTask
Performs an initialization if running outside of Eclipse.- Specified by:
initilizationWithoutPlatform
in interfaceInitializationTask
- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
tryFindProjectContaining
protected static Map<String,File> tryFindProjectContaining(Class<?> clz) throws StandaloneInitializationException
-