You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2004/11/02 16:19:44 UTC
cvs commit: ws-axis/c/build build.AIX.properties build.Linux.properties build.OS400.properties build.SunOS.properties build.Win32.properties buildApache13Module.xml buildApache20Module.xml buildClient.xml buildDocumentation.xml buildInitialize.xml buildServerEngine.xml buildSimpleAxisServer.xml buildTraceTool.xml buildTransport.xml buildWSDL2Ws.xml buildXMLParser.xml version.properties
dicka 2004/11/02 07:19:44
Modified: c build.xml package.xml test.xml
Added: c/build build.AIX.properties build.Linux.properties
build.OS400.properties build.SunOS.properties
build.Win32.properties buildApache13Module.xml
buildApache20Module.xml buildClient.xml
buildDocumentation.xml buildInitialize.xml
buildServerEngine.xml buildSimpleAxisServer.xml
buildTraceTool.xml buildTransport.xml
buildWSDL2Ws.xml buildXMLParser.xml
version.properties
Removed: c build.AIX.properties build.Linux.properties
build.OS400.properties build.SunOS.properties
build.Win32.properties buildApache13Module.xml
buildApache20Module.xml buildClient.xml
buildDocumentation.xml buildInitialize.xml
buildServerEngine.xml buildSimpleAxisServer.xml
buildTraceTool.xml buildTransport.xml
buildWSDL2Ws.xml buildXMLParser.xml
version.properties
Log:
Improvements to ANT build scripts
PR: AXISCPP-236
Submitted by: Adrian Dick
Tested on Windows 2000, Linux (RH AS 3.0) and AIX
Revision Changes Path
1.13 +49 -29 ws-axis/c/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/ws-axis/c/build.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- build.xml 1 Nov 2004 15:04:49 -0000 1.12
+++ build.xml 2 Nov 2004 15:19:43 -0000 1.13
@@ -14,12 +14,15 @@
It is intended that the default target be used, which compiles and links all code
and generates documentation.
+Within the build/ directory are a number of supporting scripts and property files.
+
Associated with this build script are property files for each platform, the script
will automatically determine the correct one to be used;
- build.Win32.properties
- build.Linux.properties
- build.AIX.properties
- build.SunOS.properties
+ - build.OS400.properties
Please use these to configure directories to suit the needs of your system.
Notes:
@@ -31,45 +34,64 @@
- AIX = Visual Age
</description>
- <import file="${basedir}/buildInitialize.xml"/>
- <import file="${basedir}/buildTraceTool.xml"/>
- <import file="${basedir}/buildClient.xml"/>
- <import file="${basedir}/buildTransport.xml"/>
- <import file="${basedir}/buildXMLParser.xml"/>
- <import file="${basedir}/buildServerEngine.xml"/>
- <import file="${basedir}/buildApache13Module.xml"/>
- <import file="${basedir}/buildApache20Module.xml"/>
- <import file="${basedir}/buildSimpleAxisServer.xml"/>
- <import file="${basedir}/buildWSDL2Ws.xml"/>
-
- <target name="compileClient" depends="initialize">
- <antcall target="compileAxisClient" inheritall="true"/>
- </target>
+ <import file="${basedir}/build/buildInitialize.xml"/>
+ <import file="${basedir}/build/buildTraceTool.xml"/>
+ <import file="${basedir}/build/buildClient.xml"/>
+ <import file="${basedir}/build/buildTransport.xml"/>
+ <import file="${basedir}/build/buildXMLParser.xml"/>
+ <import file="${basedir}/build/buildServerEngine.xml"/>
+ <import file="${basedir}/build/buildApache13Module.xml"/>
+ <import file="${basedir}/build/buildApache20Module.xml"/>
+ <import file="${basedir}/build/buildSimpleAxisServer.xml"/>
+ <import file="${basedir}/build/buildWSDL2Ws.xml"/>
+ <import file="${basedir}/build/buildDocumentation.xml"/>
-
- <target name="compileServer" depends="initialize">
- <antcall target="compileAxisServerEngine" inheritall="true"/>
+ <target name="compileClient">
<if>
- <equals arg1="${server.apache13}" arg2="true"/>
+ <equals arg1="${client}" arg2="true"/>
<then>
- <antcall target="compileApache13Module" inheritall="true"/>
+ <antcall target="compileAxisClient" inheritall="true"/>
</then>
</if>
+ </target>
+
+ <target name="buildDocumentation">
<if>
- <equals arg1="${server.apache20}" arg2="true"/>
+ <equals arg1="${documentation}" arg2="true"/>
<then>
- <antcall target="compileApache20Module" inheritall="true"/>
+ <antcall target="documentation" inheritall="true"/>
</then>
</if>
+ </target>
+
+ <target name="compileServer">
<if>
- <equals arg1="${server.simpleAxisServer}" arg2="true"/>
+ <equals arg1="${server}" arg2="true"/>
<then>
- <antcall target="compileSimpleAxisServer" inheritall="true"/>
+ <antcall target="compileAxisServerEngine" inheritall="true"/>
+ <if>
+ <equals arg1="${server.apache13}" arg2="true"/>
+ <then>
+ <antcall target="compileApache13Module" inheritall="true"/>
+ </then>
+ </if>
+ <if>
+ <equals arg1="${server.apache20}" arg2="true"/>
+ <then>
+ <antcall target="compileApache20Module" inheritall="true"/>
+ </then>
+ </if>
+ <if>
+ <equals arg1="${server.simpleAxisServer}" arg2="true"/>
+ <then>
+ <antcall target="compileSimpleAxisServer" inheritall="true"/>
+ </then>
+ </if>
</then>
</if>
</target>
- <target name="compileTransport" depends="initialize">
+ <target name="compileTransport">
<!-- Determine which flavour of transport to use -->
<!-- Ideally extend this to produce multiple flavours -->
<if>
@@ -101,7 +123,7 @@
</if>
</target>
- <target name="compileXMLParser" depends="initialize">
+ <target name="compileXMLParser">
<!-- Determine which flavour of xmlParser to use -->
<!-- Ideally extend this to produce multiple flavours -->
<if>
@@ -140,16 +162,14 @@
</if>
</target>
- <target name="compile" depends="initialize">
+ <target name="compile">
<antcall target="compileClient" inheritall="true"/>
<antcall target="compileTransport" inheritall="true"/>
<antcall target="compileXMLParser" inheritall="true"/>
<antcall target="compileServer" inheritall="true"/>
</target>
- <import file="${basedir}/buildDocumentation.xml"/>
-
- <target name="buildAll" depends="compile, compileWSDL2Ws, buildWSDL2WsJARFile, documentation"/>
+ <target name="buildAll" depends="compile, compileWSDL2Ws, buildWSDL2WsJARFile, buildDocumentation"/>
<target name="build" depends="initialize"
1.4 +4 -1 ws-axis/c/package.xml
Index: package.xml
===================================================================
RCS file: /home/cvs/ws-axis/c/package.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- package.xml 15 Oct 2004 15:51:30 -0000 1.3
+++ package.xml 2 Nov 2004 15:19:43 -0000 1.4
@@ -13,15 +13,18 @@
It is intended that the default target be used, produces the complete source and
binary deliverables.
+Within the build/ directory are a number of supporting scripts and property files.
+
Associated with this build script are property files for each platform, the script
will automatically determine the correct one to be used;
- build.Win32.properties
- build.Linux.properties
- build.AIX.properties
- build.SunOS.properties
+ - build.OS400.properties
Please use these to configure directories to suit the needs of your system.
</description>
- <import file="${basedir}/buildInitialize.xml"/>
+ <import file="${basedir}/build/buildInitialize.xml"/>
<target name="copySource">
<mkdir dir="${dir.release}"/>
1.18 +1 -1 ws-axis/c/test.xml
Index: test.xml
===================================================================
RCS file: /home/cvs/ws-axis/c/test.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- test.xml 1 Nov 2004 16:32:46 -0000 1.17
+++ test.xml 2 Nov 2004 15:19:43 -0000 1.18
@@ -175,7 +175,7 @@
</condition>
<!-- Load properties from file -->
- <property file="${basedir}/build.${platform}.properties"/>
+ <property file="${basedir}/build/build.${platform}.properties"/>
<!-- Get directory to contain log file -->
<dirname file="${results.log}" property="dir.results"/>
1.1 ws-axis/c/build/build.AIX.properties
Index: build.AIX.properties
===================================================================
#####################
# Items to be built #
#####################
# Set the following to true if you wish the client library be built
client = true
# Set the following to true if you wish the server libraries be built
# See options below for Apache modules and Stand-alone server
server = true
# Set the following to true if you wish the API documentation be generated
documentation = false
#####################
# Parser Properties #
#####################
# Typical values are:
# For Xerces, on Windows:
# xmlParser = xerces
# xmlParserLibrary = xerces-c_2
# For Xerces, on Unix:
# xmlParser = xerces
# xmlParserLibrary = xerces-c
# For Expat, on Unix:
# xmlParser = expat
# xmlParserLibrary = expat
# Parsers to be used
xmlParser.xml4c = false
xmlParser.xerces = true
xmlParser.expat = false
## Values used for XML4C
xml4c.xmlParserLibrary = xml4c
xml4c.dir.xmlParser = ${env.XML4C_HOME}
xml4c.xmlParserLibraryName = axis_xml4c
## Values used for Xerces
xerces.xmlParserLibrary = xerces-c
xerces.dir.xmlParser = ${env.XERCES_HOME}
xerces.xmlParserLibraryName = axis_xerces
## Values used for Expat
expat.xmlParserLibrary = expat
expat.dir.xmlParser = ${env.EXPAT_HOME}
expat.xmlParserLibraryName = axis_expat
# Name for compiled XML Parser library - excluding any prefix or suffix
# eg: For Windows : axis_xmlParser will produce axis_xmlParser.dll
# For Unix : axis_xmlParser will produce libaxis_xmlParser.so
xmlParserLibraryName = axis_xmlParser
########################
# Transport Properties #
########################
# Transports to be used
transport.axis = true
transport.axis2 = true
transport.libwww = false
## Values used for axis
axis.transportLibraryName = axis_transport
## Values used for axis2
axis2.transportLibraryName = axis2_transport
## Values used for libwww
libwww.transportLibraryName = libwww_transport
# Name for compiled transport library - excluding any prefix or suffix
# eg: For Windows : axis_transport will produce axis_transport.dll
# For Unix : axis_transport will produce libaxis_transport.so
#
transportLibraryName = axis_transport
#####################
# Client Properties #
#####################
# Name for compiled client - excluding any prefix or suffix
# eg: For Windows : axis_client will produce axis_client.dll
# For Unix : axis_client will produce libaxis_client.so
clientLibraryName = axis_client
############################
# Server Engine Properties #
############################
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : axis_server will produce axis_server.dll
# For Unix : axis_server will produce libaxis_server.so
serverEngineLibraryName = axis_server
#################################
# Simple Axis Server Properties #
#################################
# Is Simple Axis Server to be used?
server.simpleAxisServer = false
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : simple_axis_server will produce simple_axis_server.exe
# For Unix : simple_axis_server will produce simple_axis_server
simpleAxisServerExecutableName = simple_axis_server
#####################
# Apache Properties #
#####################
# Apache versions to be used
server.apache13 = true
server.apache20 = true
## Values used for Apache 1.3
apache13.dir.server = ${env.APACHE_HOME}
apache13.serverLibraryName = mod_axis
## Values used for Apache 2.0
apache20.dir.server = ${env.APACHE2_HOME}
apache20.serverLibraryName = mod_axis2
# Name for compiled Apache plugin library - excluding any prefix or suffix
# eg: For Windows : axis_apache will produce axis_apache.dll
# For Unix : axis_apache will produce libaxis_apache.so
serverLibraryName = mod_axis
###########################
# Location of output tree #
###########################
dir.obj = ${basedir}/../../../obj
####################
# Trace Properties #
####################
# Instrument the Axis C++ source code with entry/exit trace
dir.src.instrumented = ${dir.obj}/src
#######################################
# Properties for compiling C/C++ code #
#######################################
# Directory in which to place compiled libraries
dir.bin = ${dir.obj}/bin
# Directory in which to place object files
dir.objects = ${dir.obj}/objects
####################################
# Properties for compiling WSDL2Ws #
####################################
# Location of Axis JARs
dir.axisJARs = ${env.AXISJAVA_LIB}
# Directory in which to place compiled Java classes
dir.classes = ${dir.obj}/classes
###########################################
# Properties for packaging Binary release #
###########################################
release = axis-c-${version}-${platform}
dir.release = ${dir.obj}/package/${release}
###############################
# Properties for Deliverables #
###############################
dir.zips = ${basedir}/../../../zips
############################
# Properties for packaging #
############################
# Base directory for packaging - not used directly within build.xml, just used to simplify this property file
dir.package = ${dir.obj}/package
# Directory in which to place DLLs - Only used for Windows platform
dir.package.bin = ${dir.package}/bin
# Directory in which to place library files
dir.package.lib = ${dir.package}/lib
# Directory in which to place header files
dir.package.include = ${dir.package}/include
# Directory in which to place WSDL2Ws JAR files
dir.package.WSDL2Ws = ${dir.package}/WSDL2Ws
# Directory in which to place Documentation
dir.package.docs = ${dir.package}/docs
############################################
# Properties for building and running test #
############################################
# Directory in which to place all generated test artifacts
# This is also the directory in which code is built and run
dir.test.generated = ${dir.obj}/test/generated
# Log files for test results
results.log = ${dir.test.generated}/results.log
# Prefix and suffix used for executables and libraries
# Typical values are:
# For windows:
# executableSuffix = .exe
# librarySuffix = .dll
# libraryPrefix =
# For unix:
# executableSuffix =
# librarySuffix = .so
# libraryPrefix = lib
# For AIX (as Unix, except):
# librarySuffix = .a
executableSuffix =
librarySuffix = .a
libraryPrefix = lib
# Directory containing Axis C libraries
# For Windows this should be ${dir.package.bin}
# For Unix this should be ${dir.package.lib}
dir.libraries = ${dir.package.lib}
# May want to uncomment for testing so the build output is used
#dir.include = ${dir.package.include}
# If only a single language is required then set it here.
# Valid values are cpp or c. Default if unset is both.
target.lang = cpp
# AXISCPP_DEPLOY directory
axiscpp_deploy = ${dir.test.generated}
# Details of server to be used for testing clients
testHost = localhost
testPort = 9080
monitorPort = 13260
1.1 ws-axis/c/build/build.Linux.properties
Index: build.Linux.properties
===================================================================
#####################
# Items to be built #
#####################
# Set the following to true if you wish the client library be built
client = true
# Set the following to true if you wish the server libraries be built
# See options below for Apache modules and Stand-alone server
server = true
# Set the following to true if you wish the API documentation be generated
documentation = true
#####################
# Parser Properties #
#####################
# Typical values are:
# For Xerces, on Windows:
# xmlParser = xerces
# xmlParserLibrary = xerces-c_2
# For Xerces, on Unix:
# xmlParser = xerces
# xmlParserLibrary = xerces-c
# For Expat, on Unix:
# xmlParser = expat
# xmlParserLibrary = expat
# Parsers to be used
xmlParser.xml4c = false
xmlParser.xerces = true
xmlParser.expat = false
## Values used for XML4C
xml4c.xmlParserLibrary = xml4c
xml4c.dir.xmlParser = ${env.XML4C_HOME}
xml4c.xmlParserLibraryName = axis_xml4c
## Values used for Xerces
xerces.xmlParserLibrary = xerces-c
xerces.dir.xmlParser = ${env.XERCES_HOME}
xerces.xmlParserLibraryName = axis_xerces
## Values used for Expat
expat.xmlParserLibrary = expat
expat.dir.xmlParser = ${env.EXPAT_HOME}
expat.xmlParserLibraryName = axis_expat
# Name for compiled XML Parser library - excluding any prefix or suffix
# eg: For Windows : axis_xmlParser will produce axis_xmlParser.dll
# For Unix : axis_xmlParser will produce libaxis_xmlParser.so
xmlParserLibraryName = axis_xmlParser
########################
# Transport Properties #
########################
# Transports to be used
transport.axis = true
transport.axis2 = true
transport.libwww = false
## Values used for axis
axis.transportLibraryName = axis_transport
## Values used for axis2
axis2.transportLibraryName = axis2_transport
## Values used for libwww
libwww.transportLibraryName = libwww_transport
# Name for compiled transport library - excluding any prefix or suffix
# eg: For Windows : axis_transport will produce axis_transport.dll
# For Unix : axis_transport will produce libaxis_transport.so
#
transportLibraryName = axis_transport
#####################
# Client Properties #
#####################
# Name for compiled client - excluding any prefix or suffix
# eg: For Windows : axis_client will produce axis_client.dll
# For Unix : axis_client will produce libaxis_client.so
clientLibraryName = axis_client
############################
# Server Engine Properties #
############################
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : axis_server will produce axis_server.dll
# For Unix : axis_server will produce libaxis_server.so
serverEngineLibraryName = axis_server
#################################
# Simple Axis Server Properties #
#################################
# Is Simple Axis Server to be used?
server.simpleAxisServer = false
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : simple_axis_server will produce simple_axis_server.exe
# For Unix : simple_axis_server will produce simple_axis_server
simpleAxisServerExecutableName = simple_axis_server
#####################
# Apache Properties #
#####################
# Apache versions to be used
server.apache13 = true
server.apache20 = true
## Values used for Apache 1.3
apache13.dir.server = ${env.APACHE_HOME}
apache13.serverLibraryName = mod_axis
## Values used for Apache 2.0
apache20.dir.server = ${env.APACHE2_HOME}
apache20.serverLibraryName = mod_axis2
# Name for compiled Apache plugin library - excluding any prefix or suffix
# eg: For Windows : axis_apache will produce axis_apache.dll
# For Unix : axis_apache will produce libaxis_apache.so
serverLibraryName = mod_axis
###########################
# Location of output tree #
###########################
dir.obj = ${basedir}/../../../obj
####################
# Trace Properties #
####################
# Instrument the Axis C++ source code with entry/exit trace
dir.src.instrumented = ${dir.obj}/src
#######################################
# Properties for compiling C/C++ code #
#######################################
# Directory in which to place compiled libraries
dir.bin = ${dir.obj}/bin
# Directory in which to place object files
dir.objects = ${dir.obj}/objects
####################################
# Properties for compiling WSDL2Ws #
####################################
# Location of Axis JARs
dir.axisJARs = ${env.AXISJAVA_LIB}
# Directory in which to place compiled Java classes
dir.classes = ${dir.obj}/classes
###########################################
# Properties for packaging Binary release #
###########################################
release = axis-c-${version}-${platform}
dir.release = ${dir.obj}/package/${release}
###############################
# Properties for Deliverables #
###############################
dir.zips = ${basedir}/../../../zips
############################
# Properties for packaging #
############################
# Base directory for packaging - not used directly within build.xml, just used to simplify this property file
dir.package = ${dir.obj}/package
# Directory in which to place DLLs - Only used for Windows platform
dir.package.bin = ${dir.package}/bin
# Directory in which to place library files
dir.package.lib = ${dir.package}/lib
# Directory in which to place header files
dir.package.include = ${dir.package}/include
# Directory in which to place WSDL2Ws JAR files
dir.package.WSDL2Ws = ${dir.package}/WSDL2Ws
# Directory in which to place Documentation
dir.package.docs = ${dir.package}/docs
############################################
# Properties for building and running test #
############################################
# Directory in which to place all generated test artifacts
# This is also the directory in which code is built and run
dir.test.generated = ${dir.obj}/test/generated
# Log files for test results
results.log = ${dir.test.generated}/results.log
# Prefix and suffix used for executables and libraries
# Typical values are:
# For windows:
# executableSuffix = .exe
# librarySuffix = .dll
# libraryPrefix =
# For unix:
# executableSuffix =
# librarySuffix = .so
# libraryPrefix = lib
# For AIX (as Unix, except):
# librarySuffix = .a
executableSuffix =
librarySuffix = .so
libraryPrefix = lib
# Directory containing Axis C libraries
# For Windows this should be ${dir.package.bin}
# For Unix this should be ${dir.package.lib}
dir.libraries = ${dir.package.lib}
# May want to uncomment for testing so the build output is used
#dir.include = ${dir.package.include}
# If only a single language is required then set it here.
# Valid values are cpp or c. Default if unset is both.
target.lang = cpp
# AXISCPP_DEPLOY directory
axiscpp_deploy = ${dir.test.generated}
# Details of server to be used for testing clients
testHost = localhost
testPort = 9080
monitorPort = 13260
1.1 ws-axis/c/build/build.OS400.properties
Index: build.OS400.properties
===================================================================
#####################
# Items to be built #
#####################
# Set the following to true if you wish the client library be built
client = true
# Set the following to true if you wish the server libraries be built
# See options below for Apache modules and Stand-alone server
server = true
# Set the following to true if you wish the API documentation be generated
documentation = false
#####################
# Parser Properties #
#####################
# Typical values are:
# For Xerces, on Windows:
# xmlParser = xerces
# xmlParserLibrary = xerces-c_2
# For Xerces, on Unix:
# xmlParser = xerces
# xmlParserLibrary = xerces-c
# For Expat, on Unix:
# xmlParser = expat
# xmlParserLibrary = expat
# Parsers to be used
xmlParser.xml4c = true
xmlParser.xerces = false
xmlParser.expat = false
## Values used for XML4C
xml4c.xmlParserLibrary = xml4c
xml4c.dir.xmlParser = ${env.XML4C_HOME}
xml4c.xmlParserLibraryName = axis_xml4c
## Values used for Xerces
xerces.xmlParserLibrary = xerces-c
xerces.dir.xmlParser = ${env.XERCES_HOME}
xerces.xmlParserLibraryName = axis_xerces
## Values used for Expat
expat.xmlParserLibrary = expat
expat.dir.xmlParser = ${env.EXPAT_HOME}
expat.xmlParserLibraryName = axis_expat
# Name for compiled XML Parser library - excluding any prefix or suffix
# eg: For Windows : axis_xmlParser will produce axis_xmlParser.dll
# For Unix : axis_xmlParser will produce libaxis_xmlParser.so
xmlParserLibraryName = axis_xmlParser
########################
# Transport Properties #
########################
# Transports to be used
transport.axis = true
transport.axis2 = true
transport.libwww = false
## Values used for axis
axis.transportLibraryName = axis_transport
## Values used for axis2
axis2.transportLibraryName = axis2_transport
## Values used for libwww
libwww.transportLibraryName = libwww_transport
# Name for compiled transport library - excluding any prefix or suffix
# eg: For Windows : axis_transport will produce axis_transport.dll
# For Unix : axis_transport will produce libaxis_transport.so
#
transportLibraryName = axis_transport
#####################
# Client Properties #
#####################
# Name for compiled client - excluding any prefix or suffix
# eg: For Windows : axis_client will produce axis_client.dll
# For Unix : axis_client will produce libaxis_client.so
clientLibraryName = axis_client
############################
# Server Engine Properties #
############################
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : axis_server will produce axis_server.dll
# For Unix : axis_server will produce libaxis_server.so
serverEngineLibraryName = axis_server
#################################
# Simple Axis Server Properties #
#################################
# Is Simple Axis Server to be used?
server.simpleAxisServer = false
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : simple_axis_server will produce simple_axis_server.exe
# For Unix : simple_axis_server will produce simple_axis_server
simpleAxisServerExecutableName = simple_axis_server
#####################
# Apache Properties #
#####################
# Apache versions to be used
server.apache13 = false
server.apache20 = true
## Values used for Apache 1.3
apache13.dir.server = ${env.APACHE_HOME}
apache13.serverLibraryName = mod_axis
## Values used for Apache 2.0
apache20.dir.server = ${env.APACHE2_HOME}
apache20.serverLibraryName = mod_axis2
# Name for compiled Apache plugin library - excluding any prefix or suffix
# eg: For Windows : axis_apache will produce axis_apache.dll
# For Unix : axis_apache will produce libaxis_apache.so
serverLibraryName = mod_axis
###########################
# Location of output tree #
###########################
dir.obj = ${basedir}/../../../obj
####################
# Trace Properties #
####################
# Instrument the Axis C++ source code with entry/exit trace
dir.src.instrumented = ${dir.obj}/src
#######################################
# Properties for compiling C/C++ code #
#######################################
# Directory in which to place compiled libraries
dir.bin = ${dir.obj}/bin
# Directory in which to place object files
dir.objects = ${dir.obj}/objects
####################################
# Properties for compiling WSDL2Ws #
####################################
# Location of Axis JARs
dir.axisJARs = ${env.AXISJAVA_LIB}
# Directory in which to place compiled Java classes
dir.classes = ${dir.obj}/classes
###########################################
# Properties for packaging Binary release #
###########################################
release = axis-c-${version}-${platform}
dir.release = ${dir.obj}/package/${release}
###############################
# Properties for Deliverables #
###############################
dir.zips = ${basedir}/zips
############################
# Properties for packaging #
############################
# Base directory for packaging - not used directly within build.xml, just used to simplify this property file
dir.package = ${dir.obj}/package
# Directory in which to place DLLs - Only used for Windows platform
dir.package.bin = ${dir.package}/bin
# Directory in which to place library files
dir.package.lib = ${dir.package}/lib
# Directory in which to place header files
dir.package.include = ${dir.package}/include
# Directory in which to place WSDL2Ws JAR files
dir.package.WSDL2Ws = ${dir.package}/WSDL2Ws
# Directory in which to place Documentation
dir.package.docs = ${dir.package}/docs
############################################
# Properties for building and running test #
############################################
# Directory in which to place all generated test artifacts
# This is also the directory in which code is built and run
dir.test.generated = ${dir.obj}/test/generated
# Log files for test results
results.log = ${dir.test.generated}/results.log
# Prefix and suffix used for executables and libraries
# Typical values are:
# For windows:
# executableSuffix = .exe
# librarySuffix = .dll
# libraryPrefix =
# For unix:
# executableSuffix =
# librarySuffix = .so
# libraryPrefix = lib
# For AIX (as Unix, except):
# librarySuffix = .a
executableSuffix =
librarySuffix = .so
libraryPrefix = lib
# Directory containing Axis C libraries
# For Windows this should be ${dir.package.bin}
# For Unix this should be ${dir.package.lib}
dir.libraries = ${dir.package.lib}
# May want to uncomment for testing so the build output is used
#dir.include = ${dir.package.include}
# If only a single language is required then set it here.
# Valid values are cpp or c. Default if unset is both.
target.lang = cpp
# AXISCPP_DEPLOY directory
axiscpp_deploy = ${dir.test.generated}
# Details of server to be used for testing clients
testHost = localhost
testPort = 9080
monitorPort = 13260
1.1 ws-axis/c/build/build.SunOS.properties
Index: build.SunOS.properties
===================================================================
#####################
# Items to be built #
#####################
# Set the following to true if you wish the client library be built
client = true
# Set the following to true if you wish the server libraries be built
# See options below for Apache modules and Stand-alone server
server = true
# Set the following to true if you wish the API documentation be generated
documentation = false
#####################
# Parser Properties #
#####################
# Typical values are:
# For Xerces, on Windows:
# xmlParser = xerces
# xmlParserLibrary = xerces-c_2
# For Xerces, on Unix:
# xmlParser = xerces
# xmlParserLibrary = xerces-c
# For Expat, on Unix:
# xmlParser = expat
# xmlParserLibrary = expat
# Parsers to be used
xmlParser.xml4c = false
xmlParser.xerces = true
xmlParser.expat = false
## Values used for XML4C
xml4c.xmlParserLibrary = xml4c
xml4c.dir.xmlParser = ${env.XML4C_HOME}
xml4c.xmlParserLibraryName = axis_xml4c
## Values used for Xerces
xerces.xmlParserLibrary = xerces-c
xerces.dir.xmlParser = ${env.XERCES_HOME}
xerces.xmlParserLibraryName = axis_xerces
## Values used for Expat
expat.xmlParserLibrary = expat
expat.dir.xmlParser = ${env.EXPAT_HOME}
expat.xmlParserLibraryName = axis_expat
# Name for compiled XML Parser library - excluding any prefix or suffix
# eg: For Windows : axis_xmlParser will produce axis_xmlParser.dll
# For Unix : axis_xmlParser will produce libaxis_xmlParser.so
xmlParserLibraryName = axis_xmlParser
########################
# Transport Properties #
########################
# Transports to be used
transport.axis = true
transport.axis2 = true
transport.libwww = false
## Values used for axis
axis.transportLibraryName = axis_transport
## Values used for axis2
axis2.transportLibraryName = axis2_transport
## Values used for libwww
libwww.transportLibraryName = libwww_transport
# Name for compiled transport library - excluding any prefix or suffix
# eg: For Windows : axis_transport will produce axis_transport.dll
# For Unix : axis_transport will produce libaxis_transport.so
#
transportLibraryName = axis_transport
#####################
# Client Properties #
#####################
# Name for compiled client - excluding any prefix or suffix
# eg: For Windows : axis_client will produce axis_client.dll
# For Unix : axis_client will produce libaxis_client.so
clientLibraryName = axis_client
############################
# Server Engine Properties #
############################
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : axis_server will produce axis_server.dll
# For Unix : axis_server will produce libaxis_server.so
serverEngineLibraryName = axis_server
#################################
# Simple Axis Server Properties #
#################################
# Is Simple Axis Server to be used?
server.simpleAxisServer = false
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : simple_axis_server will produce simple_axis_server.exe
# For Unix : simple_axis_server will produce simple_axis_server
simpleAxisServerExecutableName = simple_axis_server
#####################
# Apache Properties #
#####################
# Apache versions to be used
server.apache13 = true
server.apache20 = true
## Values used for Apache 1.3
apache13.dir.server = ${env.APACHE_HOME}
apache13.serverLibraryName = mod_axis
## Values used for Apache 2.0
apache20.dir.server = ${env.APACHE2_HOME}
apache20.serverLibraryName = mod_axis2
# Name for compiled Apache plugin library - excluding any prefix or suffix
# eg: For Windows : axis_apache will produce axis_apache.dll
# For Unix : axis_apache will produce libaxis_apache.so
serverLibraryName = mod_axis
###########################
# Location of output tree #
###########################
dir.obj = ${basedir}/../../../obj
####################
# Trace Properties #
####################
# Instrument the Axis C++ source code with entry/exit trace
dir.src.instrumented = ${dir.obj}/src
#######################################
# Properties for compiling C/C++ code #
#######################################
# Directory in which to place compiled libraries
dir.bin = ${dir.obj}/bin
# Directory in which to place object files
dir.objects = ${dir.obj}/objects
####################################
# Properties for compiling WSDL2Ws #
####################################
# Location of Axis JARs
dir.axisJARs = ${env.AXISJAVA_LIB}
# Directory in which to place compiled Java classes
dir.classes = ${dir.obj}/classes
###########################################
# Properties for packaging Binary release #
###########################################
release = axis-c-${version}-${platform}
dir.release = ${dir.obj}/package/${release}
###############################
# Properties for Deliverables #
###############################
dir.zips = ${basedir}/../../../zips
############################
# Properties for packaging #
############################
# Base directory for packaging - not used directly within build.xml, just used to simplify this property file
dir.package = ${basedir}/deploy
# Directory in which to place DLLs - Only used for Windows platform
dir.package.bin = ${dir.package}/bin
# Directory in which to place library files
dir.package.lib = ${dir.package}/lib
# Directory in which to place header files
dir.package.include = ${dir.package}/include
# Directory in which to place WSDL2Ws JAR files
dir.package.WSDL2Ws = ${dir.classes}
# Directory in which to place Documentation
dir.package.docs = ${dir.package}/docs
############################################
# Properties for building and running test #
############################################
# Directory in which to place all generated test artifacts
# This is also the directory in which code is built and run
dir.test.generated = ${basedir}/tests/auto_build/testcases/Output
# Log files for test results
results.log = ${dir.test.generated}/results.log
# Prefix and suffix used for executables and libraries
# Typical values are:
# For windows:
# executableSuffix = .exe
# librarySuffix = .dll
# libraryPrefix =
# For unix:
# executableSuffix =
# librarySuffix = .so
# libraryPrefix = lib
# For AIX (as Unix, except):
# librarySuffix = .a
executableSuffix =
librarySuffix = .so
libraryPrefix = lib
# Directory containing Axis C libraries
# For Windows this should be ${dir.package.bin}
# For Unix this should be ${dir.package.lib}
dir.libraries = ${dir.package.bin}
# May want to uncomment for testing so the build output is used
#dir.include = ${dir.package.include}
# If only a single language is required then set it here.
# Valid values are cpp or c. Default if unset is both.
target.lang = cpp
# AXISCPP_DEPLOY directory
axiscpp_deploy = ${dir.test.generated}
# Details of server to be used for testing clients
testHost = localhost
testPort = 9080
monitorPort = 13260
1.1 ws-axis/c/build/build.Win32.properties
Index: build.Win32.properties
===================================================================
#####################
# Items to be built #
#####################
# Set the following to true if you wish the client library be built
client = true
# Set the following to true if you wish the server libraries be built
# See options below for Apache modules and Stand-alone server
server = true
# Set the following to true if you wish the API documentation be generated
documentation = true
#####################
# Parser Properties #
#####################
# Typical values are:
# For Xerces, on Windows:
# xmlParser = xerces
# xmlParserLibrary = xerces-c_2
# For Xerces, on Unix:
# xmlParser = xerces
# xmlParserLibrary = xerces-c
# For Expat, on Unix:
# xmlParser = expat
# xmlParserLibrary = expat
# Parsers to be used
xmlParser.xml4c = false
xmlParser.xerces = true
xmlParser.expat = false
## Values used for XML4C
xml4c.xmlParserLibrary = xml4c_5
xml4c.dir.xmlParser = ${env.XML4C_HOME}
xml4c.xmlParserLibraryName = axis_xml4c
## Values used for Xerces
xerces.xmlParserLibrary = xerces-c_2
xerces.dir.xmlParser = ${env.XERCES_HOME}
xerces.xmlParserLibraryName = axis_xerces
## Values used for Expat
expat.xmlParserLibrary = expat
expat.dir.xmlParser = ${env.EXPAT_HOME}
expat.xmlParserLibraryName = axis_expat
# Name for compiled XML Parser library - excluding any prefix or suffix
# eg: For Windows : axis_xmlParser will produce axis_xmlParser.dll
# For Unix : axis_xmlParser will produce libaxis_xmlParser.so
xmlParserLibraryName = axis_xmlParser
########################
# Transport Properties #
########################
# Transports to be used
transport.axis = false
transport.axis2 = true
transport.libwww = false
## Values used for axis
axis.transportLibraryName = axis_transport
## Values used for axis2
axis2.transportLibraryName = axis2_transport
## Values used for libwww
libwww.transportLibraryName = libwww_transport
# Name for compiled transport library - excluding any prefix or suffix
# eg: For Windows : axis_transport will produce axis_transport.dll
# For Unix : axis_transport will produce libaxis_transport.so
#
transportLibraryName = axis_transport
#####################
# Client Properties #
#####################
# Name for compiled client - excluding any prefix or suffix
# eg: For Windows : axis_client will produce axis_client.dll
# For Unix : axis_client will produce libaxis_client.so
clientLibraryName = axis_client
############################
# Server Engine Properties #
############################
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : axis_server will produce axis_server.dll
# For Unix : axis_server will produce libaxis_server.so
serverEngineLibraryName = axis_server
#################################
# Simple Axis Server Properties #
#################################
# Is Simple Axis Server to be used?
server.simpleAxisServer = true
# Name for compiled server engine - excluding any prefix or suffix
# eg: For Windows : simple_axis_server will produce simple_axis_server.exe
# For Unix : simple_axis_server will produce simple_axis_server
simpleAxisServerExecutableName = simple_axis_server
#####################
# Apache Properties #
#####################
# Apache Versions to be used
server.apache13 = true
server.apache20 = true
## Values used for Apache 1.3
apache13.dir.server = ${env.APACHE_HOME}
apache13.serverLibraryName = mod_axis
## Values used for Apache 2.0
apache20.dir.server = ${env.APACHE2_HOME}
apache20.serverLibraryName = mod_axis2
# Name for compiled Apache plugin library - excluding any prefix or suffix
# eg: For Windows : axis_apache will produce axis_apache.dll
# For Unix : axis_apache will produce libaxis_apache.so
serverLibraryName = mod_axis
###########################
# Location of output tree #
###########################
dir.obj = ${basedir}/../../../obj
####################
# Trace Properties #
####################
# Instrument the Axis C++ source code with entry/exit trace
dir.src.instrumented = ${dir.obj}/src
#######################################
# Properties for compiling C/C++ code #
#######################################
# Directory in which to place compiled libraries
dir.bin = ${dir.obj}/bin
# Directory in which to place object files
dir.objects = ${dir.obj}/objects
####################################
# Properties for compiling WSDL2Ws #
####################################
# Location of Axis JARs
dir.axisJARs = ${env.AXISJAVA_LIB}
# Directory in which to place compiled Java classes
dir.classes = ${dir.obj}/classes
###########################################
# Properties for packaging Binary release #
###########################################
release = axis-c-${version}-${platform}
dir.release = ${dir.obj}/package/${release}
###############################
# Properties for Deliverables #
###############################
dir.zips = ${basedir}/../../../zips
############################
# Properties for packaging #
############################
# Base directory for packaging - not used directly within build.xml, just used to simplify this property file
dir.package = ${dir.obj}/package
# Directory in which to place DLLs - Only used for Windows platform
dir.package.bin = ${dir.package}/bin
# Directory in which to place library files
dir.package.lib = ${dir.package}/lib
# Directory in which to place header files
dir.package.include = ${dir.package}/include
# Directory in which to place WSDL2Ws JAR files
dir.package.WSDL2Ws = ${dir.package}/WSDL2Ws
# Directory in which to place Documentation
dir.package.docs = ${dir.package}/docs
############################################
# Properties for building and running test #
############################################
# Directory in which to place all generated test artifacts
# This is also the directory in which code is built and run
dir.test.generated = ${dir.obj}/test/generated
# Log files for test results
results.log = ${dir.test.generated}/results.log
# Prefix and suffix used for executables and libraries
# Typical values are:
# For windows:
# executableSuffix = .exe
# librarySuffix = .dll
# libraryPrefix =
# For unix:
# executableSuffix =
# librarySuffix = .so
# libraryPrefix = lib
# For AIX (as Unix, except):
# librarySuffix = .a
executableSuffix = .exe
librarySuffix = .dll
libraryPrefix =
# Directory containing Axis C libraries
# For Windows this should be ${dir.package.bin}
# For Unix this should be ${dir.package.lib}
dir.libraries = ${dir.package.bin}
# May want to uncomment for testing so the build output is used
#dir.include = ${dir.package.include}
# If only a single language is required then set it here.
# Valid values are cpp or c. Default if unset is both.
target.lang = cpp
# AXISCPP_DEPLOY directory
axiscpp_deploy = ${dir.test.generated}
# Details of server to be used for testing clients
testHost = localhost
testPort = 9080
monitorPort = 13260
1.1 ws-axis/c/build/buildApache13Module.xml
Index: buildApache13Module.xml
===================================================================
<project name="Axis C Apache 1.3 Server Module" default="compileApache13Module" basedir="..">
<!--
Compile the Axis Server Library
-->
<target name="compileApache13Module">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<copy todir="${basedir}/include/apache1_3">
<fileset dir="${apache13.dir.server}/include" includes="**"/>
</copy>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${apache13.serverLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++">
<defineset>
<define name="APACHE1_3_EXPORTS"/>
</defineset>
</compiler>
<includepath path="${apache13.dir.server}/include" unless="windows"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_APACHE1_3"/>
</defineset>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker refid="VisualC++Linker"/>
<libset dir="${apache13.dir.server}/libexec" libs="ApacheCore" if="windows"/>
<libset dir="${dir.bin}" libs="${serverEngineLibraryName}"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="server/apache/*.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${apache13.serverLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<includepath path="${apache13.dir.server}/include"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_APACHE1_3"/>
</defineset>
<!-- Linkers -->
<linker extends="AIXLinker">
<linkerarg value="-r"/>
</linker>
<libset dir="${dir.bin}" libs="${serverEngineLibraryName}"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="server/apache/*.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/buildApache20Module.xml
Index: buildApache20Module.xml
===================================================================
<project name="Axis C Apache 2.0 Server Module" default="compileApache20Module" basedir="..">
<!--
Compile the Apache 2.0 Axis Server Module
-->
<target name="compileApache20Module">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<copy todir="${basedir}/include/apache2_0">
<fileset dir="${apache20.dir.server}/include" includes="**"/>
</copy>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${apache20.serverLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++">
<defineset>
<define name="APACHE2_0_EXPORTS"/>
</defineset>
</compiler>
<compiler refid="OS400icc"/>
<includepath path="${apache20.dir.server}/include" unless="windows"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_APACHE1_3"/>
</defineset>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker refid="VisualC++Linker"/>
<linker extends="OS400Linker">
<linkerarg value="-qDUPPROC"/>
<linkerarg value="-qDUPVAR"/>
<linkerarg location="end" value="${dir.bin}/lib${serverEngineLibraryName}.so"/>
<linkerarg location="end" value="${apache20.dir.server}/lib/libapr.so"/>
<linkerarg location="end" value="${apache20.dir.server}/lib/libhttpd.so"/>
</linker>
<libset dir="${apache20.dir.server}/lib" libs="libapr, libhttpd" if="windows"/>
<libset dir="${dir.bin}" libs="${serverEngineLibraryName}" unless="os400"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="server/apache2/*.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${apache20.serverLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<includepath path="${apache20.dir.server}/include"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_APACHE1_3"/>
</defineset>
<!-- Linkers -->
<linker extends="AIXLinker">
<linkerarg value="-r"/>
</linker>
<libset dir="${dir.bin}" libs="${serverEngineLibraryName}"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="server/apache2/*.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/buildClient.xml
Index: buildClient.xml
===================================================================
<project name="Axis C Client" default="compileAxisClient" basedir="..">
<!--
Compile the Axis Client Library
-->
<target name="compileAxisClient">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${clientLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++">
<defineset>
<define name="AXISCLIENTDLL_EXPORTS"/>
</defineset>
</compiler>
<compiler refid="OS400icc"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_CLIENT_LIB"/>
<define name="ENABLE_AXISTRACE" if="trace"/>
</defineset>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker refid="VisualC++Linker"/>
<linker refid="OS400Linker"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="common/*.cpp"/>
<include name="engine/*.cpp"/>
<include name="engine/client/*.cpp"/>
<include name="soap/*.cpp"/>
<include name="soap/*.c"/>
<include name="wsdd/*.cpp"/>
<include name="xml/*.cpp"/>
<include name="transport/axis/AxisTransportException.cpp"/>
<include name="platforms/os400/PlatformSpecificOS400.cpp" if="os400"/>
<!-- The following files need to be excluded -->
<exclude name="common/Packet.cpp"/>
<exclude name="common/AxisSocketUtils.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${clientLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="AXIS_CLIENT_LIB"/>
<define name="ENABLE_AXISTRACE" if="trace"/>
</defineset>
<!-- Linkers -->
<linker refid="AIXLinker"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="common/*.cpp"/>
<include name="engine/*.cpp"/>
<include name="engine/client/*.cpp"/>
<include name="soap/*.cpp"/>
<include name="soap/*.c"/>
<include name="wsdd/*.cpp"/>
<include name="xml/*.cpp"/>
<include name="transport/axis/AxisTransportException.cpp"/>
<!-- The following files need to be excluded -->
<exclude name="common/Packet.cpp"/>
<exclude name="common/AxisSocketUtils.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/buildDocumentation.xml
Index: buildDocumentation.xml
===================================================================
<project name="Axis C API Documentation" default="documentation" basedir="..">
<!--
Generate documention
Note: Requires doxygen be installed and available on the system path
-->
<target name="documentation" description="Generate documentation">
<exec executable="doxygen" dir="${basedir}/docs/apidocs">
<arg value="${basedir}/docs/apidocs/doxygenconf"/>
</exec>
</target>
</project>
1.1 ws-axis/c/build/buildInitialize.xml
Index: buildInitialize.xml
===================================================================
<project name="Initialize Apache Axis C Build" default="initialize" basedir="..">
<!--
Load definition of C/C++ Tasks and Types
To allow the compilation and linking of C/C++ code
-->
<taskdef resource="cpptasks.tasks"/>
<typedef resource="cpptasks.types"/>
<!--
Load definition of Additional Tasks and Types
-->
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<!--
These properties will be the same for all environments, so have not been
included within the property files
-->
<property name="dir.src" value="${basedir}/src"/>
<property name="dir.include" value="${basedir}/include"/>
<property name="dir.tools" value="${basedir}/tools"/>
<property environment="env"/>
<!--
Compiler Definitions
-->
<!-- Definition of cc compile for Solaris -->
<compiler id="SolarisCC" name="CC" if="solaris">
<compilerarg value="-g" if="debug"/>
<compilerarg value="-KPIC"/>
<compilerarg value="-xildoff"/>
<compilerarg value="-pta"/>
<compilerarg value="-instances=global"/>
<defineset>
<define name="ENABLE_AXIS_EXCEPTION"/>
<define name="HAVE_CONFIG_H"/>
<define name="PIC"/>
</defineset>
<includepath path="${dir.include}"/>
</compiler>
<!--
Definition of Visual C++ compiler
-->
<compiler id="VisualC++" name="msvc" if="windows">
<compilerarg value="/nologo"/>
<compilerarg value="/MD"/>
<!-- Display all warnings -->
<compilerarg value="/W3"/>
<compilerarg value="/GX"/>
<compilerarg value="/Gm" if="debug"/>
<compilerarg value="/ZI" if="debug"/>
<compilerarg value="/Od"/>
<includepath path="${dir.include}"/>
<defineset>
<define name="WIN32"/>
<define name="_DEBUG" if="debug"/>
<define name="NDEBUG" unless="debug"/>
<define name="_WINDOWS"/>
<define name="_MBCS"/>
<define name="_USRDLL"/>
<define name="ENABLE_AXIS_EXCEPTION"/>
</defineset>
<compilerarg value="/FD"/>
<compilerarg value="/c"/>
</compiler>
<!--
Definition of gcc compile for Linux
-->
<compiler id="Linuxgcc" name="g++" if="linux">
<compilerarg value="-g" if="debug"/>
<compilerarg value="-Wall"/>
<compilerarg value="-Wshadow"/>
<compilerarg value="-O2"/>
<defineset>
<define name="ENABLE_AXIS_EXCEPTION"/>
<define name="HAVE_CONFIG_H"/>
<define name="PIC"/>
</defineset>
<includepath path="${dir.include}"/>
</compiler>
<!--
Definition of xlc compile for AIX
-->
<compiler id="AIXxlc" name="xlC" if="aix">
<compilerarg value="-g" if="debug"/>
<compilerarg value="-V"/>
<compilerarg value="-qstaticinline"/>
<defineset>
<define name="ENABLE_AXIS_EXCEPTION"/>
<define name="HAVE_CONFIG_H"/>
<define name="AIX"/>
</defineset>
<includepath path="${dir.include}"/>
</compiler>
<!--
Definition of icc compile for OS400
-->
<compiler id="OS400icc" name="icc" if="os400">
<compilerarg value="-qLOCALETYPE=*LOCALEUCS2"/>
<compilerarg value="-qENUM=*INT"/>
<compilerarg value="-g" if="debug"/>
<defineset>
<define name="ENABLE_AXIS_EXCEPTION"/>
<define name="HAVE_CONFIG_H"/>
<define name="OS400"/>
<define name="AS400"/>
<define name="_XOPEN_SOURCE" value="520"/>
<define name="_MULTI_THREADED"/>
</defineset>
<includepath path="${dir.include}"/>
</compiler>
<!--
Linker Definitions
-->
<!-- Definition of Solaris linker -->
<linker id="SolarisLinker" name="CC" libtool="true" if="solaris">
<linkerarg value="-g" if="debug"/>
<linkerarg value="-Qoption"/>
<linkerarg value="ld"/>
<linkerarg value="-zmuldefs"/>
</linker>
<!--
Definition of Visual C++ linker
-->
<linker id="VisualC++Linker" name="msvc" if="windows">
<linkerarg value="/debug" if="debug"/>
<linkerarg value="/machine:I386"/>
<linkerarg value="/nologo"/>
<linkerarg value="/pdb:none"/>
</linker>
<!--
Definition of Linux linker
-->
<linker id="LinuxLinker" name="g++" libtool="true" if="linux">
<linkerarg value="-g" if="debug"/>
<libset libs="stdc++"/>
</linker>
<!--
Definition of AIX linker
-->
<linker id="AIXExecutableLinker" name="xlC" libtool="false" if="aix">
<linkerarg value="-g" if="debug"/>
</linker>
<linker id="AIXLinker" extends="AIXExecutableLinker" name="xlC" libtool="false" if="aix">
<linkerarg value="-qmkshrobj"/>
<linkerarg value="-L/usr/lib/threads"/>
<linkerarg value="-lpthreads"/>
<linkerarg value="-lm"/>
<linkerarg value="-lc_r"/>
<linkerarg value="-lc"/>
</linker>
<!-- Definition of OS/400 linker -->
<linker id="OS400Linker" name="ld" libtool="false" if="os400">
</linker>
<!--
Determine platform
-->
<target name="pre-init">
<condition property="solaris">
<os name="SunOS"/>
</condition>
<condition property="windows">
<os family="windows"/>
</condition>
<condition property="aix">
<os name="AIX"/>
</condition>
<condition property="linux">
<os name="Linux"/>
</condition>
<condition property="os400">
<os name="OS/400"/>
</condition>
</target>
<!--
Initialize properties
-->
<target name="initialize" depends="pre-init">
<condition property="platform" value="SunOS">
<isset property="solaris"/>
</condition>
<condition property="platform" value="Win32">
<isset property="windows"/>
</condition>
<condition property="platform" value="Linux">
<isset property="linux"/>
</condition>
<condition property="platform" value="AIX">
<isset property="aix"/>
</condition>
<condition property="platform" value="OS400">
<isset property="os400"/>
</condition>
<tstamp >
<format property="revision" pattern="yyyy_MM_dd"/>
</tstamp>
<!--
Load versioning information from version.properties
-->
<property file="${basedir}/build/version.properties"/>
<!-- Load properties from file -->
<property file="${basedir}/build/build.${platform}.properties"/>
</target>
</project>
1.1 ws-axis/c/build/buildServerEngine.xml
Index: buildServerEngine.xml
===================================================================
<project name="Axis C Server Engine" default="compileAxisServerEngine" basedir="..">
<!--
Compile the Axis Server Library
-->
<target name="compileAxisServerEngine">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${serverEngineLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++">
<defineset>
<define name="DYNALIB_EXPORTS"/>
</defineset>
</compiler>
<compiler refid="OS400icc"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="ENABLE_AXISTRACE" if="trace"/>
</defineset>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker refid="VisualC++Linker"/>
<linker refid="OS400Linker"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="common/*.cpp"/>
<include name="engine/*.cpp"/>
<include name="engine/server/*.cpp"/>
<include name="soap/*.cpp"/>
<include name="soap/*.c"/>
<include name="wsdd/*.cpp"/>
<include name="xml/*.cpp"/>
<include name="platforms/os400/PlatformSpecificOS400.cpp" if="os400"/>
<!-- The following files need to be excluded @Adrian - query these! -->
<exclude name="common/Packet.cpp"/>
<exclude name="common/AxisSocketUtils.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${serverEngineLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<!-- Additional compiler flag for Client library on all platforms -->
<defineset>
<define name="ENABLE_AXISTRACE" if="trace"/>
</defineset>
<!-- Linkers -->
<linker refid="AIXLinker"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="common/*.cpp"/>
<include name="engine/*.cpp"/>
<include name="engine/server/*.cpp"/>
<include name="soap/*.cpp"/>
<include name="soap/*.c"/>
<include name="wsdd/*.cpp"/>
<include name="xml/*.cpp"/>
<include name="transport/axis/AxisTransportException.cpp"/>
<!-- The following files need to be excluded -->
<exclude name="common/Packet.cpp"/>
<exclude name="common/AxisSocketUtils.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/buildSimpleAxisServer.xml
Index: buildSimpleAxisServer.xml
===================================================================
<project name="Axis C Simple Axis Server" default="compileSimpleAxisServer" basedir="..">
<!--
Compile the Simple Axis Server
-->
<target name="compileSimpleAxisServer">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<cc outfile="${dir.bin}/${simpleAxisServerExecutableName}" objdir="${dir.objects}"
exceptions="true" outtype="executable" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++"/>
<compiler refid="AIXxlc"/>
<compiler refid="OS400icc"/>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker extends="VisualC++Linker">
<syslibset libs="wsock32"/>
</linker>
<linker refid="AIXExecutableLinker"/>
<linker refid="OS400Linker"/>
<libset dir="${dir.bin}" libs="${serverEngineLibraryName}"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="server/simple_axis_server/*.cpp"/>
</fileset>
</cc>
</target>
</project>
1.1 ws-axis/c/build/buildTraceTool.xml
Index: buildTraceTool.xml
===================================================================
<project name="Apache Axis C Trace Tool" default="" basedir="..">
<!--
Compile the Trace tool
-->
<target name="compileTraceTool" depends="initialize">
<mkdir dir="${dir.classes}"/>
<javac srcdir="${dir.tools}/trace" destdir="${dir.classes}"/>
</target>
<!--
Package Trace tool code into tracetool.jar
-->
<target name="buildTraceTool" depends="compileTraceTool">
<jar jarfile="${dir.classes}/tracetool.jar" basedir="${dir.classes}">
<include name="org/apache/axis/tracetool/**"/>
<manifest>
<attribute name="Main-Class"
value="org.apache.axis.tracetool.AddEntryAndExitTrace"/>
</manifest>
</jar>
</target>
<target name="copyUntracedSource">
<copy todir="${dir.src.instrumented}">
<fileset dir="${dir.src}">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="runTraceTool" depends="copyUntracedSource">
<java jar="${dir.classes}/tracetool.jar" fork="true">
<arg value="${dir.src.instrumented}"/>
</java>
</target>
<!--
Compile, package and run the trace tool
-->
<target name="addTrace" depends="buildTraceTool, runTraceTool"
description="Compile, jar and run the trace tool"/>
</project>
1.1 ws-axis/c/build/buildTransport.xml
Index: buildTransport.xml
===================================================================
<project name="Axis C Transport" default="compileAxisTransport" basedir="..">
<!--
Compile the Axis Transport Library
-->
<target name="compileAxisTransport">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${transportLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler extends="VisualC++">
<defineset>
<define name="AXISTRANSPORTDLL_EXPORTS"/>
</defineset>
</compiler>
<compiler refid="OS400icc"/>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="LinuxLinker"/>
<linker extends="VisualC++Linker">
<syslibset libs="wsock32"/>
</linker>
<linker refid="OS400Linker"/>
<!-- Files to compile -->
<fileset dir="${dir.src}">
<include name="transport/${transport}/*.cpp"/>
<!-- The following files need to be excluded -->
<exclude name="transport/${transport}/SecureChannel.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${transportLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<!-- Linkers -->
<linker refid="AIXLinker"/>
<!-- Files to compile -->
<fileset dir="${dir.src}">
<include name="transport/${transport}/*.cpp"/>
<!-- The following files need to be excluded -->
<exclude name="transport/${transport}/SecureChannel.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/buildWSDL2Ws.xml
Index: buildWSDL2Ws.xml
===================================================================
<project name="Axis C WSDL2Ws" default="compileWSDL2Ws" basedir="..">
<target name="compileWSDL2Ws">
<mkdir dir="${dir.classes}"/>
<!-- Setup classpath for compiling WSDL2Ws -->
<path id ="cp">
<fileset dir="${dir.axisJARs}" includes="*.jar"/>
</path>
<!-- Compile WSDL2Ws -->
<javac srcdir="${dir.src}/wsdl" destdir="${dir.classes}">
<classpath refid="cp"/>
</javac>
</target>
<target name="buildWSDL2WsJARFile">
<jar jarfile="${dir.classes}/wsdl2ws.jar" basedir="${dir.classes}">
<include name="org/apache/axis/wsdl/**"/>
<manifest>
<attribute name="Main-Class"
value="org.apache.axis.wsdl.wsdl2ws.WSDL2Ws"/>
</manifest>
</jar>
</target>
</project>
1.1 ws-axis/c/build/buildXMLParser.xml
Index: buildXMLParser.xml
===================================================================
<project name="Axis C XML Parser" default="compileAxisXMLParser" basedir="..">
<!--
Compile the Axis XML Parser Library
-->
<target name="compileAxisXMLParser">
<mkdir dir="${dir.objects}"/>
<mkdir dir="${dir.bin}"/>
<if>
<not>
<isset property="aix"/>
</not>
<then>
<cc outfile="${dir.bin}/${xmlParserLibraryName}" objdir="${dir.objects}"
exceptions="true" outtype="shared" multithreaded="true">
<!-- Compilers -->
<compiler refid="SolarisCC"/>
<compiler refid="Linuxgcc"/>
<compiler refid="AIXxlc"/>
<compiler extends="VisualC++">
<defineset>
<define name="AXISXMLPARSERXERCES_EXPORTS"/>
</defineset>
</compiler>
<compiler refid="OS400icc"/>
<!-- Additional include directory for XML Parser -->
<includepath path="${dir.xmlParser}/include"/>
<includepath path="${dir.xmlParser}/lib"/>
<!-- Linkers -->
<linker refid="SolarisLinker"/>
<linker refid="VisualC++Linker"/>
<linker refid="LinuxLinker"/>
<linker refid="AIXLinker"/>
<linker extends="OS400Linker">
<linkerarg value="-qDUPPROC"/>
<linkerarg value="-qDUPVAR"/>
<linkerarg location="end" value="${dir.xmlParser}/lib/${xmlParserLibrary}.so"/>
</linker>
<!-- Additional library of XMLParser -->
<libset dir="${dir.xmlParser}/lib" libs="${xmlParserLibrary}" unless="os400"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="xml/${xmlParser}/*.cpp"/>
<include name="xml/AxisParseException.cpp"/>
</fileset>
</cc>
</then>
<else>
<cc outfile="${dir.bin}/${libraryPrefix}${xmlParserLibraryName}${librarySuffix}" objdir="${dir.objects}"
exceptions="true" multithreaded="true">
<!-- Compilers -->
<compiler refid="AIXxlc"/>
<!-- Additional include directory for XML Parser -->
<includepath path="${dir.xmlParser}/include"/>
<includepath path="${dir.xmlParser}/lib"/>
<!-- Linkers -->
<linker refid="AIXLinker"/>
<!-- Additional library of XMLParser -->
<libset dir="${dir.xmlParser}/lib" libs="${xmlParserLibrary}"/>
<!-- Files to be compiled -->
<fileset dir="${dir.src}">
<include name="xml/${xmlParser}/*.cpp"/>
<include name="xml/AxisParseException.cpp"/>
</fileset>
</cc>
</else>
</if>
</target>
</project>
1.1 ws-axis/c/build/version.properties
Index: version.properties
===================================================================
#############################################################
# This file contains the versioning information for Axis C #
#############################################################
majorVersion = 1
minorVersion = 0
# revision = 0
#version = ${majorVersion}.${minorVersion}.${revision}
version = ${majorVersion}.${minorVersion}