gdaniels 2002/10/16 08:09:38
Modified: java/src/org/apache/axis/i18n resource.properties
java/src/org/apache/axis/transport/http HTTPSender.java
java/src/org/apache/axis Constants.java
Log:
Use resource.properties version string, which gets automatically
updated by the build process. DRY (Don't Repeat Yourself).
Revision Changes Path
1.17 +1 -0 xml-axis/java/src/org/apache/axis/i18n/resource.properties
Index: resource.properties
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/i18n/resource.properties,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- resource.properties 14 Oct 2002 20:02:21 -0000 1.16
+++ resource.properties 16 Oct 2002 15:09:37 -0000 1.17
@@ -709,6 +709,7 @@
# DO NOT TOUCH THESE PROPERTIES - THEY ARE AUTOMATICALLY UPDATED BY THE BUILD
# PROCESS.
axisVersion=Apache Axis version: #axisVersion#
+axisUserAgent=Axis/#axisVersion#
builtOn=Built on #today#
#############################################################################
1.90 +1 -1 xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
Index: HTTPSender.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- HTTPSender.java 14 Oct 2002 13:11:17 -0000 1.89
+++ HTTPSender.java 16 Oct 2002 15:09:37 -0000 1.90
@@ -356,7 +356,7 @@
.append("\r\n")
.append(HTTPConstants.HEADER_USER_AGENT) //Tell who we are.
.append( ": ")
- .append(Constants.AXIS_VERSION)
+ .append(Messages.getMessage("axisUserAgent"))
.append("\r\n")
.append(HTTPConstants.HEADER_HOST) //used for virtual connections
.append(": ")
1.92 +0 -3 xml-axis/java/src/org/apache/axis/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Constants.java,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- Constants.java 9 Oct 2002 20:10:16 -0000 1.91
+++ Constants.java 16 Oct 2002 15:09:37 -0000 1.92
@@ -547,7 +547,4 @@
// When invoked from a servlet, per JAX-RPC, we need a
// ServletEndpointContext object. This is where it lives.
public static final String MC_SERVLET_ENDPOINT_CONTEXT =
"servletEndpointContext";
-
- public static final String AXIS_VERSION="Axis/1.0";
-
}