dev@jax-ws.java.net

Re: Writing user documents productively

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Mon, 23 Oct 2006 15:49:27 -0700

I dont see attachment, it was filtered :

"

The original attachment "WaitForChange.exe" has been
 removed from this email because it contained a type of
 attachment known to carry viruses and other harmful software.
 The attachment has been removed for your protection, as
 well as that of Sun's network.


"

-vivek.
Kohsuke Kawaguchi wrote:
> Arun mentioned that the use of htmlmacro made it harder to use HTML
> editors, so this e-mail explains a tip that I do to compensate that.
>
> The attached program is written in .NET. It takes a list of files as
> an argument, and monitors any change in those files. When a change is
> detected, it returns a non-0 exit code. Or you can also hit ENTER to
> terminate the program immediately with 0 exit code.
>
> This program, with a bit of scripting, can be very handy with
> automatically doing some work when something happens. The following
> script is what I use to automatically run htmlmacro whenever I hit
> 'save' on the editor. This allows me to get a relatively quick
> feedback on what's I'm typing.
>
> #!/bin/sh
> while true;
> do
> WaitForChange docs/*.html docs/style/*.css
> [ $? != 0 ] || exit;
> ant docs
> done
>
> The program can be used for other small automations.
>
>
> ------------------------------------------------------------------------
>
> ================================================================
>
> The original attachment "WaitForChange.exe" has been
> removed from this email because it contained a type of
> attachment known to carry viruses and other harmful software.
> The attachment has been removed for your protection, as
> well as that of Sun's network.
>
> If you know the sender and were expecting the attachment,
> please contact the sender and have them re-send the file using
> the .zip format. If the sender is unknown or if the email
> looks unusual or is unexpected, please delete it now.
>
> Additional information: http://antivirus.central.sun.com/
>
> ================================================================
>