summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-09 09:59:11 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-09 09:59:11 +0000
commit7cc94309410d6d4bf496d2bc8b4fc5819f67aa64 (patch)
tree7dec13c662837e7b2a14118c9c205a3633f95c65
parentd00035085d6089d942ff3179556e8893e2790b23 (diff)
Add some more excluded jars and a couple of todo comments
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@802504 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java b/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
index e5dd3e91e0..5b74c5584e 100644
--- a/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
+++ b/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
@@ -36,6 +36,8 @@ import junit.framework.TestCase;
public class LicenseTestCase extends TestCase {
+ // TODO: turn this in to a maven plugin that can be run from the module that builds the archive
+
public void testCreateComponent() throws ZipException, IOException {
File archive = new File("..\\..\\distribution\\target\\apache-tuscany-sca-1.6-SNAPSHOT.zip");
@@ -103,10 +105,16 @@ public class LicenseTestCase extends TestCase {
}
private boolean licenseHasJar(String licenstText, String jarName) {
+ // TODO: be good to make these configurable, maybe system props that can
+ // be configured in the pom.xml?
if (jarName.startsWith("tuscany-")) {
return true;
} else if (jarName.startsWith("demo-bigbank")) {
return true;
+ } else if (jarName.startsWith("tutorial-")) {
+ return true;
+ } else if (jarName.startsWith("sample-")) {
+ return true;
} else {
return licenstText.indexOf(jarName) > -1;
}