Ignore:
Timestamp:
2011-02-23T19:21:25+13:00 (13 years ago)
Author:
ak19
Message:

Second (final) part of allowing user to set which port Jodconverter uses to communicate with soffice. By default this is set to 2002 internal to jodconverter, but it conflicts with programs (like logmein) which use this port, so that jodconverter can fail unless the user is given the ability to change the port it uses.

File:
1 edited

Legend:

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

    r23731 r23735  
    7171        if(!defined $ENV{'SOFFICE_PORT'}) {
    7272            $ENV{'SOFFICE_PORT'} = "8200";
     73        }
     74        if(!defined $ENV{'JODCONVERTER_PORT'}) {
     75            $ENV{'JODCONVERTER_PORT'} = "8100";
    7376        }
    7477        # important to have this set when the Greenstone server
     
    226229#    my $convert_cmd = "java -Doffice.home=\"".$office_short_path."\" -jar \"$jodjar\"";
    227230
    228     my $convert_cmd = "java -jar \"$jodjar\"";
     231    my $convert_cmd = "java -jar \"$jodjar\" --port $ENV{'JODCONVERTER_PORT'}";
    229232    $convert_cmd .= " \"$source_file_full_path\" \"$target_file_path\"";
    230233
Note: See TracChangeset for help on using the changeset viewer.