Hi Russel,
On Apr 28, 2008, at 3:57 PM, Russel Winder wrote:
. . . it seems it is read-only.
Thanks for the hint. I have added 'create page' permissions to
confluence-users.
I wrote this shell script that builds an installation of Gradle out of
the Subversion store. So "cd <gradle-svn-checkout> && svn update &&
installGradle".
Obviously the paths are specific to my installation but. . .
#! /bin/sh
gradleSvn=/home/Checkouts/Subversion/Gradle_Core_Trunk
gradleExplodedDist=$gradleSvn/build/distributions/exploded
gradleHome=$HOME/lib/JavaPackages/gradle-trunk
items=''
for item in bin gradle-imports lib LICENSE NOTICE plugin.properties
README.txt
do
items="$items $gradleExplodedDist/$item"
done
( cd $gradleSvn && rm -rf $gradleSvn/build $gradleSvn/build-resolver
&& ./gradlew -Dskip.test=true explodedDist )
rm -rf $gradleHome
mkdir $gradleHome
chmod 700 $gradleHome
cp -rp $items $gradleHome
Very cool. This functionality is eventually going to make it into the
core. I've added the script to http://jira.codehaus.org/browse/GRADLE-68
I'm not happy that you still have to use -Dskip.test=true :(
We use the AntBuilder with the delete task to remove this directory.
It works for you with an Ant build script. Our code to remove it is:
static void deleteDir(File dir) {
assert !dir.isFile()
if (dir.isDirectory()) {new AntBuilder().delete(dir: dir)}
}
Could you give this also a try?
Thanks
- Hans
--
Russel.
====================================================
Dr Russel Winder Partner
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084
London SW11 1EN, UK. m: +44 7770 465 077
--
Hans Dockter
Gradle Project lead
http://www.gradle.org