Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-10-12 10:28:17 -0400
committerGlyn Normington2011-10-12 10:28:17 -0400
commit6a939c6a2d403daebe9c25ab3f7e54e5203f9765 (patch)
tree48fbae0c015423e7217a0a8f55cd9e4a456f92ec /test-apps
parentf719700798e675ef81078fb4fffede2e8419d59c (diff)
downloadorg.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.tar.gz
org.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.tar.xz
org.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.zip
bug 360671: Test in which synthetic context class loader is not set as TCCL
Diffstat (limited to 'test-apps')
-rw-r--r--test-apps/synthetic-tccl/README.TXT13
-rw-r--r--test-apps/synthetic-tccl/build-par/build.xml13
-rw-r--r--test-apps/synthetic-tccl/build.properties5
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.classpath10
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.project17
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/build.xml9
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/ivy.xml25
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/synthetic/tccl/a/AClass.java16
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/resources/META-INF/MANIFEST.MF5
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/java/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/resources/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.classpath12
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.project17
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/build.xml9
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/ivy.xml27
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/java/synthetic/tccl/b/Invoker.java22
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/MANIFEST.MF6
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/spring/module.xml11
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/java/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/resources/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/.classpath10
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/.project17
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/build.xml9
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/ivy.xml25
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/synthetic/tccl/global/Library.java19
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/src/main/resources/META-INF/MANIFEST.MF4
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/src/test/java/.gitignore0
-rw-r--r--test-apps/synthetic-tccl/synthetic.tccl.global/src/test/resources/.gitignore0
30 files changed, 301 insertions, 0 deletions
diff --git a/test-apps/synthetic-tccl/README.TXT b/test-apps/synthetic-tccl/README.TXT
new file mode 100644
index 00000000..3753d408
--- /dev/null
+++ b/test-apps/synthetic-tccl/README.TXT
@@ -0,0 +1,13 @@
+How to build
+------------
+
+Perform the following steps in this order:
+1. Run ant clean clean-integration jar in synthetic.tccl.global
+2. Run ant clean jar in build-par
+
+Output
+------
+
+1. org.eclipse.virgo.kernel.deployer.test/src/test/resources/synthetic-tccl/synthetic.tccl.global.jar
+2. org.eclilpse.virgo.kernel.deployer.test/src/test/resources/synthetic-tccl/synthetic-tccl.par
+
diff --git a/test-apps/synthetic-tccl/build-par/build.xml b/test-apps/synthetic-tccl/build-par/build.xml
new file mode 100644
index 00000000..650dc8ba
--- /dev/null
+++ b/test-apps/synthetic-tccl/build-par/build.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="synthetic.tccl">
+
+ <path id="bundles">
+ <pathelement location="../synthetic.tccl.bundle.a"/>
+ <pathelement location="../synthetic.tccl.bundle.b"/>
+ </path>
+
+ <property file="${basedir}/../build.properties"/>
+ <property name="par.output.dir" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/synthetic-tccl"/>
+ <import file="${basedir}/../../../virgo-build/par/default.xml"/>
+
+</project>
diff --git a/test-apps/synthetic-tccl/build.properties b/test-apps/synthetic-tccl/build.properties
new file mode 100644
index 00000000..f1e7e81f
--- /dev/null
+++ b/test-apps/synthetic-tccl/build.properties
@@ -0,0 +1,5 @@
+version=1.0.0
+release.type=integration
+ivy.cache.dir=${basedir}/../../ivy-cache
+integration.repo.dir=${basedir}/../../integration-repo
+disable.bundlor=true
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.classpath b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.classpath
new file mode 100644
index 00000000..adebb12a
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.classpath
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-4.7.0.jar" sourcepath="/KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-sources-4.7.0.jar"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.project b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.project
new file mode 100644
index 00000000..0438f4da
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>synthetic.tccl.bundle.a</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/build.xml b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/build.xml
new file mode 100644
index 00000000..62e8672b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="synthetic.tccl.bundle.a">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/ivy.xml b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/ivy.xml
new file mode 100644
index 00000000..cf4424fb
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/ivy.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="org.eclipse.virgo.synthetic.tccl" module="${ant.project.name}">
+ <ivyauthor name="gnormington"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ <artifact name="${ant.project.name}"/>
+ <artifact name="${ant.project.name}-sources" type="src" ext="jar"/>
+ </publications>
+
+ <dependencies>
+ <dependency org="org.junit" name="com.springsource.org.junit" rev="${org.junit}" conf="test->runtime"/>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/synthetic/tccl/a/AClass.java b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/synthetic/tccl/a/AClass.java
new file mode 100644
index 00000000..c812e07a
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/java/synthetic/tccl/a/AClass.java
@@ -0,0 +1,16 @@
+/*******************************************************************************
+ * Copyright (c) 20011 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package synthetic.tccl.a;
+
+public class AClass {
+
+}
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/resources/META-INF/MANIFEST.MF b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..7381a5fd
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: synthetic.tccl.bundle.a
+Export-Package: synthetic.tccl.a
+
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/java/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/java/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/resources/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/resources/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.a/src/test/resources/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.classpath b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.classpath
new file mode 100644
index 00000000..2d75da69
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.classpath
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-4.7.0.jar" sourcepath="/KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-sources-4.7.0.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.osgi/org.eclipse.osgi/3.7.0.v20110613/org.eclipse.osgi-3.7.0.v20110613.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.osgi/org.eclipse.osgi/3.7.0.v20110613/org.eclipse.osgi-3.7.0.v20110613.jar"/>
+ <classpathentry kind="src" path="/synthetic.tccl.global"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.project b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.project
new file mode 100644
index 00000000..d36c8d25
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>synthetic.tccl.bundle.b</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/build.xml b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/build.xml
new file mode 100644
index 00000000..5e1533a4
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="synthetic.tccl.bundle.b">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/ivy.xml b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/ivy.xml
new file mode 100644
index 00000000..405236c6
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/ivy.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="org.eclipse.virgo.synthetic.tccl" module="${ant.project.name}">
+ <ivyauthor name="gnormington"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ <artifact name="${ant.project.name}"/>
+ <artifact name="${ant.project.name}-sources" type="src" ext="jar"/>
+ </publications>
+
+ <dependencies>
+ <dependency org="org.eclipse.virgo.synthetic.tccl" name="synthetic.tccl.global" rev="latest.integration" conf="provided->runtime" />
+ <dependency org="org.junit" name="com.springsource.org.junit" rev="${org.junit}" conf="test->runtime"/>
+ <dependency org="org.eclipse.osgi" name="org.eclipse.osgi" rev="${org.eclipse.osgi}" conf="provided->runtime"/>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/java/synthetic/tccl/b/Invoker.java b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/java/synthetic/tccl/b/Invoker.java
new file mode 100644
index 00000000..ca05a8ba
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/java/synthetic/tccl/b/Invoker.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 20011 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package synthetic.tccl.b;
+
+import synthetic.tccl.global.Library;
+
+public class Invoker {
+
+ public Invoker() throws ClassNotFoundException {
+ Library.run();
+ }
+
+}
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/MANIFEST.MF b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..79d2b963
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: synthetic.tccl.bundle.b
+Import-Package: synthetic.tccl.global
+
+
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/spring/module.xml b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/spring/module.xml
new file mode 100644
index 00000000..74ff5c7d
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/main/resources/META-INF/spring/module.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+ <beans:bean id="invoker" class="synthetic.tccl.b.Invoker" />
+
+</beans:beans>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/java/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/java/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/resources/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/resources/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.bundle.b/src/test/resources/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/.classpath b/test-apps/synthetic-tccl/synthetic.tccl.global/.classpath
new file mode 100644
index 00000000..adebb12a
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/.classpath
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-4.7.0.jar" sourcepath="/KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-sources-4.7.0.jar"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/.project b/test-apps/synthetic-tccl/synthetic.tccl.global/.project
new file mode 100644
index 00000000..ee719840
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>synthetic.tccl.global</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/build.xml b/test-apps/synthetic-tccl/synthetic.tccl.global/build.xml
new file mode 100644
index 00000000..18aeffb1
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="synthetic.tccl.global">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+ <property name="jar.output.dir" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/synthetic-tccl"/>
+ <import file="${basedir}/../../../virgo-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/ivy.xml b/test-apps/synthetic-tccl/synthetic.tccl.global/ivy.xml
new file mode 100644
index 00000000..cf4424fb
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/ivy.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?>
+<ivy-module
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"
+ version="1.3">
+
+ <info organisation="org.eclipse.virgo.synthetic.tccl" module="${ant.project.name}">
+ <ivyauthor name="gnormington"/>
+ </info>
+
+ <configurations>
+ <include file="${virgo.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ <artifact name="${ant.project.name}"/>
+ <artifact name="${ant.project.name}-sources" type="src" ext="jar"/>
+ </publications>
+
+ <dependencies>
+ <dependency org="org.junit" name="com.springsource.org.junit" rev="${org.junit}" conf="test->runtime"/>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/synthetic/tccl/global/Library.java b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/synthetic/tccl/global/Library.java
new file mode 100644
index 00000000..967f9de7
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/java/synthetic/tccl/global/Library.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 20011 VMware Inc.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package synthetic.tccl.global;
+
+public class Library {
+
+ public static void run() throws ClassNotFoundException {
+ Thread.currentThread().getContextClassLoader().loadClass("synthetic.tccl.a.AClass");
+ }
+}
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/resources/META-INF/MANIFEST.MF b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..56ef9847
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: synthetic.tccl.global
+Export-Package: synthetic.tccl.global
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/java/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/java/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/java/.gitignore
diff --git a/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/resources/.gitignore b/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/resources/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test-apps/synthetic-tccl/synthetic.tccl.global/src/test/resources/.gitignore

Back to the top