Package net.ssehub.easy.standalone.cmd
Class ProjectCommands
java.lang.Object
net.ssehub.easy.standalone.cmd.ProjectCommands
Command line commands on project level.
Before calling any of the methods in this class, EASy must be loaded via calling
Before calling any of the methods in this class, EASy must be loaded via calling
LowlevelCommands.startEASy().- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static final voidcheckFolder(File file, String name) Checks a folder for existence and folder nature.static voidsetConfigLocation(File project, File ivmlFolder, File vilFolder) Defines the configuration locations.static voidsetConfigLocation(File project, File ivmlFolder, File vilFolder, File vtlFolder) Defines the configuration locations.static voidtoggleEasyNature(File project, String... classpath) Toggles the EASy nature on a folder representing a project.static voidupdateDependencies(File project, String... classpath) Update product line dependencies viaContributions.updateDependencies(File, String...).
-
Field Details
-
XTEXT_NATURE_ID
- See Also:
-
-
Constructor Details
-
ProjectCommands
public ProjectCommands()
-
-
Method Details
-
toggleEasyNature
public static void toggleEasyNature(File project, String... classpath) throws IOException, IllegalArgumentException Toggles the EASy nature on a folder representing a project. This method may initially update product line dependencies viaContributions.updateDependencies(File, String...).- Parameters:
project- the folder representing a projectclasspath- the classpath of the project (needed in case of importing product line models, may be null or empty)- Throws:
IOException- in case of writing the configuration file causes an I/O problemIllegalArgumentException- in case that the given folders are invalid
-
updateDependencies
Update product line dependencies viaContributions.updateDependencies(File, String...).- Parameters:
project- the folder representing a projectclasspath- the classpath of the project (needed in case of importing product line models, may be null or empty)- Throws:
IOException- in case of writing the configuration file causes an I/O problemIllegalArgumentException- in case that the given folders are invalid
-
checkFolder
Checks a folder for existence and folder nature.- Parameters:
file- the file to be checkedname- the parameter name (for formatting the exception)- Throws:
IllegalArgumentException- in case that the givenfileis not a folder
-
setConfigLocation
public static void setConfigLocation(File project, File ivmlFolder, File vilFolder) throws IOException, IllegalArgumentException Defines the configuration locations. Uses the given VIL folder also for VTL.- Parameters:
project- the folder representing a projectivmlFolder- the IVML modelsvilFolder- the VIL models- Throws:
IOException- in case of writing the configuration file causes an I/O problemIllegalArgumentException- in case that at least one of the given folders is invalid- See Also:
-
setConfigLocation
public static void setConfigLocation(File project, File ivmlFolder, File vilFolder, File vtlFolder) throws IOException, IllegalArgumentException Defines the configuration locations.- Parameters:
project- the folder representing a projectivmlFolder- the IVML modelsvilFolder- the VIL modelsvtlFolder- the VTL models- Throws:
IOException- in case of writing the configuration file causes an I/O problemIllegalArgumentException- in case that at least one of the given folders is invalid
-