You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by tr...@apache.org on 2005/07/08 15:14:57 UTC
svn commit: r209760 -
/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java
Author: trygvis
Date: Fri Jul 8 06:14:55 2005
New Revision: 209760
URL: http://svn.apache.org/viewcvs?rev=209760&view=rev
Log:
o Removing unused code.
Modified:
maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java
Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java?rev=209760&r1=209759&r2=209760&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java (original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/CheckOutTaskExecutor.java Fri Jul 8 06:14:55 2005
@@ -67,63 +67,5 @@
{
throw new TaskExecutionException( "Error checking out project.", e );
}
-
- // TODO: Replace with a exection of the "check out project" action
-/*
- ContinuumProject project;
-
- try
- {
- project = store.getProject( projectId );
- }
- catch ( ContinuumStoreException e )
- {
- throw new TaskExecutionException( "Error while reading the project from the store.", e );
- }
-
- CheckOutScmResult result = null;
-
- String errorMessage = null;
-
- Throwable exception = null;
-
- try
- {
- result = scm.checkOut( project, workingDirectory );
- }
- catch( Throwable e )
- {
- // TODO: Dissect the scm exception to be able to give better feedback
- Throwable cause = e.getCause();
-
- if ( cause instanceof NoSuchScmProviderException )
- {
- errorMessage = cause.getMessage();
- }
- else
- {
- errorMessage = "";
-
- exception = e;
- }
- }
-
- try
- {
- project = store.getProject( projectId );
-
- project.setCheckOutScmResult( result );
-
- project.setCheckOutErrorMessage( errorMessage );
-
- project.setCheckOutErrorException( AbstractContinuumStore.throwableToString( exception ) );
-
- store.updateProject( project );
- }
- catch ( ContinuumStoreException e )
- {
- throw new TaskExecutionException( "Error while storing the check out result.", e );
- }
-*/
}
}