Class FindPackages


  • public class FindPackages
    extends java.lang.Object
    Look for class files under a directory and return package names.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Summary

      Constructors 
      Constructor Description
      FindPackages()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String findPackages​(java.io.File ptII, ExecuteCommands executeCommands)
      Look for class files under a directory and return package names.
      static void main​(java.lang.String[] args)
      Print out any packages found under the directory named by the first argument.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FindPackages

        public FindPackages()
    • Method Detail

      • findPackages

        public static java.lang.String findPackages​(java.io.File ptII,
                                                    ExecuteCommands executeCommands)
        Look for class files under a directory and return package names. Directories that end in adm, CVS and vendors are skipped.
        Parameters:
        ptII - The File under which to look for classes.
        executeCommands - The ExecuteCommands object in which to report status. If null, then print to standard out.
        Returns:
        A string of space separated package names, relative to the File named by the ptII argument.
      • main

        public static void main​(java.lang.String[] args)
        Print out any packages found under the directory named by the first argument.

        Usage: java -classpath $PTII ptolemy.vergil.actor.FindPackages $PTII

        Parameters:
        args - An array of Strings, where the first argument is a string that names the directory under which we search for packages.