Changeset 24811 for main/trunk/gli/src


Ignore:
Timestamp:
2011-11-09T21:41:57+13:00 (12 years ago)
Author:
ak19
Message:

The message that gets displayed on GLI startup if the PDFBox extension is not present now links to the trunk version unless GLI's PROGRAM_VERSION variable is other than trunk (and is therefore a release number). In this case, the URL in the message will point to the tags early for that release number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r24604 r24811  
    7979    /** The current version of the GLI.
    8080        * Note: the gs3-release-maker relies on this variable being declared
    81         * in a line which maches this java regex:
     81        * in a line which matches this java regex:
    8282        * ^(.*)String\s*PROGRAM_VERSION\s*=\s*"trunk";
    8383        * If change the declaration and it no longer matches the regex, please
     
    13141314        /** Prints a message informing the user where they can get PDFBox from to process PDF files of v1.5 and greater */
    13151315    static private void missingPDFBox(String zipExtension, String extFolder) {
    1316     WarningDialog dialog = new WarningDialog("warning.MissingPDFBox", Dictionary.get("MissingPDFBox.Title"), Dictionary.get("MissingPDFBox.Message", new String[]{zipExtension, extFolder}), null, false);
     1316    // point to the correct version of the PDFBox extension for this Greenstone release
     1317    String releaseTag = "";
     1318    if(!PROGRAM_VERSION.equals("trunk")) { // assume it's a release version
     1319        releaseTag = "main/tags/"+PROGRAM_VERSION+"/";
     1320    }
     1321
     1322    WarningDialog dialog = new WarningDialog("warning.MissingPDFBox", Dictionary.get("MissingPDFBox.Title"), Dictionary.get("MissingPDFBox.Message", new String[]{releaseTag, zipExtension, extFolder}), null, false);
    13171323        dialog.display();
    13181324        dialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.