Changeset 10374


Ignore:
Timestamp:
2005-08-01T14:31:31+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now uploads collection images to the server, if using remote building.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r10345 r10374  
    4444import org.greenstone.gatherer.gui.OpenCollectionDialog;
    4545import org.greenstone.gatherer.gui.WarningDialog;
     46import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    4647import org.greenstone.gatherer.util.StaticStrings;
    4748
     
    500501                // Copy the file
    501502                try {
    502                 Gatherer.f_man.getQueue().copyFile(file, new File(images_folder, file.getName()), null);
     503                File collection_image_file = new File(images_folder, file.getName());
     504                Gatherer.f_man.getQueue().copyFile(file, collection_image_file, null);
     505
     506                // If we're using a remote Greenstone server, upload the image
     507                if (Gatherer.isGsdlRemote) {
     508                    RemoteGreenstoneServer.uploadCollectionFile(collection_image_file);
     509                }
    503510                }
    504511                catch(Exception exception) {
  • trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r10367 r10374  
    128128    static final public String HTM_FILE_EXTENSION                         = ".htm";
    129129    static final public String IDENTIFIER_VALUE                           = "identifier";
    130     static final public String IMAGES_FOLDER                              = "images";
    131     static final public String IMAGES_PATH_RELATIVE_TO_COLLECTION_PREFIX  = "_httpcollection_/images/";
    132130    static final public String IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX        = "_httpprefix_/collect/<col_name>/images/";
    133131    static final public String IMPORT_FOLDER                              = "import";
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r10364 r10374  
    7777    static final public String GLI_EXTENSION = ".col";
    7878
    79     /** Definition of an important directory name, in this case the images directory for the collection. */
    80     static final public String IMAGES_DIR = "images" + File.separator;
    8179    /** Definition of an important directory name, in this case the import directory for the collection. */
    8280    static final public String IMPORT_DIR = "import" + File.separator;
Note: See TracChangeset for help on using the changeset viewer.