Re: Comparing two files

2005-09-02 Thread Matt Benson
--- Nicolas Vervelle <[EMAIL PROTECTED]> wrote: > Hi, > > there's probably a simple way to do it, but I don't > know how. > > I want to compare two files (see if they have the > same contents, > timestamp can be different) and then if they differ > I want to copy an > other file. > Can someone

Re: Comparing two files

2005-09-02 Thread Juergen Hermann
On Fri, 02 Sep 2005 19:03:53 +0200, Nicolas Vervelle wrote: loadfile them into 2 properties and then use a condition. >Hi, >there's probably a simple way to do it, but I don't know how. >I want to compare two files (see if they have the same contents, >timestamp can be different) and then if

Re: xslt task fails with : Fatal Error! Content is not allowed in prolog.

2005-09-02 Thread Juergen Hermann
On Thu, 1 Sep 2005 10:27:16 -0700 (PDT), Thomas SMETS wrote: your problem is not the task, but either your .xml or .xsl file, one of them is not well-formed. >My XSLT to transform the XML report from checkstyle fails with the following message : > Fatal Error! Content is not allowed in prolog

Comparing two files

2005-09-02 Thread Nicolas Vervelle
Hi, there's probably a simple way to do it, but I don't know how. I want to compare two files (see if they have the same contents, timestamp can be different) and then if they differ I want to copy an other file. Can someone help me ? Thanks in advance, Nicolas PS: If you need more infos, he

RE: Problem with param expansion

2005-09-02 Thread Rebhan, Gilbert
OK now, it works with user@{server } the ant manual says = "The escape sequence @@ is used to escape @" so for my understaning it should work with = user{server } but that's expanded as [EMAIL PROTECTED] Anyway, the expansion with macrodef is a bit complicated ;-) Regards, Gilbert

Problem with param expansion

2005-09-02 Thread Rebhan, Gilbert
Hi, after fixing my other problems with and property expansion, one problem remains = my script has = i'm using the exec because with ant and scp task i have no option to preserve the timestamp [ feature request = preservelastmodified

RE: [JUnit] fork mode other than "yes" ignores classpath

2005-09-02 Thread Keith Hatton
Hi Marcel, I don't think you are doing anything wrong, and I don't think it is necessarily a bug either. Generally -type elements are only used when Ant starts a new JVM (, , etc.), so this would require your or element to have a fork="true" attribute. However the Ant manual (http://ant.apac

Wrong revision checkout with in cvs task

2005-09-02 Thread Leon Pu
Hi all, I used following build script to checkout a jar with appointed tag from my cvs repository, but it retrieved the newest revision jar to me. After I changed the build script to following new one, I get the correct file with the tag from cvs. Did anybody meet this situa

[JUnit] fork mode other than "yes" ignores classpath

2005-09-02 Thread Marcel Stör
Hi all, In my Ant script (see below) I define my own classpath via a element. Within the target I refer to it via . However, JUnit seems to ignore this classpath completely and uses ${java.class.path} only, unless I use http://www.frightanic.com