Changeset 18394 for gsdl

Show
Ignore:
Timestamp:
15.01.2009 16:24:45 (11 years ago)
Author:
ak19
Message:

Instead of returning the string Success, the main method now returns the new tailname of the generated html file. This is required when using the remote greenstone server, since the uploaded files once replaced need not have the same names anymore (can be url encoded or base 64 encoded, and spaces replaced with underscores), which means the client will need to know the new names of the files to download.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/replace_srcdoc_with_html.pl

    r15886 r18394  
    218218    # need this output statement here, as GShell.java's runRemote() sets status to CANCELLED 
    219219    # if there is no output! (Therefore, it only had this adverse affect when running GSDL remotely)  
    220     print STDOUT "success\n"; 
     220    # Do something useful with it: return the new filename without extension, used by remote GS server 
     221    print STDOUT "$tmp_name\n";  
    221222} 
    222223&main(@ARGV);