Author: david.lloyd(a)jboss.com
Date: 2008-02-21 11:57:01 -0500 (Thu, 21 Feb 2008)
New Revision: 3467
Added:
remoting3/trunk/version/
remoting3/trunk/version/src/
remoting3/trunk/version/src/main/
remoting3/trunk/version/src/main/java/
remoting3/trunk/version/src/main/java/org/
remoting3/trunk/version/src/main/java/org/jboss/
remoting3/trunk/version/src/main/java/org/jboss/cx/
remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/
remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/version/
remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/version/Version.java
Modified:
remoting3/trunk/build.xml
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/CoreEndpoint.java
Log:
Add standalone jar target
Modified: remoting3/trunk/build.xml
===================================================================
--- remoting3/trunk/build.xml 2008-02-21 16:12:31 UTC (rev 3466)
+++ remoting3/trunk/build.xml 2008-02-21 16:57:01 UTC (rev 3467)
@@ -247,6 +247,7 @@
<path refid="api.classpath"/>
<path refid="log-jul.classpath"/>
<path refid="util.classpath"/>
+ <path refid="version.classpath"/>
</classpath>
</javac>
<touch file="core/target/main/.lastcompile"
verbose="false"/>
@@ -256,7 +257,7 @@
<delete dir="core/target"/>
</target>
- <target name="core" description="Build the core module"
depends="api,log-jul,util,core.compile">
+ <target name="core" description="Build the core module"
depends="api,log-jul,util,version,core.compile">
<path id="core.classpath">
<pathelement location="core/target/main/classes"/>
</path>
@@ -1038,6 +1039,85 @@
</path>
</target>
+ <!-- version module -->
+
+ <target name="version.compile.depcheck">
+ <mkdir dir="version/target/main"/>
+ <uptodate property="version.compile.uptodate"
targetfile="version/target/main/.lastcompile">
+ <srcfiles dir="version/src/main/java">
+ <include name="**/"/>
+ <include name="**/*.java"/>
+ <exclude name="**/.*"/>
+ </srcfiles>
+ </uptodate>
+ </target>
+
+ <target name="version.compile"
depends="version.compile.depcheck"
unless="version.compile.uptodate">
+ <mkdir dir="version/target/main/classes"/>
+ <javac
+ source="${javac.source}"
+ target="${javac.target}"
+ srcdir="version/src/main/java"
+ destdir="version/target/main/classes"
+ debug="true">
+ <compilerarg value="-Xlint:unchecked"/>
+ </javac>
+ <touch file="version/target/main/.lastcompile"
verbose="false"/>
+ </target>
+
+ <target name="version.clean">
+ <delete dir="version/target"/>
+ </target>
+
+ <target name="version" description="Build the version module"
depends="version.compile">
+ <path id="version.classpath">
+ <pathelement location="version/target/main/classes"/>
+ </path>
+ <java classpathref="version.classpath"
classname="org.jboss.cx.remoting.version.Version"
outputproperty="version"/>
+ </target>
+
+ <!-- ============================================== -->
+ <!-- JARS - Keep in alpha order by jar name -->
+ <!-- ============================================== -->
+
+ <target name="standalone-jar" description="Build the standalone
JAR" depends="api,core,jrpp,log-jul,srp,standalone,util,version">
+ <delete file="jboss-remoting-standalone.jar"/>
+ <jar jarfile="jboss-remoting-standalone.jar">
+ <manifest>
+ <attribute name="Created-By" value="${java.vm.version}
(${java.vm.vendor})"/>
+ <attribute name="Specification-Title" value="JBoss
Remoting"/>
+ <attribute name="Specification-Version"
value="${version}"/>
+ <attribute name="Specification-Vendor" value="JBoss
(
http://www.jboss.org/)"/>
+ <attribute name="Implementation-Title" value="JBoss
Remoting - Standalone Version"/>
+ <attribute name="Implementation-URL"
value="http://labs.jboss.org/jbossremoting/"/>
+ <attribute name="Implementation-Version"
value="${version}"/>
+ <attribute name="Implementation-Vendor" value="JBoss, a
division of Red Hat, Inc."/>
+ <attribute name="Implementation-Vendor-Id"
value="http://www.jboss.org"/>
+ </manifest>
+ <zipfileset dir="api/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="core/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="jrpp/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="log-jul/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="srp/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="standalone/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ <zipfileset dir="util/target/main/classes">
+ <include name="**/*.class"/>
+ </zipfileset>
+ </jar>
+ </target>
+
<!-- Default targets - keep depends in alpha order by category name -->
<!-- These targets should explicitly list all modules, even if they will be built
by other modules -->
Modified: remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/CoreEndpoint.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/CoreEndpoint.java 2008-02-21
16:12:31 UTC (rev 3466)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/CoreEndpoint.java 2008-02-21
16:57:01 UTC (rev 3467)
@@ -19,6 +19,8 @@
import org.jboss.cx.remoting.ServiceDeploymentSpec;
import org.jboss.cx.remoting.ServiceLocator;
import org.jboss.cx.remoting.Session;
+import org.jboss.cx.remoting.version.Version;
+import org.jboss.cx.remoting.log.Logger;
import org.jboss.cx.remoting.core.util.AtomicStateMachine;
import org.jboss.cx.remoting.core.util.AttributeMap;
import org.jboss.cx.remoting.core.util.CollectionUtil;
@@ -48,6 +50,10 @@
private final AtomicStateMachine<State> state =
AtomicStateMachine.start(State.UP);
private final ExecutorService executor;
+ static {
+ Logger.getLogger("org.jboss.cx.remoting").info("JBoss Remoting
version %s", Version.VERSION);
+ }
+
private enum State {
UP,
DOWN,
Property changes on: remoting3/trunk/version
___________________________________________________________________
Name: svn:ignore
+ *.iml
target
Added: remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/version/Version.java
===================================================================
--- remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/version/Version.java
(rev 0)
+++
remoting3/trunk/version/src/main/java/org/jboss/cx/remoting/version/Version.java 2008-02-21
16:57:01 UTC (rev 3467)
@@ -0,0 +1,12 @@
+package org.jboss.cx.remoting.version;
+
+/**
+ *
+ */
+public final class Version {
+ public static final String VERSION = "3.0.0-M2";
+
+ public static void main(String[] args) {
+ System.out.println(VERSION);
+ }
+}