Changeset 21239

Show
Ignore:
Timestamp:
02.12.2009 17:10:30 (10 years ago)
Author:
kjdon
Message:

check if tmp dir there before creating it

Files:
1 modified

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