xbn.programs
Class ReportPackageDependencies

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--xbn.programs.XBNStatic
              |
              +--xbn.programs.ReportPackageDependencies

public class ReportPackageDependencies
extends XBNStatic

An application to report all the packages dependended on by another set of packages. This uses Utility.getPackageDependencies() at its heart.

Source code:  ReportPackageDependencies.java.

Templates

Providing a specific set of templates to this application allows you to specifically customize the format of this report. If no templates are provided, a trivial format is used.

If templates are provided, they must be conform to these requirement exactly. Any formatting errors will generate a specific (and helpful) error message.

The templates I actually use for XBN Java, can be viewed by clicking on the name of any template. Here's the directory.

Template Required gaps Description
overall.tmpl all_dependency_lists The top level template that contains all other templates.
package.tmpl package_name
depends_on_section
depended_on_by_section
The package template that contains all below templates.
depends_on_section.tmpl all_depends_on_rows Used to fill package.tmpl.depends_on_section. Contains all depends-on rows. That is, the list of all packages on which this package depends.
depends_on_section_NOTHING.txt None. Not a template When this package depends on no others, then this text is used to fill package.tmpl.depends_on_section, instead of the depends_on_section.tmpl template.
depends_on_row.tmpl package_name A row, representing a single package that depends on this package. Used to fill depends_on_section.tmpl.all_depends_on_rows
depends_on_row_newline.txt None. Not a template The text to use as a newline. This is printed after every depends-on row, except the last.
depended_on_by_section.tmpl all_depended_on_by_rows Used to fill package.tmpl.depended_on_by_section. Contains all depends-on rows. That is, the list of all packages that depend on this package.
depended_on_by_section_NOTHING.txt None. Not a template When no other packages depend on this package, then this text is used to fill package.tmpl.depended_on_by_section, instead of the depended_on_by_section.tmpl template.
depended_on_by_row.tmpl package_name A row, representing a single package that is depended on by this package. Used to fill depended_on_by_section.tmpl.all_depended_on_by_rows
depended_on_by_row_newline.txt None. Not a template The text to use as a newline. This is printed after every depended-on-by row, except the last.


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
ReportPackageDependencies()
          Create a ReportPackageDependencies.
 
Method Summary
static void main(String[] as_cmdLineParams)
          Run the application.
 
Methods inherited from class xbn.programs.XBNStatic
throwAXS
 
Methods inherited from class xbn.XBNObject
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportPackageDependencies

public ReportPackageDependencies()

Create a ReportPackageDependencies. This constructor does nothing.

Method Detail

main

public static final void main(String[] as_cmdLineParams)

Run the application.




Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo