Class ProjectUtilities
java.lang.Object
de.uni_hildesheim.sse.easy.ant.modelcopy.ProjectUtilities
Utility functions needed by this tool while handling
Projects.- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static net.ssehub.easy.basics.modelManagement.ModelManagementExceptionStores an exception which may occur during initialization of this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.ssehub.easy.varModel.model.ProjectloadProject(String projectName) Load an IVML File as project.static voidsaveProject(File destFolder, net.ssehub.easy.varModel.model.Project project) Saves the given project to the specified folder.
-
Field Details
-
intialException
private static net.ssehub.easy.basics.modelManagement.ModelManagementException intialExceptionStores an exception which may occur during initialization of this class.
-
-
Constructor Details
-
ProjectUtilities
public ProjectUtilities()
-
-
Method Details
-
loadProject
public static net.ssehub.easy.varModel.model.Project loadProject(String projectName) throws net.ssehub.easy.basics.modelManagement.ModelManagementException, IOException Load an IVML File as project.- Parameters:
projectName- of the project file to load- Returns:
- the loaded ivml file as project.
- Throws:
IOException- if an error occurred due reading the ivml filenet.ssehub.easy.basics.modelManagement.ModelManagementException
-
saveProject
public static void saveProject(File destFolder, net.ssehub.easy.varModel.model.Project project) throws IOException Saves the given project to the specified folder.- Parameters:
destFolder- The folder where the project shall be saved to.project- The project to be saved.- Throws:
IOException- if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
-