[build] Update Kepler TP
diff --git a/.gitignore b/.gitignore
index ef6b214..b149aa5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
-bin

-target

-_database

-.*.targetplatform
\ No newline at end of file
+bin
+target
+_database
+*.targetplatform
+*build.acceleo
\ No newline at end of file
diff --git a/plugins/org.eclipse.mylyn.docs.intent.exporter/META-INF/MANIFEST.MF b/plugins/org.eclipse.mylyn.docs.intent.exporter/META-INF/MANIFEST.MF
index 9760a3c..b712bc7 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.exporter/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.mylyn.docs.intent.exporter/META-INF/MANIFEST.MF
@@ -24,7 +24,8 @@
  org.eclipse.mylyn.docs.intent.collab.common;bundle-version="0.7.0",
  org.eclipse.mylyn.docs.intent.collab;bundle-version="0.7.0",
  org.eclipse.mylyn.docs.intent.client.ui;bundle-version="0.7.0",
- org.eclipse.core.resources;resolution:=optional
+ org.eclipse.core.resources;resolution:=optional,
+ org.eclipse.emf.codegen.ecore
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Bundle-ActivationPolicy: lazy
 Eclipse-LazyStart: true
diff --git a/plugins/org.eclipse.mylyn.docs.intent/dev/target platform/kepler-sdk.target b/plugins/org.eclipse.mylyn.docs.intent/dev/target platform/kepler-sdk.target
index 8f2cd98..6c8ac46 100644
--- a/plugins/org.eclipse.mylyn.docs.intent/dev/target platform/kepler-sdk.target
+++ b/plugins/org.eclipse.mylyn.docs.intent/dev/target platform/kepler-sdk.target
@@ -1,31 +1,23 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <?pde version="3.8"?>
 
-<target name="Kepler SDK" sequenceNumber="0">
+<target name="Kepler SDK" sequenceNumber="1">
 <locations>
 <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.7.2.v20120916-1200"/>
-<unit id="org.eclipse.acceleo.sdk.feature.group" version="3.3.1.v20120831-0923"/>
-<unit id="org.eclipse.emf.cdo.sdk.feature.group" version="4.1.1.v20120911-1146"/>
-<unit id="org.eclipse.emf.sdk.feature.group" version="2.8.1.v20120917-0436"/>
-<unit id="org.eclipse.emf.transaction.sdk.feature.group" version="1.6.0.v20120328-0001-777Z-9A_WsZmcPluNecyPkvrPKlH"/>
-<unit id="org.eclipse.emf.validation.sdk.feature.group" version="1.6.0.v20120328-0001-67T-96SGR75UNqZNTdeQnghI6uFA"/>
-<repository location="http://download.eclipse.org/releases/juno"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
 <unit id="com.google.collect" version="1.0.0.v201003051000"/>
 <unit id="org.junit" version="4.8.1.v4_8_1_v20100427-1100"/>
 <repository location="http://download.eclipse.org/tools/orbit/downloads/drops/updateSite"/>
 </location>
 <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.platform.sdk" version="4.2.1.M20120914-1800"/>
-<repository location="http://download.eclipse.org/eclipse/updates/4.2"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.emf.compare.feature.group" version="2.1.0.201212170942"/>
-<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="2.1.0.201212170942"/>
-<unit id="org.eclipse.emf.compare.rcp.ui.feature.group" version="2.1.0.201212170942"/>
-<repository location="https://hudson.eclipse.org/hudson/view/Modeling/job/emf-compare-master/lastSuccessfulBuild/artifact/packaging/org.eclipse.emf.compare.update/target/repository/"/>
+<unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.8.0.I20121215-2122"/>
+<unit id="org.eclipse.emf.cdo.sdk.feature.group" version="4.2.0.v20121218-1021"/>
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.9.0.v20121217-0429"/>
+<unit id="org.eclipse.emf.transaction.sdk.feature.group" version="1.7.0.201212181754"/>
+<unit id="org.eclipse.emf.validation.sdk.feature.group" version="1.7.0.201212181556"/>
+<unit id="org.eclipse.jdt.feature.group" version="3.9.0.v20121210-132935-8-8tFyYFNOfwKDedebWWejRS5834"/>
+<unit id="org.eclipse.acceleo.feature.group" version="3.3.100.201212181427"/>
+<unit id="org.eclipse.pde.feature.group" version="3.9.0.v20120730-104211-7c7xFsGFFt6Zr5lOwAL3vKoET"/>
+<repository location="http://download.eclipse.org/releases/kepler"/>
 </location>
 </locations>
 </target>
