Skip to content

Commit

Permalink
Merge pull request #5 from MesquiteProject/development
Browse files Browse the repository at this point in the history
Update notices
  • Loading branch information
DMaddison authored Jan 1, 2017
2 parents d4c0082 + 8d59deb commit 00e9a2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* Mesquite.cartographer source code. Copyright 2008-2009 D. Maddison and W. Maddison. Version 1.3, June 2008.Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code. The commenting leaves much to be desired. Please approach this source code with the spirit of helping out.Perhaps with your help we can be more than a few, and make Mesquite better.Mesquite is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.Mesquite's web site is http://mesquiteproject.orgThis source code and its compiled class files are free and modifiable under the terms of GNU Lesser General Public License. (http://www.gnu.org/copyleft/lesser.html)*/package mesquite.cartographer.aCartographerIntro;import mesquite.lib.MesquiteTrunk;import mesquite.lib.duties.*;/* ======================================================================== */public class aCartographerIntro extends PackageIntro { /*.................................................................................................................*/ public boolean startJob(String arguments, Object condition, boolean hiredByName) { return true; } public Class getDutyClass(){ return aCartographerIntro.class; } /*.................................................................................................................*/ public String getExplanation() { return "Cartographer is a package of Mesquite modules providing tools for plotting data in geographic space."; } /*.................................................................................................................*/ public String getName() { return "Cartographer Package"; } /*.................................................................................................................*/ /** Returns the name of the package of modules (e.g., "Basic Mesquite Package", "Rhetenor")*/ public String getPackageName(){ return "Cartographer Package"; } /*.................................................................................................................*/ /** Returns citation for a package of modules*/ public String getPackageCitation(){ return "Maddison, D.R., & W.P. Maddison. 2017. Cartographer: A Mesquite package for plotting geographic data. Version " + getPackageVersion() +" http://mesquiteproject.org/packages/cartographer"; } /*.................................................................................................................*/ /** Returns whether there is a splash banner*/ public boolean hasSplash(){ return true; } /*.................................................................................................................*/ /** returns the URL of the notices file for this module so that it can phone home and check for messages */ /*.................................................................................................................*/ public String getHomePhoneNumber(){ if (MesquiteTrunk.debugMode) return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/development/noticesAndUpdates/noticesDev.xml"; else if (!isPrerelease()) return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/master/noticesAndUpdates/notices.xml"; else return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/development/noticesAndUpdates/noticesPrerelease.xml"; } /*.................................................................................................................*/ public String getPackageURL(){ return "http://mesquiteproject.org/packages/cartographer"; } /*.................................................................................................................*/ /** returns whether this module is a prerelease version. This returns "TRUE" here, forcing modules to override to claim they are not prerelease */ public boolean isPrerelease(){ return false; } /*.................................................................................................................*/ /** Returns version for a package of modules*/ public String getPackageVersion(){ return "1.50"; } /*.................................................................................................................*/ /** Returns version for a package of modules as an integer*/ public int getPackageVersionInt(){ return 150; } public String getPackageDateReleased(){ return "1 January 2017"; } /*.................................................................................................................*/ /** Returns build number for a package of modules as an integer*/ public int getPackageBuildNumber(){ return 30; } /* release dates: v1.0 5 May 2006 v1.2 19 September 2007 v1.3 8 June 2008 v1.31 1 January 2009 v1.4 19 August 2014 v1.41 29 August 2014 v1.50 1 January 2017 (build 30) * */ /*.................................................................................................................*/ public int getVersionOfFirstRelease(){ return 260; }}
/* Mesquite.cartographer source code. Copyright 2008-2009 D. Maddison and W. Maddison. Version 1.3, June 2008.Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code. The commenting leaves much to be desired. Please approach this source code with the spirit of helping out.Perhaps with your help we can be more than a few, and make Mesquite better.Mesquite is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.Mesquite's web site is http://mesquiteproject.orgThis source code and its compiled class files are free and modifiable under the terms of GNU Lesser General Public License. (http://www.gnu.org/copyleft/lesser.html)*/package mesquite.cartographer.aCartographerIntro;import mesquite.lib.MesquiteTrunk;import mesquite.lib.duties.*;/* ======================================================================== */public class aCartographerIntro extends PackageIntro { /*.................................................................................................................*/ public boolean startJob(String arguments, Object condition, boolean hiredByName) { return true; } public Class getDutyClass(){ return aCartographerIntro.class; } /*.................................................................................................................*/ public String getExplanation() { return "Cartographer is a package of Mesquite modules providing tools for plotting data in geographic space."; } /*.................................................................................................................*/ public String getName() { return "Cartographer Package"; } /*.................................................................................................................*/ /** Returns the name of the package of modules (e.g., "Basic Mesquite Package", "Rhetenor")*/ public String getPackageName(){ return "Cartographer Package"; } /*.................................................................................................................*/ /** Returns citation for a package of modules*/ public String getPackageCitation(){ return "Maddison, D.R., & W.P. Maddison. 2017. Cartographer: A Mesquite package for plotting geographic data. Version " + getPackageVersion() +" http://mesquiteproject.org/packages/cartographer"; } /*.................................................................................................................*/ /** Returns whether there is a splash banner*/ public boolean hasSplash(){ return true; } /*.................................................................................................................*/ /** returns the URL of the notices file for this module so that it can phone home and check for messages */ /*.................................................................................................................*/ public String getHomePhoneNumber(){ if (!isPrerelease()) return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/master/noticesAndUpdates/notices.xml"; else if (MesquiteTrunk.debugMode) return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/development/noticesAndUpdates/noticesDebug.xml"; else return "https://raw.githubusercontent.com/MesquiteProject/Cartographer/development/noticesAndUpdates/notices.xml"; } /*.................................................................................................................*/ public String getPackageURL(){ return "http://mesquiteproject.org/packages/cartographer"; } /*.................................................................................................................*/ /** returns whether this module is a prerelease version. This returns "TRUE" here, forcing modules to override to claim they are not prerelease */ public boolean isPrerelease(){ return false; } /*.................................................................................................................*/ /** Returns version for a package of modules*/ public String getPackageVersion(){ return "1.50"; } /*.................................................................................................................*/ /** Returns version for a package of modules as an integer*/ public int getPackageVersionInt(){ return 150; } public String getPackageDateReleased(){ return "1 January 2017"; } /*.................................................................................................................*/ /** Returns build number for a package of modules as an integer*/ public int getPackageBuildNumber(){ return 30; } /* release dates: v1.0 5 May 2006 v1.2 19 September 2007 v1.3 8 June 2008 v1.31 1 January 2009 v1.4 19 August 2014 v1.41 29 August 2014 v1.50 1 January 2017 (build 30) * */ /*.................................................................................................................*/ public int getVersionOfFirstRelease(){ return 260; }}
Expand Down
8 changes: 5 additions & 3 deletions noticesAndUpdates/notices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<mesquite>
<MessagesFromHome>
<version>1</version>
<notice><!--Cartographer notice of update -->
<forBuildNumberEqualOrGreater>797</forBuildNumberEqualOrGreater> <!-- this refers to Mesquite build, e.g. for compatibility -->
<notice> <!-- this is if you have an old version of Mesquite and an old version of Cartographer>
<forBuildNumberEqualOrLess>797</forBuildNumberEqualOrLess> <!-- this refers to Mesquite build, e.g. for compatibility -->
<forPackageVersionEqualOrLess>141</forPackageVersionEqualOrLess>
<noticeNumber>04</noticeNumber>
<messageType>alert</messageType>
<identity>Cartographer</identity>
Expand All @@ -21,7 +22,8 @@
<version>150</version>
<downloadURL>http://mesquiteproject.org/packages/cartographer/manual/download.html</downloadURL>
</currentReleaseVersion>
<notice>
<notice> <!-- this is if you have a new version of Mesquite but an old version of Cartographer>
<forBuildNumberEqualOrGreater>797</forBuildNumberEqualOrGreater> <!-- this refers to Mesquite build, e.g. for compatibility -->
<forPackageVersionEqualOrLess>141</forPackageVersionEqualOrLess>
<messageType>update</messageType>
<identity>cartographer</identity>
Expand Down

0 comments on commit 00e9a2b

Please sign in to comment.