Re: AW: AW: Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
No, I want the opposite. If there is *any* file already there with the same name, regardless of when it was created, DONT copy it. On Jan 7, 2008, at 10:22 PM, <[EMAIL PROTECTED]> wrote: copies "a" to "b" only if - "a" is newer than "b" or - "b" is not present. If you want that "a" should

AW: AW: Easier Way To Check and Install jars

2008-01-07 Thread Jan.Materne
copies "a" to "b" only if - "a" is newer than "b" or - "b" is not present. If you want that "a" should always be copied, set "overwrite" attribute to true. See manual::CoreTasks::copy Jan > -Ursprüngliche Nachricht- > Von: Francisco Tolmasky [mailto:[EMAIL PROTECTED] > Gesendet: D

Re: AW: Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
Is there a way to have copy not copy regardless of whether there is a newer or older version already there? Francisco On Jan 7, 2008, at 10:05 PM, <[EMAIL PROTECTED]> wrote: Easier would be just to do a would check if the target file exists or is older than the cop

AW: Easier Way To Check and Install jars

2008-01-07 Thread Jan.Materne
> I wrote up a "short" install target in my ant file to make > sure I have > everything necessary to run script tasks, but it seems overly > verbose > for such a simple task: > > You cant use properties in the if/unless attribute of the target. > > "Tools/Ant/$

Ant and Ping Question

2008-01-07 Thread Z W
Hi Gurus Is there a jar file out there that provides ping task to verify if a host connection is working ? Another approach I have is to use cgwin with ant < exec dir=" ." executable= "cygwin.bat" os= "Windows XP" timeout ="1000" failonerror ="true"> < arg line=" _build_ping_alive.sh"/> _buil

Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
I wrote up a "short" install target in my ant file to make sure I have everything necessary to run script tasks, but it seems overly verbose for such a simple task: "Tools/Ant/${JarName}.jar" />

Ant and Ping

2008-01-07 Thread Z W
Hi Gurus Is there a jar file out there that provides ping task to verify if a host connection is working ? Another approach I have is to use cgwin with ant _build_ping_alive.sh === #!/usr/bin/bash ping linpacdb1 -t 1 | sed '1,4d' | grep -o 100.0 ping linpacdb1 -t 1 | s

Re: updated files

2008-01-07 Thread David Weintraub
Exactly what are you attempting to do? You need a comparison to see whether a file is up to date. For example, a *.class file should be newer than the corresponding *.java file. There are two mechanisms that can do this. You can use either the standard task or the AntContrib task: In the stand

Problem with import using property file

2008-01-07 Thread Nilesh Sharma
Guys, I am facing a l,ittle problem with the ant build. Here is the problem description: I am having three folders: A ->B -> C folder A contains B and B contains C A also contains: base.properties build-common.xml build-common.xml calls buildA.properties inside and able

updated files

2008-01-07 Thread I am Who i am
Hi All, How to list the files updated? I mean if i want to check the file is updated or not how to do it with ant?, i remember some time back seeing something like if="updated" may be i'm wrong... Please help me if any one knows how to do it

RE: environment attribute

2008-01-07 Thread Chuck Holzwarth
Try using the ant exec task to run the env command. Are you sure the HOSTNAME variable is exported to sub shells? Does cruisecontrol execute under your ID or asynchronously? It is possible that cruisecontrol runs under a different ID even if you kick it off manually. The output of the env comman

AW: building ant from source and junit build error

2008-01-07 Thread Jan.Materne
1. Have a clean Ant-src directory ( /tmp/ant/apache-ant-1.7.0 ), means: - no "build" - no "bootstrap" - no "dist" On windows I use a small batch file: @echo off rd /Q/S bootstrap build dist del *.log del TEST-*.* 2. Build Ant and provide the path to add

Syntax Error when loading property file after concatting several property files

2008-01-07 Thread Elvis Napoleon
I have three property files ( one for common properties, one for version branch specific properties and one for release/build specific properties). In build file I concat these files to one and then load properties. I get Syntax error in property ${dest_root}\${version_pref It should be ${dest_root