0 Replies Latest reply on Oct 19, 2006 3:35 PM by Scott Stark

    jboss-head updated for vfs changes

    Scott Stark Master

      jboss5 trunk has been updated for VFS changes to the visitor recursion and isAttribute removal.

      Code that previously was using VisitorAttributes.setRecurseArchives(false):

       VisitorAttributes va = new VisitorAttributes();
       va.setRecurse(true);
       va.setLeavesOnly(true);
       va.setRecurseArchives(false);
       FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filter, va);
      


      Now needs to specify a recursion filter. To exclude known jar achive suffixes the following can be done:
       VisitorAttributes va = new VisitorAttributes();
       va.setLeavesOnly(true);
       SuffixesExcludeFilter noJars = new SuffixesExcludeFilter(JarUtils.getSuffixes());
       va.setRecurseFilter(noJars);
       FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filter, va);
      


      The server is booting fine with these changes. I'm still validating that there is no extra recursion/components being created because of these changes.

      The next refactoring I'm testing is the structural deployer changes to produce a StructuredMetaData object rather than DeploymentContexts.