-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ITs for referencedRepositoryMode
- Loading branch information
1 parent
00c55f8
commit 1c542d0
Showing
9 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
tycho-its/projects/p2Repository.repositoryRef.targetresolution.ignore/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 @@ | ||
Bundle-ManifestVersion: 2 | ||
Bundle-SymbolicName: p2Repository.repositoryRef.target;singleton:=true | ||
Bundle-Version: 1.0.0.qualifier | ||
Require-Bundle: org.eclipse.core.runtime, | ||
org.eclipse.epsilon.picto | ||
Bundle-Name: p2Repository.repositoryRef.target |
2 changes: 2 additions & 0 deletions
2
tycho-its/projects/p2Repository.repositoryRef.targetresolution.ignore/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,2 @@ | ||
bin.includes = META-INF/,\ | ||
. |
42 changes: 42 additions & 0 deletions
42
tycho-its/projects/p2Repository.repositoryRef.targetresolution.ignore/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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
|
||
<groupId>tycho-its-project.p2Repository.repositoryRef.targetresolution</groupId> | ||
<artifactId>p2Repository.repositoryRef.target</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>eclipse-plugin</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>target-platform-configuration</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<target> | ||
<file> | ||
${project.basedir}/test-target.target | ||
</file> | ||
</target> | ||
<referencedRepositoryMode>ignore</referencedRepositoryMode> | ||
<!-- | ||
The project requires a bundle from Epsilon and Eclipse. | ||
The target platform only uses the Epsilon update site. | ||
Epsilon update site uses referenced repositories so using its update site alone | ||
should be enough to resolve the transitive dependencies. | ||
However, we explicitly ignore referenced sites, so this should lead to | ||
a resolution failure --> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
15 changes: 15 additions & 0 deletions
15
tycho-its/projects/p2Repository.repositoryRef.targetresolution.ignore/test-target.target
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?pde version="3.8"?> | ||
<target name="test-target.target" sequenceNumber="1"> | ||
<locations> | ||
<!-- Epsilon update site uses referenced repositories so using its update site alone | ||
should be enough to resolve the transitive dependencies --> | ||
<location includeAllPlatforms="false" includeConfigurePhase="true" | ||
includeMode="planner" includeSource="true" type="InstallableUnit"> | ||
<unit id="org.eclipse.epsilon.picto" | ||
version="0.0.0" /> | ||
<repository | ||
location="https://download.eclipse.org/epsilon/updates/2.4/" /> | ||
</location> | ||
</locations> | ||
</target> |
6 changes: 6 additions & 0 deletions
6
tycho-its/projects/p2Repository.repositoryRef.targetresolution.include/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 @@ | ||
Bundle-ManifestVersion: 2 | ||
Bundle-SymbolicName: p2Repository.repositoryRef.target;singleton:=true | ||
Bundle-Version: 1.0.0.qualifier | ||
Require-Bundle: org.eclipse.core.runtime, | ||
org.eclipse.epsilon.picto | ||
Bundle-Name: p2Repository.repositoryRef.target |
2 changes: 2 additions & 0 deletions
2
tycho-its/projects/p2Repository.repositoryRef.targetresolution.include/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,2 @@ | ||
bin.includes = META-INF/,\ | ||
. |
40 changes: 40 additions & 0 deletions
40
tycho-its/projects/p2Repository.repositoryRef.targetresolution.include/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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
|
||
<groupId>tycho-its-project.p2Repository.repositoryRef.targetresolution</groupId> | ||
<artifactId>p2Repository.repositoryRef.target</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>eclipse-plugin</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>target-platform-configuration</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<target> | ||
<file> | ||
${project.basedir}/test-target.target | ||
</file> | ||
</target> | ||
<!-- The default is | ||
<referencedRepositoryMode>include</referencedRepositoryMode> | ||
The project requires a bundle from Epsilon and Eclipse. | ||
The target platform only uses the Epsilon update site. | ||
Epsilon update site uses referenced repositories so using its update site alone | ||
should be enough to resolve the transitive dependencies--> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
15 changes: 15 additions & 0 deletions
15
tycho-its/projects/p2Repository.repositoryRef.targetresolution.include/test-target.target
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?pde version="3.8"?> | ||
<target name="test-target.target" sequenceNumber="1"> | ||
<locations> | ||
<!-- Epsilon update site uses referenced repositories so using its update site alone | ||
should be enough to resolve the transitive dependencies --> | ||
<location includeAllPlatforms="false" includeConfigurePhase="true" | ||
includeMode="planner" includeSource="true" type="InstallableUnit"> | ||
<unit id="org.eclipse.epsilon.picto" | ||
version="0.0.0" /> | ||
<repository | ||
location="https://download.eclipse.org/epsilon/updates/2.4/" /> | ||
</location> | ||
</locations> | ||
</target> |
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