Changeset 15147

Show
Ignore:
Timestamp:
28.03.2008 15:58:17 (11 years ago)
Author:
shaoqun
Message:

 file:///, which is added in BasPlugout?.pm for java 1.6 has to be removed before checking the existence of a file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/java/org/nzdl/gsdl/ApplyXSLT.java

    r13473 r15147  
    299299        if (args[i].equals("-m") && i+1 < args.length && !args[i+1].startsWith("-")){ 
    300300         mapping_file = args[++i]; 
    301          checkFile(mapping_file); 
     301             checkFile(mapping_file.replaceAll("file:///","")); 
    302302        } 
    303303        else if (args[i].equals("-x") && i+1 < args.length && !args[i+1].startsWith("-")){ 
    304304               xml_file = args[++i];  
    305                checkFile(xml_file); 
     305               checkFile(xml_file.replaceAll("file:///","")); 
    306306        } 
    307307        else if(args[i].equals("-t") && i+1 < args.length && !args[i+1].startsWith("-")){ 
    308308                xsl_file = args[++i]; 
    309         checkFile(xsl_file);  
     309             checkFile( xsl_file.replaceAll("file:///",""));  
    310310        } 
    311311            else if(args[i].equals("-o") && i+1 < args.length && !args[i+1].startsWith("-")){