[Yanel-commits] rev 47679 - public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder

michi at wyona.com michi at wyona.com
Sun Feb 21 23:38:30 CET 2010


Author: michi
Date: 2010-02-21 23:38:29 +0100 (Sun, 21 Feb 2010)
New Revision: 47679

Modified:
   public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java
Log:
check if revision is an integer

Modified: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java	2010-02-21 19:39:43 UTC (rev 47678)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java	2010-02-21 22:38:29 UTC (rev 47679)
@@ -297,6 +297,12 @@
         htmlBodyContent.append("Your installed Yanel version is: <b>" + installInfo.getId() + "-v-" + installInfo.getVersion() + "-r-" + installInfo.getRevision() + "</b>");
         htmlBodyContent.append("</p>");
 
+        try {
+            int revisionAsInt = Integer.parseInt(installInfo.getRevision());
+        } catch(NumberFormatException e) {
+            htmlBodyContent.append("<p>Exception: Revision is not a number: " + installInfo.getRevision() + "</p>");
+        }
+
         // TODO: implement getBestYanelWebapp() to get all yanel-webapp version which has an
         // yanel-updater which fits the targetRevision requirement of the current yanel and is not
         // already installed.



More information about the Yanel-commits mailing list