Browse Source

added property for composite update site

Andreas Muelder 9 years ago
parent
commit
3a29e6c48a
1 changed files with 42 additions and 32 deletions
  1. 42 32
      releng/org.yakindu.sct.repository/pom.xml

+ 42 - 32
releng/org.yakindu.sct.repository/pom.xml

@@ -14,38 +14,48 @@
 
 	<properties>
 		<source.update.site>http://updates.yakindu.org/sct/mars/releases</source.update.site>
-		<target.update.site>composite</target.update.site>		
+		<target.update.site>target/repository</target.update.site>
 		<tycho.extras.version>0.24.0</tycho.extras.version>
 	</properties>
-
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.eclipse.tycho.extras</groupId>
-				<artifactId>tycho-p2-extras-plugin</artifactId>
-				<version>${tycho.extras.version}</version>
-				<inherited>false</inherited>
-				<executions>
-					<execution>
-						<id>append</id>
-						<phase>package</phase>
-						<goals>
-							<goal>mirror</goal>
-						</goals>
-						<configuration>
-							<source>
-								<repository>
-									<url>${source.update.site}</url>
-									<layout>p2</layout>
-								</repository>
-							</source>
-							<destination>${target.update.site}</destination>
-							<compress>true</compress>
-							<append>true</append>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-		</plugins>
-	</build>
+	<profiles>
+		<profile>
+			<id>CopySource</id>
+			<activation>
+				<property>
+					<name>createComposite</name>
+					<value>true</value>
+				</property>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.eclipse.tycho.extras</groupId>
+						<artifactId>tycho-p2-extras-plugin</artifactId>
+						<version>${tycho.extras.version}</version>
+						<inherited>false</inherited>
+						<executions>
+							<execution>
+								<id>append</id>
+								<phase>package</phase>
+								<goals>
+									<goal>mirror</goal>
+								</goals>
+								<configuration>
+									<source>
+										<repository>
+											<url>${source.update.site}</url>
+											<layout>p2</layout>
+										</repository>
+									</source>
+									<destination>${target.update.site}</destination>
+									<compress>true</compress>
+									<append>true</append>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>