[Pixelle-commit] SF.net SVN: pixelle: [165] trunk/pixelle/src/com/mebigfatguy/pixelle/ Version.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-07-13 01:17:47
|
Revision: 165
http://pixelle.svn.sourceforge.net/pixelle/?rev=165&view=rev
Author: dbrosius
Date: 2008-07-12 18:17:55 -0700 (Sat, 12 Jul 2008)
Log Message:
-----------
class to read the generated version property file
Added Paths:
-----------
trunk/pixelle/src/com/mebigfatguy/pixelle/Version.java
Added: trunk/pixelle/src/com/mebigfatguy/pixelle/Version.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/Version.java (rev 0)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/Version.java 2008-07-13 01:17:55 UTC (rev 165)
@@ -0,0 +1,22 @@
+package com.mebigfatguy.pixelle;
+
+import java.util.ResourceBundle;
+
+public class Version {
+ private static String version;
+ static {
+ try {
+ ResourceBundle rb = ResourceBundle.getBundle("com/mebigfatguy/pixelle/resources/version");
+ version = rb.getString("pixelle.version");
+ } catch (Exception e) {
+ version = "?.?.?";
+ }
+ }
+
+ private Version() {
+ }
+
+ public static String getVersion() {
+ return version;
+ }
+}
Property changes on: trunk/pixelle/src/com/mebigfatguy/pixelle/Version.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|