Package org.apache.archiva.configuration

Examples of org.apache.archiva.configuration.LegacyArtifactPath


        value.setNetworkProxies( networkProxies );
        java.util.List legacyArtifactPaths = new java.util.ArrayList/*<LegacyArtifactPath>*/();
        List legacyArtifactPathsSubsets = registry.getSubsetList( prefix + "legacyArtifactPaths.legacyArtifactPath" );
        for ( Iterator i = legacyArtifactPathsSubsets.iterator(); i.hasNext(); )
        {
            LegacyArtifactPath v = readLegacyArtifactPath( "", (Registry) i.next() );
            legacyArtifactPaths.add( v );
        }
        value.setLegacyArtifactPaths( legacyArtifactPaths );
        RepositoryScanningConfiguration repositoryScanning = readRepositoryScanningConfiguration( prefix + "repositoryScanning.", registry );
        value.setRepositoryScanning( repositoryScanning );
View Full Code Here


        return value;
    }
   
    private LegacyArtifactPath readLegacyArtifactPath( String prefix, Registry registry )
    {
        LegacyArtifactPath value = new LegacyArtifactPath();

        String path = registry.getString( prefix + "path", value.getPath() );
        value.setPath( path );
        String artifact = registry.getString( prefix + "artifact", value.getArtifact() );
        value.setArtifact( artifact );

        return value;
    }
View Full Code Here

                int count = 0;
                for ( Iterator iter = value.getLegacyArtifactPaths().iterator(); iter.hasNext(); count++ )
                {
                    String name = "legacyArtifactPaths.legacyArtifactPath(" + count + ")";
                    LegacyArtifactPath o = ( LegacyArtifactPath ) iter.next();
                    writeLegacyArtifactPath( prefix + name + ".", o, registry );
                }
            }
            if ( value.getRepositoryScanning() != null
)
View Full Code Here

        value.setNetworkProxies( networkProxies );
        java.util.List legacyArtifactPaths = new java.util.ArrayList/*<LegacyArtifactPath>*/();
        List legacyArtifactPathsSubsets = registry.getSubsetList( prefix + "legacyArtifactPaths.legacyArtifactPath" );
        for ( Iterator i = legacyArtifactPathsSubsets.iterator(); i.hasNext(); )
        {
            LegacyArtifactPath v = readLegacyArtifactPath( "", (Registry) i.next() );
            legacyArtifactPaths.add( v );
        }
        value.setLegacyArtifactPaths( legacyArtifactPaths );
        RepositoryScanningConfiguration repositoryScanning = readRepositoryScanningConfiguration( prefix + "repositoryScanning.", registry );
        value.setRepositoryScanning( repositoryScanning );
View Full Code Here

        return value;
    }
   
    private LegacyArtifactPath readLegacyArtifactPath( String prefix, Registry registry )
    {
        LegacyArtifactPath value = new LegacyArtifactPath();

    //String path = registry.getString( prefix + "path", value.getPath() );

    List<String> pathList = registry.getList( prefix + "path" );
    String path = value.getPath();
    if (pathList != null && !pathList.isEmpty() )
    {
        StringBuilder sb = new StringBuilder(  );
        for (int i = 0,size = pathList.size();i<size;i++)
        {
            sb.append( pathList.get( i ) );
            if (i<size - 1)
            {
                sb.append( ',' );
            }
        }
        path = sb.toString();
    }

        value.setPath( path );
    //String artifact = registry.getString( prefix + "artifact", value.getArtifact() );

    List<String> artifactList = registry.getList( prefix + "artifact" );
    String artifact = value.getArtifact();
    if (artifactList != null && !artifactList.isEmpty() )
    {
        StringBuilder sb = new StringBuilder(  );
        for (int i = 0,size = artifactList.size();i<size;i++)
        {
            sb.append( artifactList.get( i ) );
            if (i<size - 1)
            {
                sb.append( ',' );
            }
        }
        artifact = sb.toString();
    }

        value.setArtifact( artifact );

        return value;
    }
View Full Code Here

                int count = 0;
                for ( Iterator iter = value.getLegacyArtifactPaths().iterator(); iter.hasNext(); count++ )
                {
                    String name = "legacyArtifactPaths.legacyArtifactPath(" + count + ")";
                    LegacyArtifactPath o = ( LegacyArtifactPath ) iter.next();
                    writeLegacyArtifactPath( prefix + name + ".", o, registry );
                }
            }
            if ( value.getRepositoryScanning() != null
)
View Full Code Here

    @Before
    public void setUp()
        throws Exception
    {
        parser = new LegacyPathParser( config );
        LegacyArtifactPath jaxen = new LegacyArtifactPath();
        jaxen.setPath( "jaxen/jars/jaxen-1.0-FCS-full.jar" );
        jaxen.setArtifact( "jaxen:jaxen:1.0-FCS:full:jar" );
        config.getConfiguration().addLegacyArtifactPath( jaxen );
        parser.configuration = config;
    }
View Full Code Here

    @Before
    public void setUp()
        throws Exception
    {
        parser = new LegacyPathParser( config );
        LegacyArtifactPath jaxen = new LegacyArtifactPath();
        jaxen.setPath( "jaxen/jars/jaxen-1.0-FCS-full.jar" );
        jaxen.setArtifact( "jaxen:jaxen:1.0-FCS:full:jar" );
        config.getConfiguration().addLegacyArtifactPath( jaxen );
        parser.configuration = config;
    }
View Full Code Here

                int count = 0;
                for ( Iterator iter = value.getLegacyArtifactPaths().iterator(); iter.hasNext(); count++ )
                {
                    String name = "legacyArtifactPaths.legacyArtifactPath(" + count + ")";
                    LegacyArtifactPath o = ( LegacyArtifactPath ) iter.next();
                    writeLegacyArtifactPath( prefix + name + ".", o, registry );
                }
            }
            if ( value.getRepositoryScanning() != null
)
View Full Code Here

        value.setNetworkProxies( networkProxies );
        java.util.List legacyArtifactPaths = new java.util.ArrayList/*<LegacyArtifactPath>*/();
        List legacyArtifactPathsSubsets = registry.getSubsetList( prefix + "legacyArtifactPaths.legacyArtifactPath" );
        for ( Iterator i = legacyArtifactPathsSubsets.iterator(); i.hasNext(); )
        {
            LegacyArtifactPath v = readLegacyArtifactPath( "", (Registry) i.next() );
            legacyArtifactPaths.add( v );
        }
        value.setLegacyArtifactPaths( legacyArtifactPaths );
        RepositoryScanningConfiguration repositoryScanning = readRepositoryScanningConfiguration( prefix + "repositoryScanning.", registry );
        value.setRepositoryScanning( repositoryScanning );
View Full Code Here

TOP

Related Classes of org.apache.archiva.configuration.LegacyArtifactPath

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.