
1. launch the script (or fasl) in a background process (think server.fasl -start & #server keeps running, but the script exits)
2. same script (whit another parameter), or another script that tells the server to stop.
I tried to find a simple setup for Hunchentoot or Webdav (this would probably fit well), but didn't find anything simple / good enough to even explain the process.
Think something like this:
Code: Select all
<target ...>
<exec name="shell-or-lisp-script" spawn="if-you-need?">
<arg value="start-server"/>
</exec>
<junit .../><!-- a bunch of unit tests that talk to the server -->
<exec name="shell-or-lisp-script" spawn="if-you-need?">
<arg value="stop-server"/>
</exec>
</target>