continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r766977 - /continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Tue, 21 Apr 2009 04:58:36 GMT
Author: brett
Date: Tue Apr 21 04:58:35 2009
New Revision: 766977

URL: http://svn.apache.org/viewvc?rev=766977&view=rev
Log:
[CONTINUUM-2184] use the configured working directory instead of a default for some internal
uses

Modified:
    continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=766977&r1=766976&r2=766977&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Tue Apr 21 04:58:35 2009
@@ -208,11 +208,6 @@
     private ContinuumReleaseManager releaseManager;
 
     /**
-     * @plexus.configuration default-value="${plexus.home}/temp"
-     */
-    private String workingDirectory;
-
-    /**
      * @plexus.requirement
      */
     private WorkingDirectoryService workingDirectoryService;
@@ -2401,25 +2396,6 @@
     {
         log.info( "Initializing Continuum." );
 
-        File wdFile = new File( workingDirectory );
-
-        if ( wdFile.exists() )
-        {
-            if ( !wdFile.isDirectory() )
-            {
-                throw new InitializationException(
-                    "The specified working directory isn't a directory: " + "'" + wdFile.getAbsolutePath()
+ "'." );
-            }
-        }
-        else
-        {
-            if ( !wdFile.mkdirs() )
-            {
-                throw new InitializationException(
-                    "Could not making the working directory: " + "'" + wdFile.getAbsolutePath()
+ "'." );
-            }
-        }
-
         log.info( "Showing all groups:" );
         try
         {
@@ -2773,7 +2749,7 @@
 
     public String getWorkingDirectory()
     {
-        return workingDirectory;
+        return configurationService.getWorkingDirectory().getAbsolutePath();
     }
 
     public Project getProjectWithCheckoutResult( int projectId )



Mime
View raw message