Package org.codehaus.mojo.appassembler.model

Examples of org.codehaus.mojo.appassembler.model.Dependency


        assertEquals( asserts[4], util.getClassPath( daemon ) );
    }

    private Dependency createDependency( String relativePath )
    {
        Dependency dependency = new Dependency();
        dependency.setRelativePath( relativePath );
        return dependency;
    }
View Full Code Here


        classPathArtifacts.add( projectArtifact );

        for ( Iterator it = classPathArtifacts.iterator(); it.hasNext(); )
        {
            Artifact artifact = (Artifact) it.next();
            Dependency dependency = new Dependency();
            dependency.setGroupId( artifact.getGroupId() );
            dependency.setArtifactId( artifact.getArtifactId() );
            dependency.setVersion( artifact.getVersion() );
            dependency.setRelativePath( artifactRepositoryLayout.pathOf( artifact ) );
            dependencies.add( dependency );
        }

        daemon.getClasspath().setDependencies( dependencies );
View Full Code Here

        if ( artifact == null )
        {
            throw new DaemonGeneratorException( "The project has to have a dependency on '" + id + "'." );
        }

        Dependency dependency = new Dependency();

        dependency.setRelativePath( artifactRepositoryLayout.pathOf( artifact ) );
        return dependency;
    }
View Full Code Here

        complete.setClasspath( new Classpath() );

        // -----------------------------------------------------------------------
        // Add the project itself as a dependency.
        // -----------------------------------------------------------------------
        Dependency projectDependency = new Dependency();
        Artifact projectArtifact = project.getArtifact();
        if ( ! "pom".equalsIgnoreCase(projectArtifact.getType()) ){
          projectArtifact.isSnapshot();
          projectDependency.setGroupId( projectArtifact.getGroupId() );
          projectDependency.setArtifactId( projectArtifact.getArtifactId() );
          projectDependency.setVersion( projectArtifact.getVersion() );
          projectDependency.setClassifier( projectArtifact.getClassifier() );
          projectDependency.setRelativePath( layout.pathOf( projectArtifact ) );
          complete.getClasspath().addDependency( projectDependency );
        }

        // -----------------------------------------------------------------------
        // Add all the dependencies from the project.
        // -----------------------------------------------------------------------
        for ( Iterator it = project.getRuntimeArtifacts().iterator(); it.hasNext(); )
        {
            Artifact artifact = (Artifact) it.next();
           
            artifact.isSnapshot();

            Dependency dependency = new Dependency();
            dependency.setGroupId( artifact.getGroupId() );
            dependency.setArtifactId( artifact.getArtifactId() );
            dependency.setVersion( artifact.getVersion() );

            dependency.setClassifier( artifact.getClassifier() );
            dependency.setRelativePath( layout.pathOf( artifact ) );

            complete.getClasspath().addDependency( dependency );
        }

        return complete;
View Full Code Here

TOP

Related Classes of org.codehaus.mojo.appassembler.model.Dependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.