Package org.codehaus.loom.classman.metadata

Examples of org.codehaus.loom.classman.metadata.FileSetMetaData


     */
    private ClassLoaderSetMetaData createDefaultLoaderMetaData()
    {
        final String[] includes = new String[]{"SAR-INF/lib/*.jar"};
        final String[] excludes = new String[ 0 ];
        final FileSetMetaData fileSet = new FileSetMetaData( ".",
                                                             includes,
                                                             excludes );
        final String name = "default";
        final String parent = "*system*";
        final String[] entrys = new String[]{"SAR-INF/classes/"};
View Full Code Here


        //Add all filesets defined for classloader
        final FileSetMetaData[] filesets = metaData.getFilesets();
        for( int i = 0; i < filesets.length; i++ )
        {
            final FileSetMetaData fileset = filesets[ i ];
            final String baseDirectory = fileset.getBaseDirectory();
            final String[] includes = fileset.getIncludes();
            final String[] excludes = fileset.getExcludes();
            final URL[] urls =
                resolver.resolveFileSet( baseDirectory,
                                         includes,
                                         excludes );
            for( int j = 0; j < urls.length; j++ )
View Full Code Here

        final ArrayList fileSets = new ArrayList();

        final int length = configs.getLength();
        for( int i = 0; i < length; i++ )
        {
            final FileSetMetaData fileSet =
                buildFileSet( (Element)configs.item( i ) );
            fileSets.add( fileSet );
        }

        return (FileSetMetaData[])fileSets.toArray(
View Full Code Here

        final String dir = config.getAttribute( "dir" );
        final String[] includes =
            buildSelectors( config.getElementsByTagName( "include" ) );
        final String[] excludes =
            buildSelectors( config.getElementsByTagName( "exclude" ) );
        return new FileSetMetaData( dir, includes, excludes );
    }
View Full Code Here

    public void testCtorNullsInFileSet()
        throws Exception
    {
        try
        {
            new FileSetMetaData( null,
                                 new String[ 0 ],
                                 new String[ 0 ] );
            fail( "Expected a NPE" );
        }
        catch( NullPointerException e )
        {
            assertEquals( "NPE type", "baseDirectory", e.getMessage() );
        }

        try
        {
            new FileSetMetaData( ".",
                                 null,
                                 new String[ 0 ] );
            fail( "Expected a NPE" );
        }
        catch( NullPointerException e )
        {
            assertEquals( "NPE type", "includes", e.getMessage() );
        }

        try
        {
            new FileSetMetaData( ".",
                                 new String[ 0 ],
                                 null );
            fail( "Expected a NPE" );
        }
        catch( NullPointerException e )
View Full Code Here

TOP

Related Classes of org.codehaus.loom.classman.metadata.FileSetMetaData

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.