Class CargoProject


  • public class CargoProject
    extends Object
    Holder class to transport all required information to the configuration classes.
    • 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.