Changeset 22884

Show
Ignore:
Timestamp:
08.09.2010 13:28:10 (9 years ago)
Author:
kjdon
Message:

convert the files in the collection's tmp folder, not the main gsdl one. and use a timestamped subfolder as may end up with files having the same names

Files:
1 modified

Legend:

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

    r22827 r22884  
    189189    } 
    190190    else { 
    191     # this is in gsdl/tmp. get a tmp filename in collection instead??? 
    192     $target_file_path = &util::get_tmp_filename($target_file_type); 
     191    $target_file_path = &util::get_timestamped_tmp_filename_in_collection($source_file_full_path, $target_file_type); 
    193192    push(@{$self->{'ootmp_file_paths'}}, $target_file_path); 
    194193    } 
    195194 
    196195    # Generate and run the convert command 
     196 
    197197    my $gextoo_home = $ENV{'GEXT_OPENOFFICE'}; 
    198198    my $jodjar = &util::filename_cat($gextoo_home,"lib","java","jodconverter.jar");