fix complete bash of base file
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 15:12:04 +0000 (17:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 15:12:04 +0000 (17:12 +0200)
src/net/pterodactylus/jsite/project/Project.java

index 4c1a368..0e96b9c 100644 (file)
@@ -419,7 +419,7 @@ public class Project extends AbstractBean {
                                completePath.insert(0, currentProjectFile.getName()).insert(0, File.separatorChar);
                                currentProjectFile = currentProjectFile.parentProjectFile;
                        }
-                       return completePath.toString();
+                       return (completePath.length() > 0) ? completePath.substring(1) : "";
                }
 
                /**