Revision 4212
Added by daigle over 15 years ago
MetaCatUtil.java | ||
---|---|---|
81 | 81 |
} |
82 | 82 |
|
83 | 83 |
try { |
84 |
separator = PropertyService.getProperty("accNumSeparator").charAt(0); |
|
84 |
separator = PropertyService.getProperty("document.accNumSeparator").charAt(0);
|
|
85 | 85 |
} catch (PropertyNotFoundException pnfe) { |
86 | 86 |
logMetacat.error("Could not retrieve account number separator. " |
87 | 87 |
+ "Separator set to '.' : " + pnfe.getMessage()); |
... | ... | |
722 | 722 |
|
723 | 723 |
/** |
724 | 724 |
* Writes debug information into a file. In metacat.properties, if property |
725 |
* writeDebugToFile is set to true, the debug information will be written to |
|
726 |
* debug file, which value is the property debugOutputFile in |
|
725 |
* application.writeDebugToFile is set to true, the debug information will be written to
|
|
726 |
* debug file, which value is the property application.debugOutputFile in
|
|
727 | 727 |
* metacat.properties. |
728 | 728 |
* |
729 | 729 |
*/ |
730 | 730 |
public static void writeDebugToFile(String debugInfo) { |
731 | 731 |
String debug = "false"; |
732 | 732 |
try { |
733 |
debug = PropertyService.getProperty("writeDebugToFile"); |
|
733 |
debug = PropertyService.getProperty("application.writeDebugToFile");
|
|
734 | 734 |
if (debug != null && debug.equalsIgnoreCase("true")) { |
735 | 735 |
File outputFile = |
736 |
new File(PropertyService.getProperty("debugOutputFile")); |
|
736 |
new File(PropertyService.getProperty("application.debugOutputFile"));
|
|
737 | 737 |
FileOutputStream fos = new FileOutputStream(outputFile, true); |
738 | 738 |
PrintWriter pw = new PrintWriter(fos); |
739 | 739 |
pw.println(debugInfo); |
... | ... | |
765 | 765 |
public static void writeDebugToDelimiteredFile(String debugInfo, boolean newLine) { |
766 | 766 |
String debug = "false"; |
767 | 767 |
try { |
768 |
debug = PropertyService.getProperty("writeDebugToFile"); |
|
768 |
debug = PropertyService.getProperty("application.writeDebugToFile");
|
|
769 | 769 |
if (debug != null && debug.equalsIgnoreCase("true")) { |
770 | 770 |
File outputFile = new File(PropertyService |
771 |
.getProperty("delimiteredOutputFile")); |
|
771 |
.getProperty("application.delimiteredOutputFile"));
|
|
772 | 772 |
FileOutputStream fos = new FileOutputStream(outputFile, true); |
773 | 773 |
PrintWriter pw = new PrintWriter(fos); |
774 | 774 |
if (newLine) { |
Also available in: Unified diff
Continue to qualify property names