Changeset 15140

Show
Ignore:
Timestamp:
28.03.2008 11:04:04 (11 years ago)
Author:
shaoqun
Message:

java 1.6 doesn't allow direct drive name like c: when loading xml files using the xalan parser, so add  file:/// before a drive name . This solution works fine with java 1.4 and 1.5

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugouts/BasPlugout.pm

    r14969 r15140  
    651651    my $java_class_path =  &util::filename_cat ($ENV{'GSDLHOME'},"bin","java"); 
    652652 
     653    my $mapping_file_path = ""; 
     654 
    653655    if ($ENV{'GSDLOS'} eq "windows"){ 
    654656    $java_class_path .=";".&util::filename_cat ($ENV{'GSDLHOME'},"bin","java","xalan.jar"); 
     657    $xslt_file = "\"file:///".$xslt_file."\""; 
     658    $mapping_file_path = "\"file:///"; 
    655659    } 
    656660    else{ 
     
    660664 
    661665    $java_class_path = "\"".$java_class_path."\""; 
    662  
    663     $xslt_file = "\"".$xslt_file."\""; 
    664666 
    665667    my $cmd = "| java -cp $java_class_path org.nzdl.gsdl.ApplyXSLT -t $xslt_file ";