You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/10/06 00:15:37 UTC

svn commit: r822053 - /labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java

Author: simoneg
Date: Mon Oct  5 22:15:37 2009
New Revision: 822053

URL: http://svn.apache.org/viewvc?rev=822053&view=rev
Log:
LABS-398 : call build to setup linked source folders

Modified:
    labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java

Modified: labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java?rev=822053&r1=822052&r2=822053&view=diff
==============================================================================
--- labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java (original)
+++ labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/basics/DownloadSourcesJob.java Mon Oct  5 22:15:37 2009
@@ -11,6 +11,8 @@
 import org.apache.maven.execution.DefaultMavenExecutionRequest;
 import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.monitor.event.EventMonitor;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
@@ -66,8 +68,14 @@
 				
 				public void endEvent(String arg0, String arg1, long arg2) {
 					MLog.debug("End event " + arg0 + "  ,  " + arg1 + "  , " + arg2);
-					MLog.log("Calling setupProjectJob from DownloadSourcesJob");
-					MagmaPDEUtils.setupProjectJob(mavenProject.getProject(), false);
+					MLog.log("Calling rebuild from DownloadSourcesJob");
+					try {
+						// TODO this should make some checks before calling build
+						// TODO build should be ran in a separate job
+						mavenProject.getProject().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
+					} catch (CoreException e) {
+						MLog.exception(e, "Error launching rebuild after download sources completition");
+					}
 				}
 			});
 			myemb.execute(req);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org