Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-apps/service-publication-from-repo-bundles')
-rw-r--r--test-apps/service-publication-from-repo-bundles/README.TXT13
-rw-r--r--test-apps/service-publication-from-repo-bundles/build.properties6
-rw-r--r--test-apps/service-publication-from-repo-bundles/consumer/build.xml9
-rw-r--r--test-apps/service-publication-from-repo-bundles/consumer/ivy.xml22
-rw-r--r--test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/MANIFEST.MF4
-rw-r--r--test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/spring/app-context.xml15
-rw-r--r--test-apps/service-publication-from-repo-bundles/publisher/build.xml9
-rw-r--r--test-apps/service-publication-from-repo-bundles/publisher/ivy.xml22
-rw-r--r--test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/MANIFEST.MF4
-rw-r--r--test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/spring/app-context.xml16
10 files changed, 120 insertions, 0 deletions
diff --git a/test-apps/service-publication-from-repo-bundles/README.TXT b/test-apps/service-publication-from-repo-bundles/README.TXT
new file mode 100644
index 00000000..000ccf9d
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/README.TXT
@@ -0,0 +1,13 @@
+How to build
+------------
+
+1. Run ant jar in consumer
+ or
+2. Run ant jar in publisher
+
+Output
+------
+
+1. com.springsource.kernel.deployer/test/src/test/resources/service-publication-from-repo/consumer.jar
+ or
+2. com.springsource.kernel.deployer/test/src/test/resources/service-publication-from-repo/publisher.jar \ No newline at end of file
diff --git a/test-apps/service-publication-from-repo-bundles/build.properties b/test-apps/service-publication-from-repo-bundles/build.properties
new file mode 100644
index 00000000..0a1bca3f
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/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-publication-from-repo-bundles/consumer/build.xml b/test-apps/service-publication-from-repo-bundles/consumer/build.xml
new file mode 100644
index 00000000..44b4b153
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/consumer/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="consumer">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+ <property name="jar.output.file" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/service-publication-from-repo/consumer.jar"/>
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/service-publication-from-repo-bundles/consumer/ivy.xml b/test-apps/service-publication-from-repo-bundles/consumer/ivy.xml
new file mode 100644
index 00000000..11bbbc04
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/consumer/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="service.publication.from.repo" module="${ant.project.name}">
+ <ivyauthor name="awilkinson"/>
+ </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-publication-from-repo-bundles/consumer/src/main/resources/META-INF/MANIFEST.MF b/test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..1c2ead8a
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Bundle-ManifestVersion: 2
+Manifest-Version: 1.0
+Bundle-SymbolicName: org.eclipse.virgo.server.test.consumer
+Import-Package: org.eclipse.virgo.server.test.publisher
diff --git a/test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/spring/app-context.xml b/test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/spring/app-context.xml
new file mode 100644
index 00000000..6a4393fe
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/consumer/src/main/resources/META-INF/spring/app-context.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans:beans xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:util="http://www.springframework.org/schema/util"
+ 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
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+ <osgi:reference id="list" interface="java.util.List"/>
+
+</beans:beans>
diff --git a/test-apps/service-publication-from-repo-bundles/publisher/build.xml b/test-apps/service-publication-from-repo-bundles/publisher/build.xml
new file mode 100644
index 00000000..cb225c7b
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/publisher/build.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="publisher">
+
+ <property file="${basedir}/../build.properties"/>
+ <property file="${basedir}/../../../build.versions"/>
+ <property name="jar.output.file" value="${basedir}/../../../org.eclipse.virgo.kernel.deployer.test/src/test/resources/service-publication-from-repo/publisher.jar"/>
+ <import file="${basedir}/../../../spring-build/standard/default.xml"/>
+
+</project>
diff --git a/test-apps/service-publication-from-repo-bundles/publisher/ivy.xml b/test-apps/service-publication-from-repo-bundles/publisher/ivy.xml
new file mode 100644
index 00000000..11bbbc04
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/publisher/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="service.publication.from.repo" module="${ant.project.name}">
+ <ivyauthor name="awilkinson"/>
+ </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-publication-from-repo-bundles/publisher/src/main/resources/META-INF/MANIFEST.MF b/test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..9edfef1f
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Bundle-ManifestVersion: 2
+Manifest-Version: 1.0
+Bundle-SymbolicName: org.eclipse.virgo.server.test.publisher
+Export-Package: org.eclipse.virgo.server.test.publisher
diff --git a/test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/spring/app-context.xml b/test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/spring/app-context.xml
new file mode 100644
index 00000000..9f5947b0
--- /dev/null
+++ b/test-apps/service-publication-from-repo-bundles/publisher/src/main/resources/META-INF/spring/app-context.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans:beans xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:util="http://www.springframework.org/schema/util"
+ 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
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+ <osgi:service ref="list" interface="java.util.List"/>
+ <beans:bean id="list" class="java.util.ArrayList"/>
+
+</beans:beans>

Back to the top