ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ditrick, Gregory" <>
Subject Testing a file if it is binary or not.
Date Mon, 20 Aug 2007 19:01:00 GMT
This may not be for this forum, but I'm moving a PVCS repository to a
CVS repository.  I'm using ant to do this with cvs and pvcs tasks.  I
have to test a if a file is binary or not before adding it to CVS, but I
have to do this on a Windows box.  It is easy on Unix (file <filename> |
grep...) or using <ac:if><scriptcondition> or <ac:shellscript>.  Does
anyone have any ideas other than using the files extension as a guide
and praying that you have them correct and don't miss any?  Yuck!

CVS requires you to designate the file type as binary fro binary files
when adding the file.  Other SCM usually handle this internally.

I really hate PVCS and CVS.  I wish they would be switching SVN or
Perforce.  I prefer Perforce over all SCMs.  I tried my best to convince
the company I'm contracting at to switch to Perforce, but too much of an
up hill battle.

Thanks in advance,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message