Run weather sample from Whack

Hello, all.

To run weather sample by Ant you need:

  1. Build ‘‘weather-comp.jar’’ by Ant and copy it to the library folder …/whack/sample/weather/build/lib/merge/.

For building weather-comp.jar go to …/whack/sample/weather/build/. You can see here build.xml file.

Next step you should execute in console ‘‘ant dist’’. There is an appeared …/whack/sample/weather/target/lib/weather-comp.jar. Copy it to …/whack/sample/weather/build/lib/merge/.

List of libraries at …/lib/merge/:

commons-httpclient.jar

commons-logging.jar

dom4j.jar

jakarta-oro.jar

jweather.jar

libidn.jar

log4j.jar

slf4j-api.jar

slf4j-log4j12.jar

stringprep.jar

tinder.jar

weather-comp.jar

whack.jar

xpp3.jar

  1. Add new Ant targets and tasks to the build.xml as in my examle, see below

Content build.xml:

Running External component

  1. At last execute in console ‘‘ant run’’.

That’s all. First step for learning External component we can do!