Hi Alex,
ok, bad news, the problem persists. But now I have steps for you to
easily reproduce this:
- get Ubuntu 12.04 LTS Server 64 bit and install on some VM (VirtualBox)
- run the following commands:
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude install openjdk-7-jdk unzip
wget http://buildr.apache.org/scripts/install-linux.sh
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
sudo env JAVA_HOME=$JAVA_HOME ./install.sh # fails in Ubuntu 12.04 LTS,
need to manually "gem update --system"
wget http://www.der-ingo.de/buildr-fail.tgz # get demo project
tar -xzf buildr-fail.tgz
cd buildr-fail
./build.sh
Things to note:
- www.der-ingo.de is my personal homepage, I am not a fan of file
sharing sites ;)
- The tgz contains pretty much the same project which I described in my OP.
- The build.sh script runs buildr 20 times, extracts a PNG from the WAR,
logs the PNG file size to a file and then display all different lines of
the logfile
- You can enabled a traced build in the build.sh. Maybe you should put a
sleep 1 in the loop.
If you run all that on Ubuntu Server 13.04, then everything works as
expected!
So I hope this helps you track down the problem. Looks like it's hidden
somewhere in Ruby and not buildr.
Any hint as to how to work around this problem is highly appreciated!
Cheers, Ingo =;->