[jboss-svn-commits] JBL Code SVN: r35075 - in labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product: common and 8 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Sep 9 04:26:11 EDT 2010
Author: dpalmer at redhat.com
Date: 2010-09-09 04:26:10 -0400 (Thu, 09 Sep 2010)
New Revision: 35075
Added:
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/esb/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/esb/Version.java
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/resources/
labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/resources/VERSION
Log:
Modular rossetta
Added: labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/esb/Version.java
===================================================================
--- labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/esb/Version.java (rev 0)
+++ labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/java/org/jboss/soa/esb/Version.java 2010-09-09 08:26:10 UTC (rev 35075)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2006, JBoss Inc., and
+ * individual contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of individual
+ * contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+/**
+ * Just prints the contents of the VERSION file to standard out.
+ *
+ * @author <a href="mailto:daniel.bevenius at gmail.com">Daniel Bevenius</a>
+ *
+ */
+public class Version
+{
+ private static final String VERSION_FILENAME = "/VERSION";
+
+ public static void main( String[] args )
+ {
+ BufferedReader br = null;
+ InputStream is = Version.class.getResourceAsStream( VERSION_FILENAME );
+ if ( is != null )
+ {
+ br = new BufferedReader( new InputStreamReader( is ) );
+ String line = null;
+ try
+ {
+ while ( ( line = br.readLine() ) != null)
+ System.out.println(line);
+ }
+ catch (IOException e)
+ {
+ e.printStackTrace();
+ }
+ finally
+ {
+ if ( br != null ) try { br.close(); } catch (IOException e) { e.printStackTrace(); }
+ }
+ }
+ }
+}
Added: labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/resources/VERSION
===================================================================
--- labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/resources/VERSION (rev 0)
+++ labs/jbossesb/workspace/dpalmer/JBESB_4_9_CP/product/common/src/main/resources/VERSION 2010-09-09 08:26:10 UTC (rev 35075)
@@ -0,0 +1 @@
+Version=${parent.version}
More information about the jboss-svn-commits
mailing list