Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-apps/service-scoping-engine-1265')
-rw-r--r--test-apps/service-scoping-engine-1265/README.TXT9
-rw-r--r--test-apps/service-scoping-engine-1265/build-par/build.xml13
-rw-r--r--test-apps/service-scoping-engine-1265/build.properties6
-rw-r--r--test-apps/service-scoping-engine-1265/dependent/build.xml9
-rw-r--r--test-apps/service-scoping-engine-1265/dependent/ivy.xml22
-rw-r--r--test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/MANIFEST.MF5
-rw-r--r--test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/bundle-context.xml13
-rw-r--r--test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/osgi-context.xml16
-rw-r--r--test-apps/service-scoping-engine-1265/master/build.xml9
-rw-r--r--test-apps/service-scoping-engine-1265/master/ivy.xml22
-rw-r--r--test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/MANIFEST.MF5
-rw-r--r--test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/bundle-context.xml26
-rw-r--r--test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/osgi-context.xml22
13 files changed, 177 insertions, 0 deletions
diff --git a/test-apps/service-scoping-engine-1265/README.TXT b/test-apps/service-scoping-engine-1265/README.TXT
new file mode 100644
index 00000000..52b7ac7a
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/README.TXT
@@ -0,0 +1,9 @@
+How to build
+------------
+
+Run ant jar in build-par
+
+Output
+------
+
+com.springsource.kernel.deployer.test/src/test/resources/service-scoping/service-scoping-engine-1265.par \ No newline at end of file
diff --git a/test-apps/service-scoping-engine-1265/build-par/build.xml b/test-apps/service-scoping-engine-1265/build-par/build.xml
new file mode 100644
index 00000000..3bf238dc
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/build-par/build.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="service-scoping-engine-1265">
+
+ <path id="bundles">
+ <pathelement location="../master"/>
+ <pathelement location="../dependent"/>
+ </path>
+
+ <property file="${basedir}/../build.properties"/>
+ <property name="par.output.file" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/service-scoping/service-scoping-engine-1265.par"/>
+ <import file="${basedir}/../../../spring-build/par/default.xml"/>
+
+</project>
diff --git a/test-apps/service-scoping-engine-1265/build.properties b/test-apps/service-scoping-engine-1265/build.properties
new file mode 100644
index 00000000..0a1bca3f
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/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/service-scoping-engine-1265/dependent/build.xml b/test-apps/service-scoping-engine-1265/dependent/build.xml
new file mode 100644
index 00000000..216d6243
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/dependent/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="scoping.service.dependent">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/service-scoping-engine-1265/dependent/ivy.xml b/test-apps/service-scoping-engine-1265/dependent/ivy.xml
new file mode 100644
index 00000000..c1c1f7b3
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/dependent/ivy.xml
@@ -0,0 +1,22 @@
+<?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="scoping.service" module="${ant.project.name}">
+ <ivyauthor name="rharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${spring.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/MANIFEST.MF b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..f0739305
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: dependent.bundle
+Bundle-Version: 1.0.0.SNAPSHOT
+Import-Library: org.springframework.spring
diff --git a/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/bundle-context.xml b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/bundle-context.xml
new file mode 100644
index 00000000..4682df07
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/bundle-context.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context-2.5.xsd">
+
+ <!-- bean name="dependent-registrar" class="test.registrar.ResourceRegistrar"/-->
+
+ <context:component-scan base-package="test.scratch.dependent"/>
+
+</beans>
diff --git a/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/osgi-context.xml b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/osgi-context.xml
new file mode 100644
index 00000000..f38eb3ab
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/dependent/src/main/resources/META-INF/spring/osgi-context.xml
@@ -0,0 +1,16 @@
+<?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.xsd">
+
+ <reference id="scratch-registrar"
+ interface="org.springframework.core.io.Resource" filter="(path=foo)" cardinality="0..1"/>
+
+ <list id="scratch-registrars"
+ interface="org.springframework.core.io.Resource" cardinality="0..N"/>
+
+</beans:beans>
diff --git a/test-apps/service-scoping-engine-1265/master/build.xml b/test-apps/service-scoping-engine-1265/master/build.xml
new file mode 100644
index 00000000..b3d919e7
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/master/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="scoping.service.master">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/service-scoping-engine-1265/master/ivy.xml b/test-apps/service-scoping-engine-1265/master/ivy.xml
new file mode 100644
index 00000000..c1c1f7b3
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/master/ivy.xml
@@ -0,0 +1,22 @@
+<?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="scoping.service" module="${ant.project.name}">
+ <ivyauthor name="rharrop"/>
+ </info>
+
+ <configurations>
+ <include file="${spring.build.dir}/common/default-ivy-configurations.xml"/>
+ </configurations>
+
+ <publications>
+ </publications>
+
+ <dependencies>
+ </dependencies>
+
+</ivy-module>
diff --git a/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/MANIFEST.MF b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1275a83c
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: master.bundle
+Bundle-Version: 1.0.0.SNAPSHOT
+Import-Library: org.springframework.spring
diff --git a/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/bundle-context.xml b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/bundle-context.xml
new file mode 100644
index 00000000..80430c76
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/bundle-context.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+
+ <bean name="scratch-registrar"
+ class="org.springframework.core.io.ClassPathResource">
+ <constructor-arg value="META-INF/spring/bundle-context.xml"/>
+ </bean>
+
+ <bean name="other-resource"
+ class="org.springframework.core.io.ClassPathResource">
+ <constructor-arg value="META-INF/spring/bundle-context.xml"/>
+ </bean>
+
+ <bean id="properties"
+ class="org.springframework.beans.factory.config.PropertiesFactoryBean">
+ <property name="properties">
+ <props>
+ <prop key="foo">bar</prop>
+ </props>
+ </property>
+ </bean>
+</beans>
diff --git a/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/osgi-context.xml b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/osgi-context.xml
new file mode 100644
index 00000000..6a421432
--- /dev/null
+++ b/test-apps/service-scoping-engine-1265/master/src/main/resources/META-INF/spring/osgi-context.xml
@@ -0,0 +1,22 @@
+<?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.xsd">
+
+ <service ref="scratch-registrar"
+ interface="org.springframework.core.io.Resource">
+ <service-properties>
+ <beans:entry key="path" value="foo" />
+ </service-properties>
+ </service>
+
+ <service ref="other-resource"
+ interface="org.springframework.core.io.Resource"/>
+
+ <service ref="properties" interface="java.util.Properties" />
+
+</beans:beans>

Back to the top