Package org.eclipse.steady.goals
Class AbstractAppGoal
- java.lang.Object
-
- org.eclipse.steady.goals.AbstractGoal
-
- org.eclipse.steady.goals.AbstractAppGoal
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
BomGoal,CheckverGoal,CleanGoal,ReportGoal,SequenceGoal,TestGoal,UploadGoal
public abstract class AbstractAppGoal extends AbstractGoal
Represents an analysis goal executed in the context of a givenApplication. It deals particularly with application code and dependencies.
-
-
Field Summary
-
Fields inherited from class org.eclipse.steady.goals.AbstractGoal
CLASS_EXT, JAR_EXT, JAR_WAR_EXT, WAR_EXT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAppGoal(GoalType _type)Constructor for AbstractAppGoal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAppPath(Path _p)addAppPath.voidaddAppPaths(Set<Path> _paths)addAppPaths.protected ApplicationgetApplicationContext()getApplicationContext.List<Path>getAppPaths()getAppPaths.Map<Path,Dependency>getKnownDependencies()Returns knownDependencys.booleanhasAppPaths()hasAppPaths.protected voidprepareExecution()Cleans the cache of theBackendConnector.voidsetKnownDependencies(Map<Path,Dependency> _paths)Sets knownDependencys.-
Methods inherited from class org.eclipse.steady.goals.AbstractGoal
addGoalStats, addGoalStats, addGoalStats, addGoalStats, checkPreconditions, cleanAfterExecution, executeAsync, executeSync, executeTasks, getConfiguration, getGoalClient, getGoalContext, getGoalType, getId, getResultObject, run, runsIn, setConfiguration, setGoalClient, setGoalContext, setObserver, skipGoalUpload, start, stop, stop, toJson, toString, upload
-
-
-
-
Method Detail
-
getApplicationContext
protected Application getApplicationContext()
getApplicationContext.
- Returns:
- a
Applicationobject.
-
getKnownDependencies
public Map<Path,Dependency> getKnownDependencies()
Returns knownDependencys.- Returns:
- a
Mapobject. - See Also:
setKnownDependencies(Map)
-
setKnownDependencies
public void setKnownDependencies(Map<Path,Dependency> _paths)
Sets knownDependencys. Typically called by Vulas plugins for build tools (e.g., the Vulas Maven plugin), where app dependencies are described by project meta information (e.g., the pom.xml file).- Parameters:
_paths- aMapobject.
-
prepareExecution
protected void prepareExecution() throws GoalConfigurationExceptionCleans the cache of theBackendConnector. CAN be overridden in subclasses to perform additional, goal-specific checks and preparations. Checks whether one or morePaths with application constructs, and one or morePaths with dependencies are available.- Overrides:
prepareExecutionin classAbstractGoal- Throws:
GoalConfigurationException- if any.
-
addAppPath
public void addAppPath(Path _p) throws IllegalArgumentException
addAppPath.
- Parameters:
_p- aPathobject.- Throws:
IllegalArgumentException- if any.
-
addAppPaths
public void addAppPaths(Set<Path> _paths) throws IllegalArgumentException
addAppPaths.
- Parameters:
_paths- aSetobject.- Throws:
IllegalArgumentException- if any.
-
hasAppPaths
public boolean hasAppPaths()
hasAppPaths.
- Returns:
- a boolean.
-
-