Allow the specification of packages to exclude from the output via

-Dexclude=pkg:pkg:...


git-svn-id: https://samskivert.googlecode.com/svn/trunk@210 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-07-24 21:25:46 +00:00
parent 3bfa1a6a6b
commit 6dcdfbd7bc
@@ -1,5 +1,5 @@
//
// $Id: HierarchyVisualizer.java,v 1.8 2001/07/24 18:07:35 mdb Exp $
// $Id: HierarchyVisualizer.java,v 1.9 2001/07/24 21:25:46 mdb Exp $
package com.samskivert.viztool.viz;
@@ -54,6 +54,13 @@ public class HierarchyVisualizer implements Printable
pkgset.add(ChainUtil.pkgFromClass((String)iter.next()));
}
// remove the packages on our exclusion list
String expkg = System.getProperty("exclude");
StringTokenizer tok = new StringTokenizer(expkg, ":");
while (tok.hasMoreTokens()) {
pkgset.remove(tok.nextToken());
}
// sort our package names
_packages = new String[pkgset.size()];
iter = pkgset.iterator();