From 99aafb57ef0a71d676b8e88428827689d7592570 Mon Sep 17 00:00:00 2001 From: david_williams <david_williams> Date: Sat, 8 Aug 2009 16:00:11 +0000 Subject: [PATCH] 283792 read properties for versioning tests --- .../org.eclipse.wtp.releng.tests/META-INF/MANIFEST.MF | 2 +- .../src/org/eclipse/wtp/releng/tests/BuildTests.java | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/org.eclipse.wtp.releng.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wtp.releng.tests/META-INF/MANIFEST.MF index d3ef0b1d5..2c730c9ae 100644 --- a/tests/org.eclipse.wtp.releng.tests/META-INF/MANIFEST.MF +++ b/tests/org.eclipse.wtp.releng.tests/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.eclipse.wtp.releng.tests -Bundle-Version: 1.0.0.qualifier +Bundle-Version: 1.0.1.qualifier Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Require-Bundle: org.eclipse.core.runtime, diff --git a/tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java b/tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java index 35d965f4c..fe294f6e5 100644 --- a/tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java +++ b/tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java @@ -519,6 +519,9 @@ public class BuildTests extends TestCase { if (validValue(testToReferenceArg)) { argsList.add(testToReferenceArg); } + else { + argsList.add(TEST_TO_REFERENCE); + } if (validValue(referenceIDArg)) { argsList.add(referenceIDArg); } @@ -528,15 +531,19 @@ public class BuildTests extends TestCase { if (validValue(listToReferenceFileArg)) { argsList.add(listToReferenceFileArg); } + else { + argsList.add(LIST_TO_REFERENCE_FILE); + } String[] args = (String[]) argsList.toArray(new String[]{}); return args; } private boolean validValue(String arg) { - if (arg != null) + if (arg != null && arg.length() > 0) return true; - return false; + else + return false; } -- GitLab