The buildsamples script
The buildsamples script allows you to make changes to the sample source code and then build the changed samples. This script is located in the /QIBM/ProdData/WebAS5/Base/samples/bin directory.
Note: To install the changed samples, see The installsamples script.
Product
The buildsamples script is available in the WebSphere Application Server product only.
Authority
No special authority is needed to run this script. However, have *RX authority to the source and write authority to the destination directory.
Syntax
The syntax of the buildsamples script is:
buildsamples [-instance instance] [-srcdir sourcedir] [-destdir destinationdir] [-sample name] [-help | -?]Parameters
The parameters of the buildsamples script are:
-instance
Optional. The value instance specifies the name of the instance that contains the application server in which you want to build the samples. The default value is default.-srcdir
Optional. The value sourcedir specifies the directory that contains the source code for the samples that you want to build. The default value is /QIBM/UserData/WebAs5/Base/instance/samples/src, where instance is the value specified by the -instance parameter.-destdir
Optional. The value destinationdir specifies the directory to which the script writes the EAR files and javadoc for the built samples. The default value is /QIBM/UserData/WebAs5/Base/instance/samples, where instance is the value specified by the -instance parameter.-samplename
Optional. The value samplename specifies the sample that you want to build. Valid values are MessageDrivenBeans, PlantsByWebSphere, and TechnologySamples. You can specify more than one of these samples. If you do not specify this parameter, the script builds all of the samples.-help or -?
This optional paramter prints the usage statement for the script.
Examples
These examples demonstrate correct syntax:
buildsamples -instance myinstThis example builds all of the sample applications for the myinst instance.
buildsamples -srcdir /QIBM/UserData/WebAS5/Base/myinst/temp -destdir /QIBM/UserData/WebAS5/Base/newinst/samples -MessageDrivenBeansThis example builds the MessageDrivenBeans sample from the temp directory of the myinst instance to the samples directory of newinst instance.