NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
In a previous post I've shown how to put together a simple build system using JWSC
. That article is useful, but what if you need to package additional jar files into your web application? This article shows you how.
This article builds on the build system that I've already provided so I'm only going to show the additional parts that need to be added.
First a path element
needs to be defined. This will will store the locations of all of the additinal jar files
that should be added into the war file
. In this example, just one extra jar file
is packaged, myextralib.jar
Second, all of the files defined in the path element
above need to be assembled into a single directory.
Last, a zipfileset element
is added into the module element
of the jwsc task
. This is where the jar files
get packaged into the war file
A quick and easy addition. Enjoy!
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...