Using filename in xmltask sections at runtime

Xmltask is a valuable extension to Apache ANT for processing XML files. It is possible to apply one same task to multiple XML-files using wildcards in the attribute source of xmltask or by using the type. The capability of using wildcards in the attribute source will be deprecated, so it would be wise to anticipate on this by using using the type when using wildcards. When processing multiple files using xmltask it would be nice to have the name of the file being processed at runtime, however xmltask does not supply a way to extract or use this filename as a property. You can workaround this is by using a separate target looping through the files in the file set and calling your xmltask target for each of the files in the file set passing the filename as a parameter.

Read More...
Comments

SoapUI install directory detection / mockservice execution script

For some 'homework' i needed a (bash) script to start the soapUI mockservicerunner on Oracle Linux which could start the mock service regardless of the soapUI installation directory. I could not find a single reference to the installation directory, and therefore wrote some code to find the installation location, To speed up the detection the script first searches the directories where you might expect to find soapUI, secondly in less logical locations. When found, the soapUI installation directory is stored in the script itself to speed up future executions of the script. Here it is, have fun !

Read More...
Comments