Author: david.lloyd(a)jboss.com
Date: 2009-01-08 23:32:38 -0500 (Thu, 08 Jan 2009)
New Revision: 4796
Added:
remoting3/trunk/api/src/main/java/org/jboss/remoting/Version.java
Removed:
remoting3/trunk/api/src/main/java/org/jboss/remoting/version/
Modified:
remoting3/trunk/build.xml
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java
remoting3/trunk/testing-support/src/main/resources/testing.policy
Log:
Move version to main api package
Copied: remoting3/trunk/api/src/main/java/org/jboss/remoting/Version.java (from rev 4793,
remoting3/trunk/api/src/main/java/org/jboss/remoting/version/Version.java)
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/remoting/Version.java
(rev 0)
+++ remoting3/trunk/api/src/main/java/org/jboss/remoting/Version.java 2009-01-09 04:32:38
UTC (rev 4796)
@@ -0,0 +1,26 @@
+package org.jboss.remoting;
+
+/**
+ * The version of Remoting.
+ *
+ * @apiviz.exclude
+ */
+public final class Version {
+
+ private Version() {
+ }
+
+ /**
+ * The version.
+ */
+ public static final String VERSION = "3.0.0.CR1";
+
+ /**
+ * Print the version to {@code System.out}.
+ *
+ * @param args ignored
+ */
+ public static void main(String[] args) {
+ System.out.print(VERSION);
+ }
+}
Modified: remoting3/trunk/build.xml
===================================================================
--- remoting3/trunk/build.xml 2009-01-09 04:21:05 UTC (rev 4795)
+++ remoting3/trunk/build.xml 2009-01-09 04:32:38 UTC (rev 4796)
@@ -229,7 +229,7 @@
<path refid="lib.xnio-api.classpath"/>
<path refid="lib.marshalling-api.classpath"/>
</path>
- <java classpathref="api.classpath"
classname="org.jboss.remoting.version.Version"
outputproperty="version"/>
+ <java classpathref="api.classpath"
classname="org.jboss.remoting.Version" outputproperty="version"/>
<property name="version" value="UNKNOWN"/>
</target>
Modified: remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java 2009-01-09
04:21:05 UTC (rev 4795)
+++
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java 2009-01-09
04:32:38 UTC (rev 4796)
@@ -27,7 +27,7 @@
import org.jboss.remoting.spi.RequestHandlerSource;
import org.jboss.remoting.spi.AbstractHandleableCloseable;
import org.jboss.remoting.spi.AbstractSimpleCloseable;
-import org.jboss.remoting.version.Version;
+import org.jboss.remoting.Version;
import org.jboss.xnio.FailedIoFuture;
import org.jboss.xnio.FinishedIoFuture;
import org.jboss.xnio.IoFuture;
Modified: remoting3/trunk/testing-support/src/main/resources/testing.policy
===================================================================
--- remoting3/trunk/testing-support/src/main/resources/testing.policy 2009-01-09 04:21:05
UTC (rev 4795)
+++ remoting3/trunk/testing-support/src/main/resources/testing.policy 2009-01-09 04:32:38
UTC (rev 4796)
@@ -37,6 +37,7 @@
grant codeBase "file:${build.home}/api/target/main/classes/-"
{
permission java.util.PropertyPermission "jboss.remoting.*",
"read";
+ permission org.jboss.remoting.EndpointPermission "*";
};
grant codeBase "file:${build.home}/core/target/main/classes/-"
@@ -50,11 +51,6 @@
permission java.util.PropertyPermission "jboss.remoting.*",
"read";
};
-grant codeBase "file:${build.home}/standalone/target/main/classes/-"
-{
- permission org.jboss.remoting.EndpointPermission "createEndpoint";
-};
-
// Support classes
grant codeBase "file:${build.home}/testing-support/target/main/classes/-"
Show replies by date