Try something like this:

<exec executable="tidy">
  <arg line="-asxml c100.html" />
</exec>

You don't need to run the shell to use TIdy, you can call Tidy directy.

As far as I know, Ant will run the commands from the directory where
the build file is located.

Carlos

On Thu, Aug 30, 2012 at 10:31 AM, Kevin Kim <k...@jonesmcclure.com> wrote:
> Completely beginner in ANT here, I am trying to run HTML Tidy with the exec 
> command, and stuck on how to implement this since I am still unfamiliar with 
> the syntax.
>
> <exec executable="cmd">
>
>             <arg path="Users\kkim\Desktop" />
>             <arg value="tidy" />
>             <arg value="-asxml" />
>             <arg value="c100.html" />
>
>      <!--       <arg line="tidy -asxml c100.html" />-->
>
>         </exec>
>
> Am I on the right track here at all? I am trying to get Windows cmd to run 
> the command line "tidy -asxml c100.html." I also need to run this command 
> line from a specific directory (my desktop), which I tried doing with arg 
> path?
>
>
> Thanks,
> Kevin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to