summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-07-30 16:57:16 (EDT)
committer Mike Rennie2013-07-30 16:57:16 (EDT)
commit6e51f1ff97e3aed10fb5b3759c3c136b397a0ad8 (patch)
tree1f7524edf261a0298606d2c27fa37b40b12cd98e
parenteee5b0375aa2502a6b49c0df476609c08e2d79b3 (diff)
downloadeclipse.pde.ui-6e51f1ff97e3aed10fb5b3759c3c136b397a0ad8.zip
eclipse.pde.ui-6e51f1ff97e3aed10fb5b3759c3c136b397a0ad8.tar.gz
eclipse.pde.ui-6e51f1ff97e3aed10fb5b3759c3c136b397a0ad8.tar.bz2
Bug 414053 - The API generation task should always overwrite
-rw-r--r--apitools/org.eclipse.pde.api.tools/src_ant/org/eclipse/pde/api/tools/internal/tasks/ApiFileGenerationTask.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/apitools/org.eclipse.pde.api.tools/src_ant/org/eclipse/pde/api/tools/internal/tasks/ApiFileGenerationTask.java b/apitools/org.eclipse.pde.api.tools/src_ant/org/eclipse/pde/api/tools/internal/tasks/ApiFileGenerationTask.java
index 0f6a968..6763cb4 100644
--- a/apitools/org.eclipse.pde.api.tools/src_ant/org/eclipse/pde/api/tools/internal/tasks/ApiFileGenerationTask.java
+++ b/apitools/org.eclipse.pde.api.tools/src_ant/org/eclipse/pde/api/tools/internal/tasks/ApiFileGenerationTask.java
@@ -281,8 +281,9 @@ public class ApiFileGenerationTask extends Task {
}
File apiDescriptionFile = new File(targetProjectFolder, IApiCoreConstants.API_DESCRIPTION_XML_NAME);
if (apiDescriptionFile.exists()) {
- System.out.println("API description file already exists: " + apiDescriptionFile.toString()); //$NON-NLS-1$
- return;
+ //get rid of the existing one
+ //see https://bugs.eclipse.org/bugs/show_bug.cgi?id=414053
+ apiDescriptionFile.delete();
}
File[] allFiles = null;
Map manifestMap = null;