SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-8
Properties File
Syntax of the Properties File
Follow these guidelines when creating a properties file and adding options to it:
•
Place one option setting per line in the properties file.
•
For each SQLJ translator option, use the sqlj. prefix:
sqlj.status=true
•
For each Java compiler option, use the compile. prefix (instead of -C):
compile.verbose
•
For each customizer option, use the profile. prefix (instead of -P) or the sqlj.
prefix:
profile.backup=true
•
For each SQL/MX compiler option, use the sqlmxcompile. prefix (instead of -M):
sqlmxcompile.v
•
Use the pound sign (#) to precede each line of a comment:
# Comment...
# Comment...
•
Follow the same rules for setting the values of options as you would on the SQLJ
command line. For more information, see Options on page 5-7 and Flags on
page 5-7.
Example of a Properties File
This example shows the contents of a properties file named myprops.properties:
Using a Properties File
To specify a properties file other than sqlj.properties, use the -props option on
the SQLJ command line, as this example shows:
java sqlj.tools.Sqlj -status=true -props=myprops.properties
-dir=/mydir MyProg.sqlj
When you specify the -props option, the SQLJ translator program reads the
properties file and places the option settings where you specified the -props option
on the command line. For example, if the myprops.properties file in the current
# Set the default catalog and schema
profile.catalog=cat
profile.schema=sch
# Allow missing database objects during translation
sqlj.missingSQLObject
# Enable line numbers in the class files
sqlj.linemap=true