Changeset 24104

Show
Ignore:
Timestamp:
31.05.2011 16:57:13 (8 years ago)
Author:
ak19
Message:

OpenOfficeConverter? needs to have the -Doffice.home flag set in order to always find the soffice program (else it assumes it's installed in a default locaton that turns out to not be the case on a 64 bit Win 7 machine

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office/trunk/src/perllib/plugins/OpenOfficeConverter.pm

    r23738 r24104  
    232232#    into the command to launch jodconverter so that, when using the remote GS server 
    233233#    on Windows, jodconverter can find the openoffice installation:  
    234 #    my $office_short_path = Win32::GetShortPathName($ENV{'SOFFICE_HOME'}); 
    235 #    my $convert_cmd = "java -Doffice.home=\"".$office_short_path."\" -jar \"$jodjar\"";  
    236  
    237     my $convert_cmd = "java -jar \"$jodjar\" --port $ENV{'JODCONVERTER_PORT'}"; 
     234    my $office_short_path = Win32::GetShortPathName($ENV{'SOFFICE_HOME'}); 
     235    my $convert_cmd = "java -Doffice.home=\"".$office_short_path."\" -jar \"$jodjar\" --port $ENV{'JODCONVERTER_PORT'}";  
     236 
     237    # commented out the following line since jodjar always assumes that soffice  
     238    # is in C:\Prog Files\OpenOffice org 3 rather than checking for any SOFFICE var 
     239    # the user may have set. So need to run with the -Doffice.home flag that's set above 
     240    # rather than run without it as was being done below. 
     241#    my $convert_cmd = "java -jar \"$jodjar\" --port $ENV{'JODCONVERTER_PORT'}"; 
    238242    $convert_cmd .= " \"$source_file_full_path\" \"$target_file_path\""; 
    239243