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
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
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
> 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/$
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
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" />
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
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
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
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
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
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
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
13 matches
Mail list logo