eclipse plugin: Fix the path computing logic and remove a debug statement

This commit is contained in:
Timotei Dolean 2011-07-30 08:01:24 +00:00
parent 2c073a6df0
commit b6d460e8dd

View file

@ -118,7 +118,7 @@ public class ProjectUtils
String projectPath = null;
if (handle.getLocation() == null && description != null)
projectPath = description.getLocationURI().toString( ).substring( 1 );
projectPath = description.getLocationURI().getPath( ).toString( ).substring( 1 );
else if ( handle.getLocation( ) != null )
projectPath = handle.getLocation().toOSString();
else // project is in workspace
@ -126,8 +126,6 @@ public class ProjectUtils
ResourcesPlugin.getWorkspace( ).getRoot( ).getLocation( ).toOSString( )
+ "/" + handle.getProject( ).getName( );
System.out.println( projectPath );
monitor.subTask(Messages.ProjectUtils_0);
// cleanup existing files