next up previous contents index
Next: Generating a report Up: Metamata Audit Previous: Parameters   Contents   Index

Nested elements

jvmarg

Additional parameters may be passed to the VM via nested <jvmarg> attributes. <jvmarg> allows all attributes described in Command line arguments.

You can avoid using the <jvmarg> by adding these empty entries to metamata.properties located at ${metamata.home}/bin

metamata.classpath=
metamata.sourcepath=
metamata.baseclasspath=

classpath

Sets class path (also source path unless one explicitly set). Overrides METAPATH/CLASSPATH environment variables. The classpath element represents a PATH like structure.

sourcepath

Sets source path. Overrides the SOURCEPATH environment variable. The sourcepath element represents a PATH like structure.

sourcepath

Sets the search path to use as the use domain when looking for unused global declarations. The searchpath element represents a PATH like structure.

fileset

Sets the Java files to audit via a FILESET structure. Whatever the filter is, only the files that ends with .java will be included for processing. Note that the base directory used for the fileset MUST be the root of the source files otherwise package names deduced from the file path will be incorrect.

Example

  <maudit tofile="c:/metamata/examples/auditexamples/audit.xml"
          metamatahome="c:/metamata" fix="yes">
    <classpath>
      <pathelement location="c:/metamata/examples/auditexamples"/>
    </classpath>
    <sourcepath>
      <pathelement location="c:/metamata/examples/auditexamples"/>
    </sourcepath>
    <fileset dir="c:/metamata/examples/auditexamples">
        <include name="*.java"/>
    </fileset>
  </maudit>
This invokes Metamata Audit installed in c:/metamata on the audit examples and fix automatically the fixable errors.


next up previous contents index
Next: Generating a report Up: Metamata Audit Previous: Parameters   Contents   Index
Andrew Marlow 2003-07-08