You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sullivan, Sean C - MWT" <Su...@menlolog.com> on 2004/01/17 01:06:37 UTC

Does Ant have a task?

Does Ant have a <diff> task?

I would be happy if there was a task that behaved 
similar to the UNIX diff command.

-Sean

> -----Original Message-----
> From: Sullivan, Sean C - MWT
> Sent: Friday, January 16, 2004 3:36 PM
> To: user@ant.apache.org
> Subject: Looking for an XMLDiff task
> 
> 
> I want to be able to produce a report that shows the
> differences between two XML documents.
> 
> I am looking for an XMLDiff task that produces reports
> similar to Ant's CvsTagDiff.
> 

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


Re: Does Ant have a task?

Posted by Yuji Yamano <yy...@kt.rim.or.jp>.
On Fri, 16 Jan 2004 16:06:37 -0800,
"Sullivan, Sean C - MWT" <Su...@menlolog.com> wrote:

> Does Ant have a <diff> task?
> 
> I would be happy if there was a task that behaved 
> similar to the UNIX diff command.

If you have the diff command on your box, you can use <exec> 
task like this:

<target name="diff">
  <exec dir="." executable="diff.exe" output="patch">
    <arg line="-u"/>
    <arg file="foo.txt"/>
    <arg file="bar.txt"/>
  </exec>
</target>

Yes, it's a platform dependent solution:-(

-- Yuji Yamano

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