Author: jfrederic.clere(a)jboss.com
Date: 2009-03-12 05:58:27 -0400 (Thu, 12 Mar 2009)
New Revision: 2352
Modified:
trunk/mod_cluster/test/java/installhttpd.sh
Log:
Don't remove the file but download it if it doesn't exist...
Modified: trunk/mod_cluster/test/java/installhttpd.sh
===================================================================
--- trunk/mod_cluster/test/java/installhttpd.sh 2009-03-12 09:25:13 UTC (rev 2351)
+++ trunk/mod_cluster/test/java/installhttpd.sh 2009-03-12 09:58:27 UTC (rev 2352)
@@ -154,8 +154,13 @@
else
if [ "x${BUILDTEST}" = "xN" ]
then
- rm -f ${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT}
- ant downloadfile -Dsourcefile=${TARBALL}
-Ddestfile=${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT} -Ddestdir="$BASELOC"
+ # rm -f ${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT}
+ if [ ! -f ${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT} ]
+ then
+ ant downloadfile -Dsourcefile=${TARBALL}
-Ddestfile=${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT} -Ddestdir="$BASELOC"
+ else
+ echo "Warning the file ${PACKVER}-${BUILD_SYS}-${BUILD_CPU}.${EXT} is
reused"
+ fi
else
echo "Using $root"
EXT=file
Show replies by date