Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.kernel.artifact/src/test/resources')
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/MANIFEST.MF0
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/web/index.jsp12
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/somefile.txt1
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/artifacts/simple.jarbin0 -> 576 bytes
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/bundle.jar/META-INF/MANIFEST.MF4
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/directories/y.different-1.2.3/META-INF/MANIFEST.MF5
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/invalid.libd3
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/test.libd4
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/basic.par/META-INF/MANIFEST.MF4
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-asn.par/META-INF/MANIFEST.MF4
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-version.par/META-INF/MANIFEST.MF4
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-asn.par/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-description.par/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-manifest.par/META-INF/dummy.txt1
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-name.par/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-version.par/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/plans/attributes.plan15
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/plans/malformed.plan9
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/plans/multi-artifact.plan13
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/plans/properties.plan13
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/plans/single-artifact.plan11
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/properties/foo.properties1
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/wars/test.warbin0 -> 730 bytes
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad01.warbin0 -> 436 bytes
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad02.war1
25 files changed, 117 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/MANIFEST.MF
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/web/index.jsp b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/web/index.jsp
new file mode 100644
index 00000000..8102008f
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/META-INF/web/index.jsp
@@ -0,0 +1,12 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Hello Web!</title>
+</head>
+<body>
+<p>Hello Web!</p>
+</body>
+</html> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/somefile.txt b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/somefile.txt
new file mode 100644
index 00000000..c57eff55
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/artefacts/exploded/somefile.txt
@@ -0,0 +1 @@
+Hello World! \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/artifacts/simple.jar b/org.eclipse.virgo.kernel.artifact/src/test/resources/artifacts/simple.jar
new file mode 100644
index 00000000..7efafc13
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/artifacts/simple.jar
Binary files differ
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/bundle.jar/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/bundle.jar/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..4a7652cc
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/bundle.jar/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: exploded.bundle
+Bundle-Version: 1.0
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/directories/y.different-1.2.3/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/directories/y.different-1.2.3/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..582885d7
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/directories/y.different-1.2.3/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: y.different
+Export-Package: x
+Bundle-Version: 1.2.3
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/invalid.libd b/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/invalid.libd
new file mode 100644
index 00000000..ff55009f
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/invalid.libd
@@ -0,0 +1,3 @@
+Manifest-Version: 1
+Library-Version: 1.2
+Import-Bundle: a,b,c \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/test.libd b/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/test.libd
new file mode 100644
index 00000000..3e4e6f06
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/libraries/test.libd
@@ -0,0 +1,4 @@
+Manifest-Version: 1
+Library-SymbolicName: test.library
+Library-Version: 1.2
+Import-Bundle: a,b,c \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/basic.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/basic.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..8099c758
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/basic.par/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Application-SymbolicName: basic
+Application-Version: 1.2.3
+Application-Name: Basic Par
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-asn.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-asn.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..e5fa4593
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-asn.par/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Application-SymbolicName: .@$%
+Application-Version: 1.2.3
+Application-Name: Basic Par
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-version.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-version.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..6488d37c
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/illegal-version.par/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Application-SymbolicName: basic
+Application-Version: alpha
+Application-Name: Basic Par
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-asn.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-asn.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..f9f79e57
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-asn.par/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Application-Version: 1.2.3
+Application-Name: Basic Par
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-description.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-description.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..fd589a8f
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-description.par/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Application-SymbolicName: basic
+Application-Version: 1.2.3
+Application-Name: Basic Par
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-manifest.par/META-INF/dummy.txt b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-manifest.par/META-INF/dummy.txt
new file mode 100644
index 00000000..0fa94231
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-manifest.par/META-INF/dummy.txt
@@ -0,0 +1 @@
+Just a file to keep the directory around \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-name.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-name.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..ad855b69
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-name.par/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Application-SymbolicName: basic
+Application-Version: 1.2.3
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-version.par/META-INF/MANIFEST.MF b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-version.par/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..a5a84ba6
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/pars/no-version.par/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Application-SymbolicName: basic
+Application-Name: Basic Par
+Application-Description: A basic PAR file for the unit tests
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/attributes.plan b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/attributes.plan
new file mode 100644
index 00000000..5ae8d8c7
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/attributes.plan
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plan name="single-artifact.plan" version="1.0.0" scoped="true" atomic="true"
+ xmlns="http://www.springsource.org/schema/dm-server/plan"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springsource.org/schema/dm-server/plan
+ http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
+
+ <attributes>
+ <attribute name="version" value="[1.0.0, 2.0.0)"/>
+
+ </attributes>
+ <artifact type="bundle" name="org.springframework.context.support" version="${version}"/>
+
+</plan> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/malformed.plan b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/malformed.plan
new file mode 100644
index 00000000..71cc5c15
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/malformed.plan
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plan name="malformed.plan" version="1.0.0"
+ xmlns="http://www.springsource.org/schema/dm-server/plan"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springsource.org/schema/dm-server/plan
+ http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
+ <artifact type="bundle"/>
+</plan> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/multi-artifact.plan b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/multi-artifact.plan
new file mode 100644
index 00000000..ea5363d0
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/multi-artifact.plan
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plan name="multi-artifact.plan" version="1.0.0" scoped="true" atomic="true"
+ xmlns="http://www.springsource.org/schema/dm-server/plan"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springsource.org/schema/dm-server/plan
+ http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
+
+ <artifact type="alpha" name="org.springframework.core"/>
+ <artifact type="bravo" name="org.springframework.context" version="1.0.0"/>
+ <artifact type="charlie" name="org.springframework.context.support" version="[1.0.0, 2.0.0)"/>
+
+</plan> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/properties.plan b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/properties.plan
new file mode 100644
index 00000000..8e76e718
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/properties.plan
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plan name="properties.plan" version="1.0.0" scoped="true" atomic="true"
+ xmlns="http://www.springsource.org/schema/dm-server/plan"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springsource.org/schema/dm-server/plan
+ http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
+
+ <artifact type="bundle" name="my.webapp" version="[1.0.0, 2.0.0)">
+ <property name="Web-ContextPath" value="/foo"/>
+ </artifact>
+
+</plan> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/single-artifact.plan b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/single-artifact.plan
new file mode 100644
index 00000000..e5377970
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/plans/single-artifact.plan
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plan name="single-artifact.plan" version="1.0.0" scoped="true" atomic="true"
+ xmlns="http://www.springsource.org/schema/dm-server/plan"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springsource.org/schema/dm-server/plan
+ http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
+
+ <artifact type="bundle" name="org.springframework.context.support" version="[1.0.0, 2.0.0)"/>
+
+</plan> \ No newline at end of file
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/properties/foo.properties b/org.eclipse.virgo.kernel.artifact/src/test/resources/properties/foo.properties
new file mode 100644
index 00000000..74d0a43f
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/properties/foo.properties
@@ -0,0 +1 @@
+foo=bar
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/test.war b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/test.war
new file mode 100644
index 00000000..c08c7316
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/test.war
Binary files differ
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad01.war b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad01.war
new file mode 100644
index 00000000..677a6ba6
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad01.war
Binary files differ
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad02.war b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad02.war
new file mode 100644
index 00000000..4b90d403
--- /dev/null
+++ b/org.eclipse.virgo.kernel.artifact/src/test/resources/wars/testbad02.war
@@ -0,0 +1 @@
+This is not a war file really \ No newline at end of file

Back to the top