| globus-build-service Documentation |
|
|
|
The globus-build-service script will help you build a GT4 service
without having to write your own Ant file. The following documentation
still has to be extended to make it less like a reference guide and
more like a user guide. ParametersThe parameters accepted by the script are listed in the table below (the BASH and Python script accept the same parameters). $BUILD_DIR denotes the directory from which the script is run. Also, you can see the list of parameters from the command line by running globus-build-service with the -h parameter./globus-build-service.sh -h
Shorthand notationThe script offers a convenient shorthand way of building services without having to type the service directory and schema file every time. You must have a build.mappings file in the same directory as the build script, with one line for each service using the following format:SERVICE_ID,SERVICE_DIR,SCHEMA_FILE SERVICE_ID must be a unique identifier (without whitespace). To use the shorthand notation, you simply have to run the script like this: ./globus-build-service For example, if we use the following build.mappings file: first,org/globus/examples/services/core/first,schema/examples/MathService_instance/Math.wsdl We would run the script like so: ./globus-build-service first You can optionally specify a target (as described in the table above). However, in the shorthand notation you do not need to use the -t parameter. Simply specify the target as a second parameter. For example: ./globus-build-service first compileStubs Finally, if you need to include a factory WSDL file, then use the following format: SERVICE_ID,SERVICE_DIR,SCHEMA_FILE,FACTORY_SCHEMA_FILE
The GAR file is generated in $BUILD_DIR/GAR_ID.gar. The GAR
ID is generated from the SERVICE_DIR parameter by replacing the
path separators (/ in UNIX, \ in Windows) with underscores. For
example, if our parameter is:
All the intermediate files generated by the build script are placed
in $BUILD_DIR/build. Some times, the build script can produce
unexpected results if you've performed a lot of different builds (and
the build directory gets filled with the intermediate files of previous
builds). Whenever you get an unexpected error, the first thing you
should try is to erase the build directory, which will make sure that
the build script starts from scratch. |
|||||||||||||||||||

