Skip to content

Commit

Permalink
[562834] Exclude source plugins as they are generated
Browse files Browse the repository at this point in the history
Bug: 562834
Change-Id: Ie7097841a59c8f07871db157a3af39e9e4067855
Signed-off-by: Philippe DUL <[email protected]>
  • Loading branch information
pdulth authored and minhtutonthat committed May 28, 2020
1 parent 9022d38 commit 6ef8e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void test() throws Exception {
for (IPluginModelBase base : PDECore.getDefault().getModelManager().getActiveModels()) {
MultiStatus status = statuses.computeIfAbsent(base, x -> new MultiStatus(id, Status.OK, "ok", null));

if (base.getPluginBase().getId().contains("org.polarsys.capella")) {
if (base.getPluginBase().getId().contains("org.polarsys.capella") && !base.getPluginBase().getId().endsWith(".source")) {
if (!"%pluginName".equals(base.getPluginBase().getName())) {
status.add(new Status(Status.WARNING, id, "[MANIFEST.MF] name not %pluginName"));
}
Expand Down Expand Up @@ -88,7 +88,7 @@ public void test() throws Exception {
for (IFeatureModel feature : PDECore.getDefault().getFeatureModelManager().getModels()) {
MultiStatus status = statuses.computeIfAbsent(feature, x -> new MultiStatus(id, Status.OK, "ok", null));

if (feature.getFeature().getId().contains("org.polarsys.capella")) {
if (feature.getFeature().getId().contains("org.polarsys.capella") && !feature.getFeature().getId().endsWith(".source")) {
Properties featureProperties = getProperties(feature, "feature.properties");

// All feature.properties must contain a licenseURL towards the licence.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void test() throws Exception {
for (IPluginModelBase base : PDECore.getDefault().getModelManager().getActiveModels()) {
MultiStatus status = statuses.computeIfAbsent(base, x -> new MultiStatus(id, Status.OK, "ok", null));

if (base.getPluginBase().getId().contains("org.polarsys.capella")) {
if (base.getPluginBase().getId().contains("org.polarsys.capella") && !base.getPluginBase().getId().endsWith(".source")) {

// All plugins must contain an EPL-2.0 license.html
String content = getContent(base, "about.html");
Expand All @@ -72,7 +72,7 @@ public void test() throws Exception {
for (IFeatureModel feature : PDECore.getDefault().getFeatureModelManager().getModels()) {
MultiStatus status = statuses.computeIfAbsent(feature, x -> new MultiStatus(id, Status.OK, "ok", null));

if (feature.getFeature().getId().contains("org.polarsys.capella")) {
if (feature.getFeature().getId().contains("org.polarsys.capella") && !feature.getFeature().getId().endsWith(".source")) {

// All features must contains an EPL-2.0 license.html
String content = getContent(feature, "license.html");
Expand Down

0 comments on commit 6ef8e89

Please sign in to comment.