You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2014/06/18 16:25:40 UTC

svn commit: r1603462 - /sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java

Author: stefanegli
Date: Wed Jun 18 14:25:40 2014
New Revision: 1603462

URL: http://svn.apache.org/r1603462
Log:
SLING-3651 : buglet fix introduced by SLING-3651 : result of getSyncDirectoryFile must be an absolute file, thus use the project.getLocation().toFile() - otherwise it ends up as relative file to the eclipse app start directory

Modified:
    sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java

Modified: sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java?rev=1603462&r1=1603461&r2=1603462&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java (original)
+++ sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/ProjectUtil.java Wed Jun 18 14:25:40 2014
@@ -90,7 +90,7 @@ public abstract class ProjectUtil {
     }
     
     public static File getSyncDirectoryFile(IProject project) {
-    	return getSyncDirectoryValue(project).toFile();
+        return new File(project.getLocation().toFile(), getSyncDirectoryValue(project).toString());
     }
 
     public static IPath getSyncDirectoryFullPath(IProject project) {