Class Make
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator
-
- net.ssehub.easy.instantiation.ant.instantiators.Make
-
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class Make extends net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiatorA Make-Instantiator, wich runs make-scripts with the help of ANT (operating system independent).- Author:
- Sebastian Bender
-
-
Field Summary
Fields Modifier and Type Field Description private static CustomAntLoggerCONSOLE_LOGGERprivate static intERR_PRIOprivate static intMSG_PRIOprivate static java.lang.StringXML_TYPE
-
Constructor Summary
Constructors Constructor Description Make()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidantDebugging(org.apache.tools.ant.Project project)Applies debugging settings to the executing ANT project.private static java.lang.StringargumentsToString(java.util.Map<java.lang.String,java.lang.Object> arguments)Turns VIL parameters into string parameters for Make.private static java.io.FilecreateTempBuildFile(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.
-
-
-
Field Detail
-
CONSOLE_LOGGER
private static final CustomAntLogger CONSOLE_LOGGER
-
XML_TYPE
private static final java.lang.String XML_TYPE
- See Also:
- Constant Field Values
-
ERR_PRIO
private static final int ERR_PRIO
- See Also:
- Constant Field Values
-
MSG_PRIO
private static final int MSG_PRIO
- See Also:
- Constant Field Values
-
-
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.VilExceptionRuns make-scripts with the help of ANT.- Parameters:
root- the root-pathbuildFilePath- the make-build-filebuildtarget- 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 withinarguments- 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
-
-