From 2e0a5f4c1368993c8cf71b9f4b59273a323b9aff Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 28 Jul 2011 11:07:25 +0000 Subject: Recreate 2.0-Beta3 branch from current trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1151792 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/distribution/bin-distro-unzip/build.xml | 27 ++++ .../itest/distribution/bin-distro-unzip/pom.xml | 128 ++++++++++++++++ .../build.xml | 40 +++++ .../pom.xml | 87 +++++++++++ .../contribution-binding-rmi-calculator/build.xml | 39 +++++ .../contribution-binding-rmi-calculator/pom.xml | 68 +++++++++ .../contribution-binding-sca-calculator/build.xml | 40 +++++ .../contribution-binding-sca-calculator/pom.xml | 87 +++++++++++ .../contribution-binding-ws-calculator/build.xml | 40 +++++ .../contribution-binding-ws-calculator/pom.xml | 69 +++++++++ .../build.xml | 40 +++++ .../pom.xml | 87 +++++++++++ .../distribution/launcher-embedded-jse/build.xml | 57 ++++++++ .../distribution/launcher-embedded-jse/pom.xml | 69 +++++++++ .../distribution/launcher-embedded-osgi/build.xml | 45 ++++++ .../distribution/launcher-embedded-osgi/pom.xml | 69 +++++++++ .../itest/distribution/legal-checks/pom.xml | 74 ++++++++++ .../src/test/java/itest/JarsInLICENSETestCase.java | 162 +++++++++++++++++++++ .../2.0-Beta3/testing/itest/distribution/pom.xml | 100 +++++++++++++ .../itest/distribution/src-distro-rat/pom.xml | 93 ++++++++++++ .../itest/distribution/src-distro-unzip/build.xml | 27 ++++ .../itest/distribution/src-distro-unzip/pom.xml | 128 ++++++++++++++++ 22 files changed, 1576 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-rat/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/pom.xml (limited to 'sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution') diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/build.xml new file mode 100644 index 0000000000..6e6a1ea9ef --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/build.xml @@ -0,0 +1,27 @@ + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/pom.xml new file mode 100644 index 0000000000..b1352afaec --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/bin-distro-unzip/pom.xml @@ -0,0 +1,128 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-bin-distro-unzip + Apache Tuscany SCA iTest Distribution Bin Distro Unzip + + + + org.apache.tuscany.sca + tuscany-distribution-all + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + not-sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + + + + + sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/build.xml new file mode 100644 index 0000000000..3822085094 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${java.home} + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/pom.xml new file mode 100644 index 0000000000..1aa94b792f --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-jsonrpc-calculator/pom.xml @@ -0,0 +1,87 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-contribution-binding-jsonrpc-calculator + Apache Tuscany SCA iTest Distribution Contribution binding-jsonrpc Calculator + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/build.xml new file mode 100644 index 0000000000..7550f70fb5 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/build.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/pom.xml new file mode 100644 index 0000000000..8d7ad37d22 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-rmi-calculator/pom.xml @@ -0,0 +1,68 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-contribution-binding-rmi-calculator + Apache Tuscany SCA iTest Distribution Contribution binding-rmi Calculator + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/build.xml new file mode 100644 index 0000000000..aa13cba49b --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${java.home} + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/pom.xml new file mode 100644 index 0000000000..941982e126 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-sca-calculator/pom.xml @@ -0,0 +1,87 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-contribution-binding-sca-calculator + Apache Tuscany SCA iTest Distribution Contribution binding-sca Calculator + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/build.xml new file mode 100644 index 0000000000..7b95bedf6c --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${java.home} + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/pom.xml new file mode 100644 index 0000000000..391f9a77a9 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-binding-ws-calculator/pom.xml @@ -0,0 +1,69 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-contribution-binding-ws-calculator + Apache Tuscany SCA iTest Distribution Contribution binding-ws Calculator + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/build.xml new file mode 100644 index 0000000000..e70619ab51 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${java.home} + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/pom.xml new file mode 100644 index 0000000000..22550bcac0 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/contribution-implementation-java-calculator/pom.xml @@ -0,0 +1,87 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-contribution-implementation-java-calculator + Apache Tuscany SCA iTest Distribution contribution implementation-java Calculator + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/build.xml new file mode 100644 index 0000000000..02c353e083 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/build.xml @@ -0,0 +1,57 @@ + + + + ${java.home} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/pom.xml new file mode 100644 index 0000000000..7d035c2ebf --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-jse/pom.xml @@ -0,0 +1,69 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-launcher-embedded-jse + Apache Tuscany SCA iTest Distribution Launcher Embedded JSE + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/build.xml new file mode 100644 index 0000000000..0015b13f49 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/build.xml @@ -0,0 +1,45 @@ + + + + ${java.home} + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/pom.xml new file mode 100644 index 0000000000..5136b49bd2 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/launcher-embedded-osgi/pom.xml @@ -0,0 +1,69 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-launcher-embedded-osgi + Apache Tuscany SCA iTest Distribution Launcher Embedded OSGi + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/pom.xml new file mode 100644 index 0000000000..a9caa9984c --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/pom.xml @@ -0,0 +1,74 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-legal-checks + Apache Tuscany SCA iTest Distribution Legal Checks + + + + distribution + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.rat + apache-rat-plugin + 0.6 + + + + check + + + + + ../../../../distribution/all/target/apache-tuscany-sca-all-2.0-Beta3-SNAPSHOT.dir + false + + tuscany-sca-2.0-Beta3-SNAPSHOT/CHANGES + **/MANIFEST.MF + **/DEPENDENCIES + **/target/**/*.log + **/config.ini + **/*.odg + tuscany-sca-2.0-Beta3-SNAPSHOT/features/configuration/config.ini + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java new file mode 100644 index 0000000000..865eec3636 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java @@ -0,0 +1,162 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package itest; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.StringTokenizer; + +import org.junit.Test; + +/** + * Checks that all jar files included in the distribution are mentioned in the LICENSE file + * and that all jars mentioned in the LICENSE are in the distribution. + */ +public class JarsInLICENSETestCase { + + @Test + public void testJars() throws Exception { + File distroRoot = getUnzipedDistroRoot(); + + File licenseFile = new File(distroRoot, "LICENSE"); + if (!licenseFile.exists()) { + throw new IllegalStateException("can't find LICENSE file at: " + licenseFile.getAbsoluteFile().toString()); + } + + File libDirectory = new File(distroRoot, "modules"); + if (!libDirectory.exists()) { + throw new IllegalStateException("can't find modules folder at: " + libDirectory.getAbsoluteFile().toString()); + } + + List jars = getJarsInDistro(libDirectory); + + List bad2 = getLICENSEJarsNotInDistro(licenseFile, jars); + if (bad2.size() > 0) { + System.err.println("Jars in LICENSE but not in Distribution: " + bad2); + } + + List bad1 = getJarsNotInLICENSE(jars, licenseFile); + if (bad1.size() > 0) { + System.err.println("Jars in distribution but not in LICENSE: " + bad1); + } + + if (bad1.size() > 0 || bad2.size() > 0) { + throw new IllegalStateException("LICENSE problems, check log"); + } + } + + private List getLICENSEJarsNotInDistro(File licenseFile, List jars) throws IOException { + List badJars = new ArrayList(); + BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); + String line = null; + while ((line = reader.readLine()) != null) { + line = line.trim(); + if (line.contains(".jar")) { + StringTokenizer st = new StringTokenizer(line); + while (st.hasMoreTokens()) { + String s = st.nextToken(); + if (s.contains(".jar")) { + if (s.startsWith("(")) { + s = s.substring(1); + } + if (s.endsWith(",") || s.endsWith(":")) { + s = s.substring(0, s.length()-1); + } + if (s.endsWith(")")) { + s = s.substring(0, s.length()-1); + } + if (!jars.contains(s) && !s.startsWith("tuscany-")) { + badJars.add(s); + } + } + } + } + } + return badJars; + } + + private List getJarsNotInLICENSE(List jars, File licenseFile) throws IOException { + List badJars = new ArrayList(); + String licenseText = readLICENSE(licenseFile); + for (String jar : jars) { + if (!licenseText.contains(jar)) { + if (jar.startsWith("tuscany-") || jar.startsWith("sample-") || jar.startsWith("test-") || jar.startsWith("itest-")) { + // ignore tuscany jars as they're not mentioned in the LICENSE file + } else { + badJars.add(jar); + } + } + } + return badJars; + } + + private List getJarsInDistro(File directory) { + List jars = new ArrayList(); + for (String fn : directory.list()){ + if (fn.endsWith(".jar")) { + jars.add(fn); + } else { + File f = new File(directory, fn); + if (f.isDirectory()) { + jars.addAll(getJarsInDistro(f)); + } + } + } + return jars; + } + + private File getUnzipedDistroRoot() { + File distroTarget = new File("../../../../distribution/all/target"); + File root = null; + for (String f : distroTarget.list()) { + if (f.endsWith(".dir") && !f.endsWith("src.dir")) { + root = new File(distroTarget, f); + break; + } + } + if (root == null) { + throw new IllegalStateException("can't find distro root"); + } + if (root.list().length != 1) { + throw new IllegalStateException("expecting one directory in distro root"); + } + root = new File(root, root.list()[0]); + return root; + } + + private static String readLICENSE(File licenseFile) throws java.io.IOException { + StringBuffer fileData = new StringBuffer(); + BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); + char[] buf = new char[1024]; + int numRead = 0; + while ((numRead = reader.read(buf)) != -1) { + String readData = String.valueOf(buf, 0, numRead); + fileData.append(readData); + buf = new char[1024]; + } + reader.close(); + return fileData.toString(); + } + +} diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/pom.xml new file mode 100644 index 0000000000..4c987fad73 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/pom.xml @@ -0,0 +1,100 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0-Beta3-SNAPSHOT + ../pom.xml + + pom + itest-distribution + Apache Tuscany SCA iTest Distribution + + + + org.apache.tuscany.sca + tuscany-distribution-all + pom + 2.0-Beta3-SNAPSHOT + + + + + + default + + true + + + legal-checks + + + + + + + distribution + + + buildZips + true + + + + src-distro-unzip + src-distro-rat + bin-distro-unzip + legal-checks + + + + + + + install + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-rat/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-rat/pom.xml new file mode 100644 index 0000000000..b8a70112e8 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-rat/pom.xml @@ -0,0 +1,93 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-distribution-src-dsitro-rat + Apache Tuscany SCA iTest Distribution Src Distro RAT + + + + distribution + + + org.apache.tuscany.sca + itest-src-distro-unzip + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + + org.apache.rat + apache-rat-plugin + 0.6 + + + + check + + + + + ../../../../distribution/all/target/apache-tuscany-sca-all-2.0-Beta3-SNAPSHOT-src.dir + false + + tuscany-sca-2.0-Beta3-SNAPSHOT-src/CHANGES + **/*.MF + tuscany-sca-2.0-Beta3-SNAPSHOT-src/testing/itest/spi/spi-safe.txt + tuscany-sca-2.0-Beta3-SNAPSHOT-src/testing/compliance-tests/binding-ws/sca_variables.dtd + tuscany-sca-2.0-Beta3-SNAPSHOT-src/testing/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorJass.config + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/modules/modules.list + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/services/services.list + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-spring-tie/src/main/resources/META-INF/spring.handlers + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-spring-tie/src/main/resources/META-INF/spring.schemas + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-spring-runtime/src/main/resources/META-INF/spring.handlers + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-spring-runtime/src/main/resources/META-INF/spring.schemas + tuscany-sca-2.0-Beta3-SNAPSHOT-src/maven/archetypes/binding/src/test/resources/projects/basic/goal.txt + tuscany-sca-2.0-Beta3-SNAPSHOT-src/maven/archetypes/implementation/src/test/resources/projects/basic/goal.txt + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-python-runtime/src/main/resources/django/__init__.py + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-python-runtime/src/main/resources/django/utils/__init__.py + + + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/assembly-xsd/**/*.* + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/sca-api/**/*.* + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-web-runtime/src/main/resources/META-INF/sca.tld + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/assembly-xml/src/main/resources/META-INF/sca-policy-1.1-intents-definitions-cd04.xml + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryFinderImpl.java + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/binding-comet-runtime/src/main/resources/jquery.guid.js + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/binding-comet-runtime/src/main/resources/jquery.json-2.2.min.js + tuscany-sca-2.0-Beta3-SNAPSHOT-src/modules/implementation-python-runtime/src/main/resources/django/utils/simplejson/* + tuscany-sca-2.0-Beta3-SNAPSHOT-src/testing/compliance-tests/binding-jms/src/test/resources/tuscany-oasis-sca-tests-errors.properties + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/build.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/build.xml new file mode 100644 index 0000000000..db9fe4a969 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/build.xml @@ -0,0 +1,27 @@ + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/pom.xml new file mode 100644 index 0000000000..6268a5223d --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/distribution/src-distro-unzip/pom.xml @@ -0,0 +1,128 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-Beta3-SNAPSHOT + ../pom.xml + + itest-src-distro-unzip + Apache Tuscany SCA iTest Distribution Src Distro Unzip + + + + org.apache.tuscany.sca + tuscany-distribution-all + pom + 2.0-Beta3-SNAPSHOT + + + + + + + + not-sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + verify + + run + + + + + + + + + + + + + + + + + sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + + + + -- cgit v1.2.3