You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2009/08/09 11:59:11 UTC
svn commit: r802504 -
/tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
Author: antelder
Date: Sun Aug 9 09:59:11 2009
New Revision: 802504
URL: http://svn.apache.org/viewvc?rev=802504&view=rev
Log:
Add some more excluded jars and a couple of todo comments
Modified:
tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
Modified: tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java?rev=802504&r1=802503&r2=802504&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java (original)
+++ tuscany/branches/sca-java-1.x/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java Sun Aug 9 09:59:11 2009
@@ -36,6 +36,8 @@
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 @@
}
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;
}