Class EclipseProjectScanner
- java.lang.Object
-
- tools.mdsd.library.standalone.initialization.core.EclipseProjectScanner
-
- All Implemented Interfaces:
InitializationTask
public class EclipseProjectScanner extends Object implements InitializationTask
The Eclipse Project scanner allows to register multiple projects with the standalone initialization which are nested inside a given folder. The scanner looks for Eclipse Project files (".project") files and Jar-File Manifests ("META-INF/MANIFEST.MF"). It should be added to a Standalone Initialization sequence throughStandaloneInitializerBuilder.addCustomTask(InitializationTask)
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_DEPTH
static String
PROJECT_FILE_NAME
-
Constructor Summary
Constructors Constructor Description EclipseProjectScanner(Path basePath)
Creates a new Instance of the Eclipse Project Scanner Task.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Map<String,File>
findProjects(Path basePath)
void
initilizationWithoutPlatform()
Performs an initialization if running outside of Eclipse.protected static String
readProjectNameFromManifestFile(Path path)
protected static String
readProjectNameFromProjectFile(Path path)
-
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
-
-
-
-
Field Detail
-
DEFAULT_MAX_DEPTH
public static final int DEFAULT_MAX_DEPTH
- See Also:
- Constant Field Values
-
PROJECT_FILE_NAME
public static final String PROJECT_FILE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EclipseProjectScanner
public EclipseProjectScanner(Path basePath)
Creates a new Instance of the Eclipse Project Scanner Task.- Parameters:
basePath
- the path within which the scanner will look for Eclipse project files or Jar-Manifests.
-
-
Method Detail
-
initilizationWithoutPlatform
public void initilizationWithoutPlatform() throws StandaloneInitializationException
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.
-
findProjects
protected static Map<String,File> findProjects(Path basePath) throws IOException
- Throws:
IOException
-
-