What about the show/hide workspaces command in the Preferences page?  I think that lists all of the known workspaces.  Is that enough, or do you need something different?

No, I think its a different situation. Those workspaces seem to be the same in all situations.  What I need to know is what workspaces got into the Maps in the DailyProjectJavaFileMetric (as an Example).  Sometimes the workspaces that I need don't get in the map and thus they are not used in the calculations.

It turns out, that I think I just figured out that there is something wrong with the process of changing your workspace root. The problem disappears when restarting the server, but reappears when I change something in the workspace root (ie add another workspace root for another project).

I'm on the trail of the problem; hunting it down.

So far I think it has to do with something in the Workspace.isSubworkspace() method:

  /**
   * Returns true if the current workspace is contained in the passed workspace. If two workspaces
   * are equal it returns true.
   *
   * @param workspace  A workspace instance.
   * @return           True if contained within this workspace.
   */
  public boolean isSubWorkspace(Workspace workspace) {
    String trimmedPath = getTrimmedPath();
    String passedTrimmedPath = workspace.getTrimmedPath();
   
// Return false if there is no trimmed path to either of it. 
    if (trimmedPath == null || passedTrimmedPath == null ) {   
     
return false ;
    }

   
int parentLength = passedTrimmedPath.length();
    System.
out .println( "passedTrimmedPath: " + passedTrimmedPath + ", parentLength: " + parentLength);
   
if (trimmedPath.length() < parentLength) {
     
return false ;
    }
   
else {
      String cutWorkspace = trimmedPath.substring(0, parentLength);
      System.
out .println( "cutWorkspace: " + cutWorkspace);
      System.
out .println( "passedTrimmedPath: " + passedTrimmedPath);
     
return cutWorkspace.equalsIgnoreCase(passedTrimmedPath);
    }
  }

After adding another (irrelevant) workspace root, the cutWorkspace and passedTrimmedPath are not 'equal', because the cutWorkspace (whatever that is) is not the same as before adding the workspace root. Anyway, to make a long story short, I think there is a bug in calculating/creating this cutWorkspace.

I'll figure it out in 2 hours....... haha. just joking.

Thanks, Aaron

At 11:29 PM 2/18/2006, you wrote:
--On Saturday, February 18, 2006 10:48 PM -1000 Aaron Kagawa <[EMAIL PROTECTED]> wrote:

Ok, this is a complicated situation.

OK, understood.


So, part of my question/comment was that there should be a way to view
(in the web application) the collection of workspaces that are used to
run these analyses.

What about the show/hide workspaces command in the Preferences page?  I think that lists all of the known workspaces.  Is that enough, or do you need something different?

Cheers,
Philip




Reply via email to