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
*******************************************************************************/
package org.eclipse.birt.report.model.api;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import org.eclipse.birt.report.model.api.util.StringUtil;
import org.eclipse.birt.report.model.api.util.URIUtil;
import org.eclipse.birt.report.model.core.BundleHelper;
import com.ibm.icu.util.ULocale;
/**
 * The default file search algorithm. It searches for a given file in the 'base'
 * folder of a design. If the 'base' property of the design was not set, then
 * this class looks in folder where the design file is located.
 * <p>
 * The detail search mechanism is:
 * <ul>
 * <li>If the the file to be found is given by an absolute path, returns that
 * path.
 * <li>If it is a relative file path, search the 'base' folder of the design.
 * <li>If the 'base' property of the design is not set, then search the file in
 * the folder where the design file locates.
 * </ul>
 * 
 * @see IResourceLocator
 * @see SessionHandle
 */
public class DefaultResourceLocator implements IResourceLocator