Bug 155748 org.eclipse.birt.report.designer.ui compiles error in daily build 20060831
org.eclipse.birt.report.designer.ui compiles error in daily build 20060831. The error msg is below: ui.jar: [delete] Deleting directory E:\5\plugins\org.eclipse.birt.report.designer.ui\temp.folder\ui.jar.bin [mkdir] Created dir: E:\5\plugins\org.eclipse.birt.report.designer.ui\temp.folder\ui.jar.bin [javac] Compiling 727 source files to E:\5\plugins\org.eclipse.birt.report.designer.ui\temp.folder\ui.jar.bin [javac] E:\5\plugins\org.eclipse.birt.report.designer.ui\src\org\eclipse\birt\report\designer\internal\ui\resourcelocator\ResourceLocator.java:56: cannot resolve symbol [javac] symbol : method toURI () [javac] location: class java.net.URL [javac] .relativize( url.toURI( ) ) [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error [forEach] Execution error on task: [ant] message: E:\DailyBuild\prepare\DailyBuild\dailybuild\script\DailyBuild.xml:1264: The following error occurred while executing this line: [forEach] E:\5\plugins\org.eclipse.birt.report.designer.ui\BuildDesignerUI.xml:151: The following error occurred while executing this line: [forEach] E:\5\plugins\org.eclipse.birt.report.designer.ui\BuildDesignerUI.xml:155: The following error occurred while executing this line: [forEach] E:\5\plugins\org.eclipse.birt.report.designer.ui\build.xml:208: The following error occurred while executing this line: [forEach] E:\5\plugins\org.eclipse.birt.report.designer.ui\build.xml:183: Compile failed; see the compiler error output for details. [forEach] Project failed on itself: [forEach] Continue execution.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/resourcelocator/ResourceLocator.java
{
		return new ResourceEntry[]{
				new FragmentResourceEntry( fileNamePattern ),
				new PathResourceEntry( fileNamePattern )
		};
	}
	public static ResourceEntry[] getResourceFolder( String[] fileNamePattern )
	{
		return new ResourceEntry[]{
			new PathResourceEntry( fileNamePattern )
		};
	}
	public static String relativize( URL url )
	{
		if ( url.getProtocol( ).equals( "file" ) ) 
		{
			try
			{
				return new File( ReportPlugin.getDefault( ).getResourceFolder( ) ).toURI( )
						.relativize( url.toURI( ) )
						.getPath( );
			}
			catch ( URISyntaxException e )
			{
			}
		}
		return url.getPath( );
	}
}