This build file uses the wldeploy task to do the deployment to WebLogic, this is added from the wlfullclient.jar file which is assumed to be stored in the lib directory.
The shared library information is as follows:
- Name: com.example.mysharedlib
- Jar files: commonjar1.jar, commonjar2.jar
- Version 1.0 (both specification and implementation)
- Shared library package: my_shared_lib.war
The build file assumes that there is a lib and dist directory already created in the same location as the build file. The lib directory is expected to have the wlfullclient.jar as well as the actual jar files that will be packaged into the shared library WAR file. The WAR file will be placed into the dist directory.
The sharedlibs-package target can have multiple war tasks added to it to create multiple shared libraries. The sharedlibs-deploy task can have additional antcalls to the wlsdeploy target added to then deploy these libraries. The wlsdeploy target first undeploys the existing deployment before deploying it again.
A number of other properties are defined in the script that specify the default WebLogic admin server, user and password as well as the target list. The target list in the script includes just the AdminServer, this should be changed to the actual WebLogic server that the shared library is to be deployed into.