From 7cc94309410d6d4bf496d2bc8b4fc5819f67aa64 Mon Sep 17 00:00:00 2001 From: antelder Date: Sun, 9 Aug 2009 09:59:11 +0000 Subject: 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 --- .../distro-license-check/src/test/java/itest/LicenseTestCase.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'branches/sca-java-1.x/itest/distro-license-check') 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; } -- cgit v1.2.3