Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2015-02-26 16:35:20 -0500
committerPascal Rapicault2015-02-26 16:38:17 -0500
commit2ac6622b69a46344f5f2174cad311feb871be4ac (patch)
treef6c0c2e31e851a8b9f3037b7fd505e8ada5cc141
parent8ee0c6197d715a09d7f5b965def3b54596741fc6 (diff)
downloadorg.eclipse.tycho-demo-2ac6622b69a46344f5f2174cad311feb871be4ac.tar.gz
org.eclipse.tycho-demo-2ac6622b69a46344f5f2174cad311feb871be4ac.tar.xz
org.eclipse.tycho-demo-2ac6622b69a46344f5f2174cad311feb871be4ac.zip
Add example for p2iu.xml
Bug 428310 Change-Id: I93d9f7f5f720b7dfcfa00bf5ba1f6f59f1b83211 Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
-rw-r--r--itp04-rcp/eclipse-repository/example.p2.inf7
-rw-r--r--itp04-rcp/pom.xml4
-rw-r--r--itp04-rcp/root-files-windows/p2iu.xml17
-rw-r--r--itp04-rcp/root-files-windows/pom.xml15
-rw-r--r--itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt0
-rw-r--r--itp04-rcp/root-files/p2iu.xml24
-rw-r--r--itp04-rcp/root-files/pom.xml15
-rw-r--r--itp04-rcp/root-files/src/main/resources/myFile.txt0
8 files changed, 81 insertions, 1 deletions
diff --git a/itp04-rcp/eclipse-repository/example.p2.inf b/itp04-rcp/eclipse-repository/example.p2.inf
new file mode 100644
index 0000000..cda4d5b
--- /dev/null
+++ b/itp04-rcp/eclipse-repository/example.p2.inf
@@ -0,0 +1,7 @@
+
+requires.0.namespace=org.eclipse.equinox.p2.iu
+requires.0.name=org.tycho.demo.rootfiles
+requires.0.range=1.0.0
+
+
+
diff --git a/itp04-rcp/pom.xml b/itp04-rcp/pom.xml
index 0a3b64b..223892f 100644
--- a/itp04-rcp/pom.xml
+++ b/itp04-rcp/pom.xml
@@ -20,7 +20,7 @@ Contributors:
<name>RCP Parent</name>
<properties>
- <tycho-version>0.22.0</tycho-version>
+ <tycho-version>0.23.0-SNAPSHOT</tycho-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -30,6 +30,8 @@ Contributors:
<module>example-feature</module>
<module>example-feature-2</module>
<module>helios</module>
+ <module>root-files</module>
+ <module>root-files-windows</module>
</modules>
<build>
diff --git a/itp04-rcp/root-files-windows/p2iu.xml b/itp04-rcp/root-files-windows/p2iu.xml
new file mode 100644
index 0000000..6be2d7b
--- /dev/null
+++ b/itp04-rcp/root-files-windows/p2iu.xml
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+ <unit id='org.tycho.demo.rootfiles.win' version='1.0.0.qualifier' singleton='false'>
+ <properties>
+ <property name='org.eclipse.equinox.p2.name' value='Root files for my product'/>
+ </properties>
+ <touchpoint id='org.eclipse.equinox.p2.native' version='1.0.0'/>
+ <touchpointData>
+ <instructions>
+ <instruction key='install'>
+ unzip(source:@artifact, target:${installFolder});
+ </instruction>
+ <instruction key='uninstall'>
+ cleanupzip(source:@artifact, target:${installFolder});
+ </instruction>
+ </instructions>
+ </touchpointData>
+ </unit>
diff --git a/itp04-rcp/root-files-windows/pom.xml b/itp04-rcp/root-files-windows/pom.xml
new file mode 100644
index 0000000..6d3af28
--- /dev/null
+++ b/itp04-rcp/root-files-windows/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>org.tycho.demo.rootfiles.win</artifactId>
+ <packaging>p2-installable-unit</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>example.group</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+</project>
diff --git a/itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt b/itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt
diff --git a/itp04-rcp/root-files/p2iu.xml b/itp04-rcp/root-files/p2iu.xml
new file mode 100644
index 0000000..f4f1d33
--- /dev/null
+++ b/itp04-rcp/root-files/p2iu.xml
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+ <unit id='org.tycho.demo.rootfiles' version='1.0.0' singleton='false'>
+ <properties>
+ <property name='org.eclipse.equinox.p2.name' value='Root files for my product'/>
+ </properties>
+ <requires>
+ <required namespace='org.eclipse.equinox.p2.iu' name='org.tycho.demo.rootfiles.win' range='1.0.0.qualifier'>
+ <filter>
+ (&amp;(osgi.arch=x86_64)(osgi.os=win32)(osgi.ws=win32))
+ </filter>
+ </required>
+ </requires>
+ <touchpoint id='org.eclipse.equinox.p2.native' version='1.0.0'/>
+ <touchpointData>
+ <instructions>
+ <instruction key='install'>
+ unzip(source:@artifact, target:${installFolder});
+ </instruction>
+ <instruction key='uninstall'>
+ cleanupzip(source:@artifact, target:${installFolder});
+ </instruction>
+ </instructions>
+ </touchpointData>
+ </unit>
diff --git a/itp04-rcp/root-files/pom.xml b/itp04-rcp/root-files/pom.xml
new file mode 100644
index 0000000..b9740bd
--- /dev/null
+++ b/itp04-rcp/root-files/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>org.tycho.demo.rootfiles</artifactId>
+ <packaging>p2-installable-unit</packaging>
+ <version>1.0.0</version>
+
+ <parent>
+ <groupId>example.group</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+</project>
diff --git a/itp04-rcp/root-files/src/main/resources/myFile.txt b/itp04-rcp/root-files/src/main/resources/myFile.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/itp04-rcp/root-files/src/main/resources/myFile.txt

Back to the top