Class Make

  • All Implemented Interfaces:
    net.ssehub.easy.instantiation.core.model.vilTypes.IVilType

    public class Make
    extends net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator
    A Make-Instantiator, wich runs make-scripts with the help of ANT (operating system independent).
    Author:
    Sebastian Bender
    • Constructor Summary

      Constructors 
      Constructor Description
      Make()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void antDebugging​(org.apache.tools.ant.Project project)
      Applies debugging settings to the executing ANT project.
      private static java.lang.String argumentsToString​(java.util.Map<java.lang.String,​java.lang.Object> arguments)
      Turns VIL parameters into string parameters for Make.
      private static java.io.File createTempBuildFile​(java.lang.String path, java.lang.String arguments)
      Creates a temporary ANT build file to execute make.
      static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> make​(net.ssehub.easy.instantiation.core.model.artifactModel.Path root, java.lang.String buildFilePath, java.lang.String buildtarget, java.util.Map<java.lang.String,​java.lang.Object> arguments)
      Runs make-scripts with the help of ANT.
      • Methods inherited from class net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator

        determineTargetPath, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Make

        public Make()
    • Method Detail

      • make

        public static net.ssehub.easy.instantiation.core.model.vilTypes.Set<net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact> make​(net.ssehub.easy.instantiation.core.model.artifactModel.Path root,
                                                                                                                                                      java.lang.String buildFilePath,
                                                                                                                                                      java.lang.String buildtarget,
                                                                                                                                                      java.util.Map<java.lang.String,​java.lang.Object> arguments)
                                                                                                                                               throws net.ssehub.easy.instantiation.core.model.common.VilException
        Runs make-scripts with the help of ANT.
        Parameters:
        root - the root-path
        buildFilePath - the make-build-file
        buildtarget - the build target (must be ant)
        arguments - make-arguments
        Returns:
        the created artefacts
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException - in case of execution/parameter problems
      • createTempBuildFile

        private static java.io.File createTempBuildFile​(java.lang.String path,
                                                        java.lang.String arguments)
        Creates a temporary ANT build file to execute make.
        Parameters:
        path - the path to execute the make file within
        arguments - the arguments for make
        Returns:
        the created (temporary) file
      • argumentsToString

        private static java.lang.String argumentsToString​(java.util.Map<java.lang.String,​java.lang.Object> arguments)
        Turns VIL parameters into string parameters for Make.
        Parameters:
        arguments - the arguments to be turned into a String
        Returns:
        the resulting string
      • antDebugging

        private static void antDebugging​(org.apache.tools.ant.Project project)
        Applies debugging settings to the executing ANT project.
        Parameters:
        project - the project to be modified