Description
Curently if a file for deployment is included on the command line and the filename is incorrect, the error report throws a MalformedURLException when instead it should throw a FileNotFoundException.
The following replacement code for resolveURL in merlin/impl DefaultCriteria correct the problem.
private URL resolveURL( File base, String value )
{
if( value.startsWith( "block:" ) )
else if( value.startsWith( "artifact:" ) )
{ return artifactSpecToURL( value ); }try
{ return new URL( value ); } catch( Exception e )
{
File target = new File( value );
if( target.exists() )
else
{
target = new File( base, value );
if( target.exists() )
else
{
if( e instanceof MalformedURLException )
else
{ final String error = "Unable to resolve the block path [" + value + "]."; throw new KernelRuntimeException( error, e ); } }
}
}
}