eclipse plugin: Skip the core library creation...
...if the old and new targets point to the same location
This commit is contained in:
parent
2ab9ae8aea
commit
3c9a98244d
1 changed files with 8 additions and 0 deletions
|
@ -101,6 +101,13 @@ public class ProjectUtils
|
|||
paths.getCoreDirPath( ) ).getCode( ) != IStatus.ERROR ) {
|
||||
try {
|
||||
if( coreLibrary.exists( ) ) {
|
||||
// the new Core Library will point to the same location.
|
||||
// Skip it then.
|
||||
if( coreLibrary.getLocation( ).equals(
|
||||
paths.getCoreDirPath( ) ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
coreLibrary.delete( true, new NullProgressMonitor( ) );
|
||||
}
|
||||
|
||||
|
@ -118,6 +125,7 @@ public class ProjectUtils
|
|||
+ "; project: " + project.getName( ),
|
||||
"Cannot create the Wesnoth Core Library folder for project "
|
||||
+ project.getName( ) + "!" );
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue