org.apache.tuscany.sca.cpp.tools.common
Class DirectoryTree

java.lang.Object
  extended byorg.apache.tuscany.sca.cpp.tools.common.DirectoryTree

public class DirectoryTree
extends java.lang.Object


Constructor Summary
DirectoryTree(FileActor actor, java.util.Set extensions)
           
 
Method Summary
static java.lang.String maybeAppendSeparator(java.lang.String name)
           
 void walkTree(java.io.File source, java.io.File target, int depth)
          Starts adding trace into the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryTree

public DirectoryTree(FileActor actor,
                     java.util.Set extensions)
Method Detail

walkTree

public void walkTree(java.io.File source,
                     java.io.File target,
                     int depth)
              throws java.lang.Exception
Starts adding trace into the given file. If the given file is a directory then this the starting directory and all code beneath and in this directory will be given trace.

Parameters:
source - - either the starting directory or one file to add trace to.
Throws:
java.lang.Exception

maybeAppendSeparator

public static java.lang.String maybeAppendSeparator(java.lang.String name)


Copyright 2005 The Apache Software Foundation and Copyright IBM Corp. 2005 All Rights Reserved