-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IT to reproduce missing launcher
- Loading branch information
Showing
11 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tycho-its/projects/surefire.p2InstalledRuntime/example-plugin/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-SymbolicName: spir.Plugin | ||
Bundle-Version: 1.0.0 | ||
Export-Package: plugin | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 |
5 changes: 5 additions & 0 deletions
5
tycho-its/projects/surefire.p2InstalledRuntime/example-plugin/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
plugin.xml | ||
output.. = target/classes/ | ||
source.. = src/ |
25 changes: 25 additions & 0 deletions
25
tycho-its/projects/surefire.p2InstalledRuntime/example-plugin/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2013 SAP AG and others. | ||
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 | ||
https://www.eclipse.org/legal/epl-v10.html | ||
Contributors: | ||
SAP AG - initial API and implementation | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>tycho-its-project.surefire.p2InstalledRuntime</groupId> | ||
<artifactId>provisionedApplicationParent</artifactId> | ||
<version>1.0.0</version> | ||
</parent> | ||
|
||
<artifactId>spir.example-plugin</artifactId> | ||
<packaging>eclipse-plugin</packaging> | ||
|
||
</project> |
9 changes: 9 additions & 0 deletions
9
tycho-its/projects/surefire.p2InstalledRuntime/example-plugin/src/plugin/MyPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package plugin; | ||
|
||
public class MyPlugin { | ||
|
||
public String sayHello() { | ||
return "Hello"; | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
tycho-its/projects/surefire.p2InstalledRuntime/pluginTest/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-SymbolicName: spir.pluginTest | ||
Bundle-Version: 1.0.0 | ||
Require-Bundle: org.junit, | ||
org.eclipse.core.runtime, | ||
spir.Plugin | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 |
4 changes: 4 additions & 0 deletions
4
tycho-its/projects/surefire.p2InstalledRuntime/pluginTest/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
46 changes: 46 additions & 0 deletions
46
tycho-its/projects/surefire.p2InstalledRuntime/pluginTest/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Copyright (c) 2013 Red Hat Inc. and others. | ||
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 | ||
https://www.eclipse.org/legal/epl-v10.html | ||
Contributors: | ||
Mickael Istria (Red Hat JBoss) - example produce | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>tycho-its-project.surefire.p2InstalledRuntime</groupId> | ||
<artifactId>provisionedApplicationParent</artifactId> | ||
<version>1.0.0</version> | ||
</parent> | ||
|
||
<artifactId>spir.pluginTest</artifactId> | ||
|
||
<packaging>eclipse-test-plugin</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-surefire-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<testRuntime>p2Installed</testRuntime> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-compiler-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
16 changes: 16 additions & 0 deletions
16
tycho-its/projects/surefire.p2InstalledRuntime/pluginTest/src/testPlugin/PluginTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package testPlugin; | ||
|
||
import java.io.File; | ||
|
||
import junit.framework.TestCase; | ||
|
||
import plugin.MyPlugin; | ||
|
||
public class PluginTest extends TestCase { | ||
|
||
public void testPlugin() throws Exception { | ||
MyPlugin underTest = new MyPlugin(); | ||
assertEquals("Hello", underTest.sayHello()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters