Use the newly introduced COMMON_PARENT variable to specify correctly the dirPath. BLD200210140100
authormentlicher@netbeans.org
Sun, 13 Oct 2002 12:48:40 +0000
changeset 2671966862df058e
parent 2670 54b28f14b47a
child 2672 70708e8b4fb9
Use the newly introduced COMMON_PARENT variable to specify correctly the dirPath.
vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java
     1.1 --- a/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java	Fri Oct 11 15:20:12 2002 +0000
     1.2 +++ b/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/list/CvsListRecursiveCommand.java	Sun Oct 13 12:48:40 2002 +0000
     1.3 @@ -96,7 +96,12 @@
     1.4              this.dir = ""; // NOI18N
     1.5              //vars.put("DIR","."); // NOI18N
     1.6          }
     1.7 -        this.dirPath = new String(dir.replace(java.io.File.separatorChar, '/')); // I have to be sure that I make new object
     1.8 +        String commonParent = (String) vars.get("COMMON_PARENT");
     1.9 +        if (commonParent != null && commonParent.length() > 0) {
    1.10 +            this.dirPath = new String(commonParent.replace(java.io.File.separatorChar, '/') + "/" + this.dir.replace(java.io.File.separatorChar, '/'));
    1.11 +        } else {
    1.12 +            this.dirPath = new String(dir.replace(java.io.File.separatorChar, '/')); // I have to be sure that I make new object
    1.13 +        }
    1.14          String module = (String) vars.get("MODULE"); // NOI18N
    1.15          D.deb("rootDir = "+rootDir+", module = "+module+", dir = "+dir); // NOI18N
    1.16          if (dir.equals("")) { // NOI18N