Changeset 25218 for gs2-extensions/open-office
- Timestamp:
- 2012-03-14T15:46:42+13:00 (12 years ago)
- Location:
- gs2-extensions/open-office/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/open-office/trunk/src/perllib/plugins/OpenOfficeConverter.pm
r25209 r25218 67 67 my $status = 0; 68 68 69 # The port that jodconverter uses to connect to soffice. 70 # We set this to 8100 (else jodconverter would have used 71 # 2002 as the port number, which can clash with some programs 72 # such as LogMeIn. Users can specify another port by setting 73 # the environment variable in setup.bat or <ext>-setup.pl. 74 if(!defined $ENV{'JODCONVERTER_PORT'}) { 75 $ENV{'JODCONVERTER_PORT'} = "8100"; # make this the same as the soffice_port, by default jodconverter would try 8100 76 } 77 69 # No more JODCONVERTER_PORT env var: the port that jodconverter uses is now the 70 # same as SOFFICE_PORT, because the 2 are meant to communicate on the same port. 71 # The default port that jodconverter expects OO to listen on is 8100, so we try that. 78 72 if ($ENV{'GSDLOS'} =~ m/^windows$/) { 79 73 if(!defined $ENV{'SOFFICE_HOST'}) { … … 81 75 } 82 76 if(!defined $ENV{'SOFFICE_PORT'}) { 83 $ENV{'SOFFICE_PORT'} = "8100"; # Default that jodconverter is 8100, and since this has to be the same, this best be 810077 $ENV{'SOFFICE_PORT'} = "8100"; 84 78 } 85 79 # important to have this set when the Greenstone server … … 264 258 } 265 259 260 #if($self->{'openoffice_port'} != $ENV{'SOFFICE_PORT'}) { # if the user changed it 261 #$ENV{'SOFFICE_PORT'} = $self->{'openoffice_port'}; 262 #} 263 266 264 # jodjar always assumes that soffice (officeHome) is in "C:\Prog Files\OpenOffice org 3" 267 265 # or "/opt/openoffice.org3" rather than checking for any user-defined SOFFICE_HOME var. 268 266 # Therefore, we run jodjar with the -Doffice.home flag explicitly set, instead of without. 269 # my $convert_cmd = "java -jar \"$jodjar\" --port $ENV{' JODCONVERTER_PORT'}";270 my $convert_cmd = "java -Doffice.home=\"".$office_short_path."\" -jar \"$jodjar\" --port $ ENV{'JODCONVERTER_PORT'}";267 # my $convert_cmd = "java -jar \"$jodjar\" --port $ENV{'SOFFICE_PORT'}"; 268 my $convert_cmd = "java -Doffice.home=\"".$office_short_path."\" -jar \"$jodjar\" --port $self->{'openoffice_port'}"; # --port $ENV{'SOFFICE_PORT'} 271 269 $convert_cmd .= " \"$source_file_full_path\" \"$target_file_path\""; 272 270 -
gs2-extensions/open-office/trunk/src/setup.bat
r23735 r25218 11 11 :: set SOFFICE_HOME=C:\Program Files\OpenOffice.org 3\program 12 12 :: set SOFFICE_HOST=localhost 13 :: set SOFFICE_PORT=8200 14 :: set JODCONVERTER_PORT=8100 13 :: set SOFFICE_PORT=8100 15 14 16 15
Note:
See TracChangeset
for help on using the changeset viewer.