Ignore:
Timestamp:
2004-01-27T16:35:34+13:00 (20 years ago)
Author:
jmt12
Message:

More modifications to mirroring including testing for a valid version of Wget (and complaining if its missing or it is old) and rearranging buttons on the GProgressBar

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

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/AppendLineOnlyFileDocument.java

    r6539 r6622  
    895895    }
    896896
    897     /** Listens for actions on the read button, and if detected creates a new ReadTask to test the document. */
     897    /** Listens for actions on the read button, and if detected creates a new ReadTask to test the document.
     898     * @author John Thompson, Greenstone Project, New Zealand Digital Library, University of Waikato
     899     * @version 2.41 final
     900     */
    898901    static private class ReadButtonListener
    899902    implements ActionListener {
     
    918921    }
    919922
    920     /** This threaded task opens a large document, aptly named 'big.txt', and then bombards the document object we are testing with lines from the file. This file should be several megs (such as Alice or TREC) to fully test functionality, thread conditions etc. */
     923    /** This threaded task opens a large document, aptly named 'big.txt', and then bombards the document object we are testing with lines from the file. This file should be several megs (such as Alice or TREC) to fully test functionality, thread conditions etc.
     924     * @author John Thompson, Greenstone Project, New Zealand Digital Library, University of Waikato
     925     * @version 2.41 final
     926     */
    921927    static private class ReadTask
    922928    extends Thread {
  • trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r6582 r6622  
    140140    static final public String LANGUAGE_DEFAULT_STR                       = "defaultlanguage";
    141141    static final public String LANGUAGE_STR                               = "language";
    142     static final public String LANGUAGEDEPENDANT_ATTRIBUTE                = "language_dependant";
     142    static final public String LANGUAGEDEPENDANT_ATTRIBUTE                = "language_dependent";
    143143    static final public String LANGUAGES_ELEMENT                          = "Languages";
    144144    static final public String LANGUAGES_STR                              = "languages";
     
    167167    static final public String MGPP_ATTRIBUTE                             = "mgpp_enabled";
    168168    static final public String MINUS_CHARACTER                            = "-";
     169    static final public String MIRROR_ARGUMENT                            = "-mirror";
    169170    static final public String MODE_STR                                   = "Mode: ";
    170171    static final public String MODEGLI_ELEMENT                            = "ModeGLI";
     
    175176    static final public String NEWLINE_ELEMENT                            = "NewLine";
    176177    static final public String NO_LOAD_ARGUMENT                           = "-no_load";
     178    static final public String NO_WGET_STR                                = "NoWGet";
    177179    static final public String ONE_CHARACTER                              = "1";
    178180    static final public String OPEN_PARENTHESIS_CHARACTER                 = "(";
     
    232234    static final public String VALUE_ATTRIBUTE                            = "value";
    233235    static final public String VALUE_TREE_ATTRIBUTE                       = "remember_values";
    234     static final public String WIN_9X_OPEN_COMMAND = "command.com /c start \"%1\"";
    235     static final public String WIN_OPEN_COMMAND = "cmd.exe /c start \"\" \"%1\"";
     236    static final public String WGET_ARGUMENT                              = "-wget";
     237    static final public String WGET_OLD_STR                               = "<WGet1.9";
     238    static final public String WGET_STR                                   = "WGet1.9";
     239    static final public String WIN_9X_OPEN_COMMAND                        = "command.com /c start \"%1\"";
     240    static final public String WIN_OPEN_COMMAND                           = "cmd.exe /c start \"\" \"%1\"";
     241    static final public String WORKFLOW_MIRROR                            = "workflow.mirror";
    236242    static final public String YES_STR                                    = "yes";
    237243    static final public String ZERO_CHARACTER                             = "0";
  • trunk/gli/src/org/greenstone/gatherer/util/SynchronizedTreeModelTools.java

    r6212 r6622  
    4242    }
    4343
    44     static final public Runnable insertNodeInto(final DefaultTreeModel model, final MutableTreeNode parent, final MutableTreeNode target_node, boolean wait_allowed) {
     44    static final public Runnable insertNodeInto(final DefaultTreeModel model, final MutableTreeNode parent, final MutableTreeNode target_node, final boolean wait_allowed) {
    4545    final Runnable doInsertNodeInto = new Runnable() {
    4646        public void run() {
    4747            ///ystem.err.print("Running task... ");
     48            Gatherer.println("insertNodeInto(" + model + ", " + parent + ", " + target_node + ", " + wait_allowed);
    4849            int index = -1;
    4950            int pos = 0;
Note: See TracChangeset for help on using the changeset viewer.