continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r755049 - /continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java
Date Mon, 16 Mar 2009 23:46:15 GMT
Author: ctan
Date: Mon Mar 16 23:46:15 2009
New Revision: 755049

URL: http://svn.apache.org/viewvc?rev=755049&view=rev
Log:
[CONTINUUM-2043] returns the canonical form of the working directory

Modified:
    continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java

Modified: continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java?rev=755049&r1=755048&r2=755049&view=diff
==============================================================================
--- continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java
(original)
+++ continuum/trunk/continuum-buildagent/continuum-buildagent-core/src/main/java/org/apache/continuum/buildagent/configuration/DefaultBuildAgentConfigurationService.java
Mon Mar 16 23:46:15 2009
@@ -63,7 +63,17 @@
 
     public File getWorkingDirectory( int projectId )
     {
-        return new File( generalBuildAgentConfiguration.getWorkingDirectory(), Integer.toString(
projectId ) );
+        File dir = new File( generalBuildAgentConfiguration.getWorkingDirectory(), Integer.toString(
projectId ) );
+
+        try
+        {
+            dir = dir.getCanonicalFile();
+        }
+        catch ( IOException e )
+        {
+        }
+
+        return dir;
     }
 
     public String getBuildOutput( int projectId )



Mime
View raw message