Class ModelCopy

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.uni_hildesheim.sse.easy.ant.AbstractModelTask
de.uni_hildesheim.sse.easy.ant.modelcopy.ModelCopy
All Implemented Interfaces:
Cloneable

public class ModelCopy extends AbstractModelTask
ANT task for copying the an EASy-Producer model (IVML, VIL, VTL, .EASyConfig, ...) to a specified location, while omitting configurations (as specified in QualiMaster).
Author:
El-Sharkawy
  • Field Details

  • Constructor Details

    • ModelCopy

      public ModelCopy()
      Constructor for the ant task.
    • ModelCopy

      public ModelCopy(String orgFolder, String cpyfolder, String mainProject)
      Constructor for testing
      Parameters:
      orgFolder - A folder containing the source artifacts for copying.
      cpyfolder - The folder must exist and empty or not exist (must not be null).
      mainProject - the main project
  • Method Details

    • copy

      private void copy() throws net.ssehub.easy.basics.modelManagement.ModelManagementException, IOException
      Starts the copy process.
      Throws:
      net.ssehub.easy.basics.modelManagement.ModelManagementException - If IVML files could not be parsed
      IOException - If files could not be copied.
    • handleConfigFile

      private void handleConfigFile(String relativeFileName, File destFolder) throws net.ssehub.easy.basics.modelManagement.ModelManagementException, IOException
      Copies the IVML model. Configs will be cleaned.
      Parameters:
      relativeFileName - The path inside AbstractModelTask.sourceFolder.
      destFolder - The destination folder where to save the copy.
      Throws:
      net.ssehub.easy.basics.modelManagement.ModelManagementException - If IVML files could not be parsed
      IOException - If files could not be copied.
    • processDefaultConfig

      private net.ssehub.easy.varModel.model.Project processDefaultConfig(net.ssehub.easy.varModel.model.Project p)
    • clearRewriter

      private void clearRewriter(net.ssehub.easy.varModel.model.Project project, net.ssehub.easy.varModel.model.filter.FilterType filterType)
    • doModelOperation

      public void doModelOperation() throws org.apache.tools.ant.BuildException
      Specified by:
      doModelOperation in class AbstractModelTask
      Throws:
      org.apache.tools.ant.BuildException