You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by he...@yawido.de on 2006/07/27 16:10:19 UTC

binary Diff. with ANT?

Hi,

I am on the way to build a script to find diffs between same files on different
systems... (Differenz in version for ex.)

Are there some possibilities to implement this with ant??


Thanks 4 helping..

Beni



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


Re: binary Diff. with ANT?

Posted by he...@yawido.de.
Hi,
I have solution for that:
The fileset-Tag has the element <different>...
How it works:

The <different> tag selects files who are deemed to be 'different' from 
another,
equivalent file in another location. The rules for determining difference
between two files are as follows:

   1. If there is no 'other' file, it's different.
   2. Files with different lengths are different.
   3. If ignoreFileTimes is turned off, then differing file timestamps will
cause files to be regarded as different.
   4. UnlessignoreContents is set to true, a byte-for-byte check is run against
the two files

That what I'm searching for. But so easy how it desciped isn't it.

I create a test-build-file for doing a similiar diff between two dirs.

  <target name="diff" >
        <fileset dir="v1" includes="**/*.*">
        	<different targetdir="v2" ignorefiletimes="false" />
        </fileset>
    </target>

-->
Buildfile: C:\workspace\Synchro - Tool\diff\build.xml
diff:
BUILD SUCCESSFUL
Total time: 469 milliseconds

Everytime this build is successful, however I declare targetdir as 
"dgthsdhdd"..
The dirs v1 & v2 are absolutly different.... ?





Zitat von heisch@yawido.de:

> Hi,
>
> I am on the way to build a script to find diffs between same files on 
> different
> systems... (Differenz in version for ex.)
>
> Are there some possibilities to implement this with ant??
>
>
> Thanks 4 helping..
>
> Beni
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>




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