Bug 166729 [Linux]setImageDirectory() method is no effect[0600]
Description: [Linux]setImageDirectory() method is no effect[0600] Step: 1.Run the test case by junit. You can find out the case on: /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/Regression_142894.java /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/input/regression_142894.rptdesign /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/input/pics/green.bmp 2.In render task, we set that "renderContext.setImageDirectory( "image" );" Actual result: The background image path is "pics/green.bmp" in html code. But the image is save at "image/green.bmp"
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
try
		{
			objURI = new URL( uri );
			if ( objURI.getProtocol( ).equalsIgnoreCase( FILE_SCHEMA ) )
			{
				return objURI.getAuthority( ) == null
						? objURI.getPath( )
						: objURI.getAuthority( ) + objURI.getPath( );
			}
			else if ( objURI.getProtocol( ).equalsIgnoreCase( JAR_SCHEMA ) )
				return uri;
			else
				return null;
		}
		catch ( MalformedURLException e )
		{
			File file = new File( uri );
			if ( uri.indexOf( JAR_EXTENTION ) > -1 )
				return JAR_SCHEMA
						+ ":" + FILE_SCHEMA + ":" + file.getAbsolutePath( ); 
			if ( uri.startsWith( FILE_SCHEMA ) )
				return file.toURI( ).getSchemeSpecificPart( );
			return uri;
		}
	}
	/**
	 * Converts a filename to a valid URL string. The filename can include
	 * directory information, either relative or absolute directory.
	 * 
	 * @param filePath