Changeset 21239 for gs3-extensions


Ignore:
Timestamp:
12/02/09 17:10:30 (11 years ago)
Author:
kjdon
Message:

check if tmp dir there before creating it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/pharos/trunk/cmdline-api-srcpack/bin/script/pharos-imageis-add.pl

    r21214 r21239  
    8383    my $tmp_dir = &util::get_toplevel_tmp_dir();
    8484    $tmp_dir = &util::filename_cat($tmp_dir,"pharos-imageis");
    85     &util::mk_dir($tmp_dir);
     85    if (! -d $tmp_dir) {
     86    &util::mk_dir($tmp_dir);
     87    }
    8688    my $dstfilename=&util::filename_cat($tmp_dir,$dstfile);
    8789   
     
    124126    my $jar_filename = &util::filename_cat($ENV{'IMAGEISHOME'},"ImageIS.jar");
    125127    my $java_cmd = "java -jar \"$jar_filename\" \"$add_this_filename\"";
    126 
     128    #my $java_cmd = "java -cp /research/kjdon/home/pharos-greenstone3/ext/pharos/decompiled:/research/kjdon/home/pharos-greenstone3/ext/pharos/cmdline-api-srcpack/ImageIS.jar:/research/kjdon/home/pharos-greenstone3/ext/pharos MyImageIS $add_this_filename";
    127129    print "Ingesting $dstfile\n";
    128130   
Note: See TracChangeset for help on using the changeset viewer.