Package org.apache.maven.artifact.handler

Examples of org.apache.maven.artifact.handler.DefaultArtifactHandler


        return new File( basedir, "/target/test-classes/unit/sample_wars/ejb.jar" );
    }

    public ArtifactHandler getArtifactHandler()
    {
        return new DefaultArtifactHandler()
        {
            public String getExtension()
            {
                return "jar";
            }
View Full Code Here


        return false;
    }

    public ArtifactHandler getArtifactHandler()
    {
        return new DefaultArtifactHandler( getType() );
    }
View Full Code Here

        return "testclassifier";
    }

    public ArtifactHandler getArtifactHandler()
    {
        return new DefaultArtifactHandler();
    }
View Full Code Here

        return new File( basedir, "/target/test-classes/unit/sample_wars/ejbclient.jar" );
    }

    public ArtifactHandler getArtifactHandler()
    {
        return new DefaultArtifactHandler()
        {
            public String getExtension()
            {
                return "jar";
            }
View Full Code Here

    }

    public ArtifactStub( String groupId, String artifactId, String version, String packaging, String classifier, String scope )
    {
        super( groupId, artifactId, VersionRange.createFromVersion( version ), scope, packaging,
               classifier, new DefaultArtifactHandler( packaging ), false );
    }
View Full Code Here

    public Set getDependencyArtifacts()
    {
        return Collections.singleton(
            new DefaultArtifact( "assembly", "dependency-artifact", VersionRange.createFromVersion( "1.0" ),
                                 Artifact.SCOPE_COMPILE, "jar", null, new DefaultArtifactHandler( "jar" ), false )
            );
    }
View Full Code Here

    public ArtifactStub()
    {
        type = "testtype";
        scope = "testscope";
        classifier = "testclassifier";
        artifactHandler = new DefaultArtifactHandler();
    }
View Full Code Here

        return new File( basedir, "/target/test-classes/unit/sample_wars/ejb.jar" );
    }

    public ArtifactHandler getArtifactHandler()
    {
        return new DefaultArtifactHandler()
        {
            public String getExtension()
            {
                return "jar";
            }
View Full Code Here

        ArtifactRepository localRepository =
            new DefaultArtifactRepository( "local", url, new DefaultRepositoryLayout() );

        ArtifactFactory artifactFactory = new DefaultArtifactFactory();

        DefaultArtifactHandler javaSourceArtifactHandler = new DefaultArtifactHandler( "java-source" );
        setVariableValueToObject( javaSourceArtifactHandler, "extension", "jar" );

        DefaultArtifactHandler javadocArtifactHandler = new DefaultArtifactHandler( "javadoc" );
        setVariableValueToObject( javadocArtifactHandler, "extension", "jar" );

        Map artifactHandlers = new HashMap();
        artifactHandlers.put( "java-source", javaSourceArtifactHandler );
        artifactHandlers.put( "javadoc", javadocArtifactHandler );
View Full Code Here

        setName( getModel().getName() );
        setUrl( getModel().getUrl() );
        setPackaging( getModel().getPackaging() );

        Artifact junit = new DefaultArtifact( "junit", "junit", VersionRange.createFromVersion( "3.8.1" ),
                                              Artifact.SCOPE_TEST, "jar", null, new DefaultArtifactHandler( "jar" ),
                                              false );
        junit.setFile( new File( getBasedir() + "/junit/junit/3.8.1/junit-3.8.1.jar" ) );
        setTestArtifacts( Collections.singletonList( junit ) );

        Build build = new Build();
View Full Code Here

TOP

Related Classes of org.apache.maven.artifact.handler.DefaultArtifactHandler

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.