From: wisberg Date: Fri, 3 Jun 2005 10:33:22 +0000 (+0000) Subject: proposed refactored script - still using targets in release/build.xml for now X-Git-Tag: PRE_ANDY~242 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7e5498d3d5713693ae763ffab34571ca029cca2;p=aspectj.git proposed refactored script - still using targets in release/build.xml for now --- diff --git a/eclipse.plugin/build.xml b/eclipse.plugin/build.xml new file mode 100644 index 000000000..cbb70b916 --- /dev/null +++ b/eclipse.plugin/build.xml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + Assembles the Eclipse plugins. + + Relies on ../build/build-properties.xml for some definitions, and + the build must have produced the AspectJ distribution already. + + Define $${build.version.eclipse.plugins} to avoid "9.9.9" for + "DEVELOPMENT" (the default). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse.plugin/diff-build-results.sh b/eclipse.plugin/diff-build-results.sh new file mode 100644 index 000000000..e5ae6d0fb --- /dev/null +++ b/eclipse.plugin/diff-build-results.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# Regression test when changing the build script. +# Compare new.zip and old.zip, assuming they contain build results +# aj-build/dist/ide/eclipse for two different versions of the build script +# (and comparing only the contents of the .jar files). +# [There must be a better way: diff support that recurses into .jar/.zip files] + +[ -n "$DEBUG" ] && set -vx + +jar="${JAVA_HOME}/bin/jar" + +errExit() { + echo "ERROR $1: $2" + exit "$1" +} + +# make this empty to avoid unzipping new.zip and old.zip +dozip="yes" +if [ -z "${dozip}" ] ; then + cd temp +else + rm -rf temp + mkdir temp + cd temp + for d in new old; do + [ -f ../$d.zip ] || errExit 2 "make $d.zip"; + mkdir $d + cd $d + $jar -xf ../../$d.zip + cd eclipse + ls *.jar | sort > ../../$d-names.txt + cd ../.. + done +fi + + diff *-names.txt > /dev/null || errExit 3 "expected same products" + for j in `cat new-names.txt`; do + mkdir $j-dir; + cd $j-dir + for d in new old; do + mkdir $d + cd $d + $jar xf ../../$d/eclipse/$j + dirpath=`pwd | sed 's|/cygdrive/c|c:|'` + for z in `find . -type f -name \*.jar -o -name \*.zip`; do + mkdir ${z}-dir + pushd ${z}-dir + $jar -xf $dirpath/${z} + popd + done + cd .. + done + diff -qr new old > diffs.txt + cd .. + done + cat */diffs.txt + wc -l */diffs.txt + + + +