浏览代码

copy selected xtextUtils repository

benjamin.schwertfeger@gmail.com 13 年之前
父节点
当前提交
257a9dfd3f

+ 1 - 1
features/org.yakindu.sct.sdk-feature/feature.xml

@@ -33,7 +33,7 @@
          unpack="false"/>
 
    <plugin
-         id="org.yakindu.base.types.ui.scope.source"
+         id="org.yakindu.base.types.scope.source"
          download-size="0"
          install-size="0"
          version="0.0.0"

+ 1 - 1
releng/org.yakindu.sct.releng/hudson.README

@@ -38,7 +38,7 @@ Build:
 
 + Invoke Maven 3
 	Goals
-		clean install
+		clean package
 	POM File
 		../build/org.yakindu.sct.releng/pom.xml
 	Profiles

+ 48 - 7
releng/org.yakindu.sct.releng/pom.xml

@@ -42,7 +42,8 @@
 										<echo
 											message="Replacing @build@ token within about.mappings with build id." />
 										<replace file="about.mappings">
-											<replacefilter token="@build@" value="${unqualifiedVersion}.${buildQualifier}" />
+											<replacefilter token="@build@"
+												value="${unqualifiedVersion}.${buildQualifier}" />
 										</replace>
 									</then>
 								</if>
@@ -52,7 +53,8 @@
 										<echo
 											message="Replacing @build@ token within javadocOptions.txt with build id." />
 										<replace file="javadocOptions.txt">
-											<replacefilter token="@build@" value="${unqualifiedVersion}.${buildQualifier}" />
+											<replacefilter token="@build@"
+												value="${unqualifiedVersion}.${buildQualifier}" />
 										</replace>
 									</then>
 								</if>
@@ -75,7 +77,8 @@
 										<echo
 											message="Replacing back build id within about.mappings with @build@ token." />
 										<replace file="about.mappings">
-											<replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@" />
+											<replacefilter token="${unqualifiedVersion}.${buildQualifier}"
+												value="@build@" />
 										</replace>
 									</then>
 								</if>
@@ -85,7 +88,8 @@
 										<echo
 											message="Replacing back build id within javadocOptions.txt with @build@ token." />
 										<replace file="javadocOptions.txt">
-											<replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@" />
+											<replacefilter token="${unqualifiedVersion}.${buildQualifier}"
+												value="@build@" />
 										</replace>
 									</then>
 								</if>
@@ -109,14 +113,16 @@
 
 	<repositories>
 		<repository>
-			<!-- Selected version of xtextUtils repository which is shipped with this repository  -->
-			<!-- Todo: works only with a custom java keystore because of self signed ssl-cert, local results previous build in local repo are used as fallback -->
+			<!-- Selected version of xtextUtils repository which is shipped with this 
+				repository -->
+			<!-- Todo: works only with a custom java keystore because of self signed 
+				ssl-cert, local results previous build in local repo are used as fallback -->
 			<id>xtextUtils</id>
 			<layout>p2</layout>
 			<url>${xtextUtilsRepository}artifact/update-site/</url>
 		</repository>
 	</repositories>
-	
+
 	<profiles>
 		<profile>
 			<id>Indigo.target</id>
@@ -171,6 +177,41 @@
 				</plugins>
 			</build>
 		</profile>
+		<profile>
+			<id>CI</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.eclipse.tycho.extras</groupId>
+						<artifactId>tycho-p2-extras-plugin</artifactId>
+						<version>${tycho-version}</version>
+						<inherited>false</inherited>
+						<executions>
+							<execution>
+								<phase>prepare-package</phase>
+								<goals>
+									<goal>mirror</goal>
+								</goals>
+							</execution>
+						</executions>
+						<configuration>
+							<source>
+								<!-- source repositori(es) to mirror from -->
+								<repository>
+									<url>${xtextUtilsRepository}artifact/update-site/</url>
+									<layout>p2</layout>
+									<!-- sypported layouts are "p2-metadata", "p2-artifacts", and "p2" 
+										(for joint repositories) -->
+								</repository>
+							</source>
+
+							<destination>${project.build.directory}/xtextUtilsRepository</destination>
+							<compress>true</compress>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
 	</profiles>
 
 	<modules>