Package org.codehaus.cargo.maven3.util
Class CargoProject
- java.lang.Object
-
- org.codehaus.cargo.maven3.util.CargoProject
-
public class CargoProject extends Object
Holder class to transport all required information to the configuration classes.
-
-
Constructor Summary
Constructors Constructor Description CargoProject(String packaging, String groupId, String artifactId, String buildDirectory, String finalName, Set<org.apache.maven.artifact.Artifact> artifacts, org.apache.maven.plugin.logging.Log log)
Saves all attributes.CargoProject(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)
Saves all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArtifactId()
Set<org.apache.maven.artifact.Artifact>
getArtifacts()
String
getBuildDirectory()
ClassLoader
getEmbeddedClassLoader()
String
getFinalName()
String
getGroupId()
org.apache.maven.plugin.logging.Log
getLog()
String
getPackaging()
boolean
isDaemonRun()
boolean
isJ2EEPackaging()
void
setDaemonRun(boolean enable)
void
setEmbeddedClassLoader(ClassLoader classLoader)
-
-
-
Constructor Detail
-
CargoProject
public CargoProject(String packaging, String groupId, String artifactId, String buildDirectory, String finalName, Set<org.apache.maven.artifact.Artifact> artifacts, org.apache.maven.plugin.logging.Log log)
Saves all attributes.- Parameters:
packaging
- Packaging.groupId
- Group id.artifactId
- Artifact id.buildDirectory
- Build directory.finalName
- Final name.artifacts
- Project artifacts.log
- Logger.
-
CargoProject
public CargoProject(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)
Saves all attributes.- Parameters:
project
- Maven 3 project.log
- Logger.
-
-
Method Detail
-
getPackaging
public String getPackaging()
- Returns:
- Packaging.
-
getGroupId
public String getGroupId()
- Returns:
- Group id.
-
getArtifactId
public String getArtifactId()
- Returns:
- Artifact id.
-
getBuildDirectory
public String getBuildDirectory()
- Returns:
- Build directory.
-
getFinalName
public String getFinalName()
- Returns:
- Final name.
-
getArtifacts
public Set<org.apache.maven.artifact.Artifact> getArtifacts()
- Returns:
- Project artifacts.
-
getLog
public org.apache.maven.plugin.logging.Log getLog()
- Returns:
- Logger.
-
isDaemonRun
public boolean isDaemonRun()
- Returns:
- if project is part of a daemon run.
-
setDaemonRun
public void setDaemonRun(boolean enable)
- Parameters:
enable
- If project is part of a daemon run.
-
isJ2EEPackaging
public boolean isJ2EEPackaging()
- Returns:
true
if the project has a Java EE packaging.
-
setEmbeddedClassLoader
public void setEmbeddedClassLoader(ClassLoader classLoader)
- Parameters:
classLoader
-ClassLoader
that's embedded with dependencies.
-
getEmbeddedClassLoader
public ClassLoader getEmbeddedClassLoader()
- Returns:
ClassLoader
that's embedded with dependencies.
-
-