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/DefaultResourceLocator.java
/**
	 * Gets message file URL.
	 * 
	 * @param moduleHandle
	 *            module handle
	 * @param fileName
	 *            file name
	 * @return message file URL.
	 */
	private URL getMessageFile( ModuleHandle moduleHandle, String fileName )
	{
		if ( moduleHandle == null )
			return null;
		ULocale locale = moduleHandle.getModule( ).getSession( ).getLocale( );
		List possibleFiles = BundleHelper.getHelper( moduleHandle.getModule( ),
				fileName ).getMessageFilenames( locale );
		for ( int i = 0; i < possibleFiles.size( ); i++ )
		{
			String filename = (String) possibleFiles.get( i );
			URL url = getResource( moduleHandle, filename );
			if ( url != null )
				return url;
		}
		return null;
	}
	/**
	 * Gets resource url. Now support <code>IMAGE</code>,<code>LIBRARY</code> ,
	 * <code>CASCADING_STYLE_SHEET</code>
	 * 
	 * @param moduleHandle