diff options
author | Krzysztof Daniel | 2013-02-15 15:57:24 +0000 |
---|---|---|
committer | Paul Webster | 2013-02-15 21:26:23 +0000 |
commit | 18467502f7c7b200ee11b5eff7ad1c014061507c (patch) | |
tree | 69d9f7a44f14dd617934cb1009c420d420bdc1a2 | |
parent | b292ad863abaeeea6c2aff6a8a9ed2bd8d813948 (diff) | |
download | eclipse.platform.releng.aggregator-18467502f7c7b200ee11b5eff7ad1c014061507c.tar.gz eclipse.platform.releng.aggregator-18467502f7c7b200ee11b5eff7ad1c014061507c.tar.xz eclipse.platform.releng.aggregator-18467502f7c7b200ee11b5eff7ad1c014061507c.zip |
Bug 381057 - CBI should be able to generate the API tools description
Always activate the eclipse-run profile, but skip it on projects
with no API nature.
-rw-r--r-- | eclipse-parent/pom.xml | 6 | ||||
-rw-r--r-- | maven-cbi-plugin/src/main/java/org/eclipse/cbi/mojo/GenerateAPIBuildXMLMojo.java | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/eclipse-parent/pom.xml b/eclipse-parent/pom.xml index 2529e5b77..948090e5d 100644 --- a/eclipse-parent/pom.xml +++ b/eclipse-parent/pom.xml @@ -510,9 +510,9 @@ <profile> <id>api-generation</id> <activation> - <file> - <exists>.apibuild.xml</exists> - </file> + <property> + <name>!longnotexistingproperty</name> + </property> </activation> <build> <plugins> diff --git a/maven-cbi-plugin/src/main/java/org/eclipse/cbi/mojo/GenerateAPIBuildXMLMojo.java b/maven-cbi-plugin/src/main/java/org/eclipse/cbi/mojo/GenerateAPIBuildXMLMojo.java index 1ea1913a6..9cce2c3f6 100644 --- a/maven-cbi-plugin/src/main/java/org/eclipse/cbi/mojo/GenerateAPIBuildXMLMojo.java +++ b/maven-cbi-plugin/src/main/java/org/eclipse/cbi/mojo/GenerateAPIBuildXMLMojo.java @@ -89,10 +89,13 @@ public class GenerateAPIBuildXMLMojo extends AbstractMojo { File dotProject = new File(project.getBasedir(), ".project"); if (!dotProject.exists()) { // no .project + project.getProperties().setProperty("eclipserun.skip", "true"); return; } if (dotProjectContainsApiNature(dotProject)) { generateBuildXML(); + } else { + project.getProperties().setProperty("eclipserun.skip", "true"); } } |