Running Abra

Running Abra is simple, when you have built it as described in the previous section. Go here for the format of the map-file.

Command-line option summary:

abra [options] [map-file [map-file2 [map-file3] ...]]
Options:	
 -outdir <directory>
 -noclasses (turnoff class generation)
 -schema <file-name> (generate schema to the specified schema-file)
 -verify (just verify XML, generate nothing)
 -factories (make database factories using Java->sql map)
 -procs (use stored procedures/functions instead of dyn SQL) 
 -validation generate validators for each class
 -props <prop-file> use this prop file for everything
 -verbose to get messages about what is being generated
 -mega to get every single message (a lot) about what is being generated
 -supress to print only fatal errors/ nothing else
 -help to get this print out

Examples

abra foo.xml

runs Abra using the foo.xml file in the current directory, generating classes from this directory.

ant -factories -outdir src foo.xml

runs Abra using the foo.xml map-file in the current directory, generating classes and AbstractFactories from the root $PWD/src.

ant -factories -procs -validation -verbose -outdir java -schema schema/foo.sql foo.xml bar.xml

runs Abra using the foo.xml, bar.xml mapfiles. The output classes, validators, and factories have a root directory of $PWD/java. A schema file to create the relational tables is $PWD/schema/foo.sql and stored procedures are used by generated factories to insert and update are found in $PWD/schema/foo_procs.sql. Verbose printouts are on.


Copyright © 2000,2001,2002 Paul Bethe & Richie Bielak All rights Reserved.