Bug 541741: [Releng] Add configuration of build id and final file names

Change-Id: I1704c2691167e1c4ce97bc17adf291e2755ca21c
diff --git a/releng/pom.xml b/releng/pom.xml
index e53aeba..dbac77b 100644
--- a/releng/pom.xml
+++ b/releng/pom.xml
@@ -35,7 +35,7 @@
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 		
 		<tycho.version>1.2.0</tycho.version>
-		<tycho-extras.version>1.2.0</tycho-extras.version>
+		<tycho-extras.version>${tycho.version}</tycho-extras.version>
 		<cbi-plugins.version>1.1.5</cbi-plugins.version>
 		<surefire.version>2.22.1</surefire.version>
 		
@@ -47,6 +47,12 @@
 		
 		<qualifier.format>yyyyMMddHHmm</qualifier.format>
 		<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
+		
+		<statet.version>4.0.0</statet.version>
+		<statet.build.timestamp>${maven.build.timestamp}</statet.build.timestamp>
+		<statet.build.type></statet.build.type>
+		<statet.build.id>${statet.build.type}${statet.build.timestamp}</statet.build.id>
+		
 	</properties>
 	
 	<pluginRepositories>
diff --git a/releng/statet-repository/pom.xml b/releng/statet-repository/pom.xml
index 4406b3a..adca5c2 100644
--- a/releng/statet-repository/pom.xml
+++ b/releng/statet-repository/pom.xml
@@ -29,6 +29,33 @@
 	<groupId>org.eclipse.statet-assemblies</groupId>
 	<artifactId>org.eclipse.statet.repository</artifactId>
 	<packaging>eclipse-repository</packaging>
-	<name>Eclipse StatET 4.0</name>
+	
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.eclipse.tycho</groupId>
+				<artifactId>target-platform-configuration</artifactId>
+				<configuration>
+					<resolver>p2</resolver>
+					<target>
+						<artifact>
+							<groupId>org.eclipse.statet-releng</groupId>
+							<artifactId>target-eclipse.ide</artifactId>
+							<version>4.0.0-SNAPSHOT</version>
+						</artifact>
+					</target>
+				</configuration>
+			</plugin>
+			
+			<plugin>
+				<groupId>org.eclipse.tycho</groupId>
+				<artifactId>tycho-p2-repository-plugin</artifactId>
+				<configuration>
+					<repositoryName>Eclipse StatET ${statet.version} (Build ${statet.build.id})</repositoryName>
+					<finalName>statet-repository-${statet.version}-${statet.build.id}</finalName>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 	
 </project>