diff --git a/pom.xml b/pom.xml
index 48c0bce..435310d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -318,23 +318,20 @@
 		</build>
 	</profile>
 	<profile>
-      <id>juno</id>
+      <id>kepler</id>
 		<activation>
           <activeByDefault>true</activeByDefault>
       </activation>
-  		<repositories>
-			<repository><id>juno</id><layout>p2</layout>
-			   <url>http://download.eclipse.org/releases/juno</url>
-			</repository>
-			<repository><id>platform</id><layout>p2</layout>
-			   <url>http://download.eclipse.org/eclipse/updates/4.2</url>          
+		<properties>
+				<platform-version>[4.0,5.0)</platform-version>
+		</properties>
+  		<repositories>			
+			<repository><id>kepler</id><layout>p2</layout>
+				<url>http://download.eclipse.org/releases/kepler</url>
 			</repository>
 			<repository><id>orbit</id><layout>p2</layout>
 				<url>http://download.eclipse.org/tools/orbit/downloads/drops/updateSite</url>
 			</repository>
-			<repository><id>emfcompare2</id><layout>p2</layout>
-				<url>https://hudson.eclipse.org/hudson/view/Modeling/job/emf-compare-master/lastSuccessfulBuild/artifact/packaging/org.eclipse.emf.compare.update/target/repository/</url>
-			</repository>
 		</repositories>
 	</profile>
 	  </profiles>
diff --git a/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/java/JavaResourceFactoryTest.java b/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/java/JavaResourceFactoryTest.java
index 3e46b80..f3c395a 100644
--- a/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/java/JavaResourceFactoryTest.java
+++ b/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/java/JavaResourceFactoryTest.java
@@ -15,6 +15,8 @@
 import junit.framework.AssertionFailedError;
 import junit.framework.TestCase;
 
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.emf.common.util.EList;
@@ -43,8 +45,15 @@
 	protected void setUp() throws Exception {
 		super.setUp();
 		try {
+			// Deactivate the auto build to avoid problem of test before build is
+			// finish.
+			ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(false);
+			// Importing java project through an archive file
 			WorkspaceUtils.unzipAllProjects("org.eclipse.mylyn.docs.intent.client.ui.test",
 					"data/unit/java/java.example01.zip", new NullProgressMonitor());
+			// Launch a manual build and wait the end of the workspace build
+			ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD,
+					new NullProgressMonitor());
 		} catch (IOException e) {
 			AssertionFailedError assertionFailedError = new AssertionFailedError(
 					"Could not import java project in test workspace");
diff --git a/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/scenario/ExternalContentReferencesTest.java b/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/scenario/ExternalContentReferencesTest.java
index 95d6c6d..7c2552f 100644
--- a/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/scenario/ExternalContentReferencesTest.java
+++ b/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/scenario/ExternalContentReferencesTest.java
@@ -20,6 +20,7 @@
 import junit.framework.AssertionFailedError;
 
 import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.NullProgressMonitor;
@@ -409,8 +410,14 @@
 	 */
 	private void importJavaProject() {
 		try {
+			// Deactivate the auto build to avoid problem of test before build is
+			// finish.
+			ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(false);
 			WorkspaceUtils.unzipAllProjects("org.eclipse.mylyn.docs.intent.client.ui.test",
 					"data/unit/java/java.example01.zip", new NullProgressMonitor());
+			// Launch a manual build and wait the end of the workspace build
+			ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD,
+					new NullProgressMonitor());
 		} catch (IOException e) {
 			AssertionFailedError assertionFailedError = new AssertionFailedError(
 					"Could not import java project in test workspace");