Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java')
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java b/plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java
index 8c1a3aa7e19..66772afd2c7 100644
--- a/plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java
+++ b/plugins/developer/org.eclipse.papyrus.dev.project.management/src/org/eclipse/papyrus/dev/project/management/handlers/SyncManifestAndPOMVersions.java
@@ -67,6 +67,8 @@ import org.w3c.dom.NodeList;
/**
* Ensures that <tt>pom.xml</tt> files have the same version number as their
* corresponding <tt>MANIFEST.MF</tt> or <tt>feature.xml</tt> file.
+ *
+ * @since 1.2
*/
public class SyncManifestAndPOMVersions extends AbstractHandler {
private static final Pattern BUNDLE_VERSION = Pattern.compile("^Bundle-Version:\\s*(\\S+)\\s*$", Pattern.MULTILINE); //$NON-NLS-1$
@@ -141,7 +143,7 @@ public class SyncManifestAndPOMVersions extends AbstractHandler {
.filter(this::hasPluginOrFeatureNature)
.forEach(project -> {
IFile pom = project.getFile("pom.xml"); //$NON-NLS-1$
- if (pom != null) {
+ if ((pom != null) && pom.isAccessible()) {
IFile manifest = project.getFile("feature.xml");
if (!manifest.isAccessible()) {
manifest = project.getFile("META-INF/MANIFEST.MF");

Back to the top