Revision 1773
Added by Jing Tao over 21 years ago
src/edu/ucsb/nceas/metacat/EmlSAXHandler.java | ||
---|---|---|
2099 | 2099 |
{ |
2100 | 2100 |
FileWriter writer = null; |
2101 | 2101 |
String path = MetaCatUtil.getOption("inlinedatafilepath"); |
2102 |
File inlineDataDirectory = new File(path); |
|
2103 |
File newFile = new File(inlineDataDirectory, fileName); |
|
2102 |
/*File inlineDataDirectory = new File(path); |
|
2103 |
File newFile = new File(inlineDataDirectory, fileName);*/ |
|
2104 |
String newFile = path + "/" + fileName; |
|
2105 |
MetaCatUtil.debugMessage("inline file name: "+newFile, 30); |
|
2104 | 2106 |
try |
2105 | 2107 |
{ |
2106 | 2108 |
// true means append |
Also available in: Unified diff
JAVA 1.3 doesn't support this FileWriter(File fileName, boolean append). But 1.4 does.
Change to FileWriter(String fileName, boolean append). Both 1.3 and 1.4 support.