Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-apps/bundle-activation-policy')
-rw-r--r--test-apps/bundle-activation-policy/README.TXT9
-rw-r--r--test-apps/bundle-activation-policy/build-par/build.xml14
-rw-r--r--test-apps/bundle-activation-policy/build.properties6
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.a/build.xml9
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.a/ivy.xml26
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/java/a/UseBundleB.java24
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/resources/META-INF/MANIFEST.MF5
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.b/build.xml9
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.b/ivy.xml25
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/java/b/ClassInBundleB.java17
-rw-r--r--test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/resources/META-INF/MANIFEST.MF5
11 files changed, 149 insertions, 0 deletions
diff --git a/test-apps/bundle-activation-policy/README.TXT b/test-apps/bundle-activation-policy/README.TXT
new file mode 100644
index 00000000..82aa9e9d
--- /dev/null
+++ b/test-apps/bundle-activation-policy/README.TXT
@@ -0,0 +1,9 @@
+How to build
+------------
+
+Run ant jar build-par
+
+Output
+------
+
+com.springsource.kernel.test/com.springsource.kernel.deployer.test/src/test/resources/bundle-activation-policy.par
diff --git a/test-apps/bundle-activation-policy/build-par/build.xml b/test-apps/bundle-activation-policy/build-par/build.xml
new file mode 100644
index 00000000..696de56f
--- /dev/null
+++ b/test-apps/bundle-activation-policy/build-par/build.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="bundle-activation-policy">
+
+ <path id="bundles">
+ <pathelement location="../bundle.activation.policy.module.b"/>
+ <pathelement location="../bundle.activation.policy.module.a"/>
+ </path>
+
+ <property file="${basedir}/../build.properties"/>
+ <property name="par.output.file" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/bundle-activation-policy.par"/>
+
+ <import file="${basedir}/../../../spring-build/par/default.xml"/>
+
+</project>
diff --git a/test-apps/bundle-activation-policy/build.properties b/test-apps/bundle-activation-policy/build.properties
new file mode 100644
index 00000000..0a1bca3f
--- /dev/null
+++ b/test-apps/bundle-activation-policy/build.properties
@@ -0,0 +1,6 @@
+version=1.0.0
+release.type=integration
+bucket.basename=springsource.com
+ivy.cache.dir=${basedir}/../../ivy-cache
+integration.repo.dir=${basedir}/../../integration-repo
+disable.bundlor=true
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/build.xml b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/build.xml
new file mode 100644
index 00000000..05d752bd
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="bundle.activation.policy.module.a">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../build.versions"/>
+
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/ivy.xml b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/ivy.xml
new file mode 100644
index 00000000..f92fa16c
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/ivy.xml
@@ -0,0 +1,26 @@
+<?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="bundle.activation.policy" module="${ant.project.name}">
+ <ivyauthor name="awilkinson"/>
+ </info>
+
+ <configurations>
+ <include file="${spring.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"/>
+ <dependency org="bundle.activation.policy" name="bundle.activation.policy.module.b" rev="latest.integration" conf="compile->compile"/>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/java/a/UseBundleB.java b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/java/a/UseBundleB.java
new file mode 100644
index 00000000..74944df0
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/java/a/UseBundleB.java
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 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 a;
+
+import b.ClassInBundleB;
+
+public class UseBundleB {
+ private final ClassInBundleB classInBundleB;
+ public UseBundleB() {
+ this.classInBundleB = new ClassInBundleB();
+ }
+ public ClassInBundleB getClassInBundleB() {
+ return this.classInBundleB;
+ }
+}
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/resources/META-INF/MANIFEST.MF b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..faa2e94c
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.a/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Bundle-SymbolicName: bundle.activation.policy.module.a
+Bundle-Version: 1.0
+Bundle-ManifestVersion: 2
+Import-Package: b
+Export-Package: a
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/build.xml b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/build.xml
new file mode 100644
index 00000000..9270bfb7
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="bundle.activation.policy.module.b">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/ivy.xml b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/ivy.xml
new file mode 100644
index 00000000..c01c34bb
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/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="bundle.activation.policy" module="${ant.project.name}">
+ <ivyauthor name="awilkinson"/>
+ </info>
+
+ <configurations>
+ <include file="${spring.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/bundle-activation-policy/bundle.activation.policy.module.b/src/main/java/b/ClassInBundleB.java b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/java/b/ClassInBundleB.java
new file mode 100644
index 00000000..5ef6aa08
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/java/b/ClassInBundleB.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2010 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 b;
+
+public class ClassInBundleB {
+ public ClassInBundleB() {
+ }
+}
diff --git a/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/resources/META-INF/MANIFEST.MF b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1e2fb2e6
--- /dev/null
+++ b/test-apps/bundle-activation-policy/bundle.activation.policy.module.b/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Bundle-SymbolicName: bundle.activation.policy.module.b
+Bundle-Version: 1.0
+Bundle-ManifestVersion: 2
+Export-Package: b
+Bundle-ActivationPolicy: lazy

Back to the top