Package org.codehaus.plexus.resource.loader

Examples of org.codehaus.plexus.resource.loader.ResourceNotFoundException


                getLogger().debug( "The resource " + "'" + name + "'" + " was not found with resourceLoader "
                                       + resourceLoader.getClass().getName() + "." );
            }
        }

        throw new ResourceNotFoundException( name );
    }
View Full Code Here


                                   "The resource " + "'" + name + "'" + " was not found with resourceLoader "
                                       + resourceLoader.getClass().getName() + "." );
            }
        }

        throw new ResourceNotFoundException( name );
    }
View Full Code Here

    {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

        if ( classLoader == null )
        {
            throw new ResourceNotFoundException( name );
        }

        if ( name != null && name.startsWith( "/" ) )
        {
            name = name.substring( 1 );
        }

        final URL url = classLoader.getResource( name );
        if ( url == null )
        {
            throw new ResourceNotFoundException( name );
        }

        return new URLPlexusResource( url );
    }
View Full Code Here

        File file = new File( name );
        if ( file.isAbsolute() && file.canRead() )
        {
            return new FilePlexusResource( file );
        }
        throw new ResourceNotFoundException( name );
    }
View Full Code Here

            }
        }

        if ( is == null )
        {
            throw new ResourceNotFoundException( name );
        }

        return is;
    }
View Full Code Here

    {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

        if ( classLoader == null )
        {
            throw new ResourceNotFoundException( name );
        }

        InputStream is = classLoader.getResourceAsStream( name );

        if ( is == null )
        {
            throw new ResourceNotFoundException( name );
        }

        return is;
    }
View Full Code Here

                catch ( FileNotFoundException e )
                {
                    // this really shouldn't happen as the file already is
                    // verified as readable

                    throw new ResourceNotFoundException( name );
                }
            }
        }

        throw new ResourceNotFoundException( name );
    }
View Full Code Here

                getLogger().debug( "The resource '" + name + "' was not found with resourceLoader "
                                       + resourceLoader.getClass().getName() + "." );
            }
        }

        throw new ResourceNotFoundException( name );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.resource.loader.ResourceNotFoundException

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.