Appendix B. Creating source and binary distributions

The wsrf/build.xml Ant script can be used generate Java WS Core source and/or binary distributions. Use the following syntax to create the distributions:

ant <distTask> -Dsrc.tag=<tag>
      -Dversion=<version>

The <distTask> must be one of:

  • distSource - create source code only distribution

  • distBinary - create binary only distribution

  • dist - create source and binary distributions

The -Dsrc.tag specifies the CVS tag and -Dversion specifies the version of the code. Make sure to execute this Ant script from within the wsrf/ directory. Each of these tasks checks out the source code from the CVS and uses it to create the distributions.

Source-only example:

ant distSource -Dsrc.tag=globus_4_0_3 -Dversion=4.0.3

The above command will create ws-core-<version>-src.zip and ws-core-<version>-src.tar.gz files under the wsrf/ directory.

Binary-only example:

ant distBinary -Dsrc.tag=globus_4_0_3 -Dversion=4.0.3

The above command will create ws-core-<version>-bin.zip and ws-core-<version>-bin.tar.gz files under the tmp/ws-core-<version>/ directory.

Source and binary example:

ant dist -Dsrc.tag=globus_4_0_3 -Dversion=4.0.3

The above command will generate both distributions at the same time.

1. In-place binary distributions

A binary distribution can also be created from the existing source code by running (in the wsrf/ directory):

ant distbin

The above command will create ws-core-<version>-bin.zip and ws-core-<version>-bin.tar.gz files in the current directory.