### Eclipse Workspace Patch 1.0 #P eclipse-build Index: generatebuild.xml =================================================================== --- generatebuild.xml (revision 23733) +++ generatebuild.xml (working copy) @@ -5,7 +5,7 @@ + @@ -406,7 +407,10 @@ - + + + + @@ -563,6 +567,7 @@ @@ -571,9 +576,9 @@ - - - + + + @@ -585,16 +590,16 @@ - + - + - + @@ -602,8 +607,8 @@ - - + + @@ -699,7 +704,7 @@ - + @@ -743,6 +753,7 @@ + @@ -756,7 +761,7 @@ - + @@ -812,7 +817,7 @@ - + @@ -828,7 +833,7 @@ - + @@ -976,7 +981,7 @@ - + @@ -995,7 +1000,7 @@ - + Index: pdebuild.xml =================================================================== --- pdebuild.xml (revision 23733) +++ pdebuild.xml (working copy) @@ -88,7 +88,7 @@ + + @@ -245,6 +247,7 @@ + @@ -287,10 +288,10 @@ - + Index: buildTests.xml =================================================================== --- buildTests.xml~ Wed Mar 28 11:50:23 2012 +++ buildTests.xml Fri Jun 22 10:11:05 2012 @@ -215,6 +215,8 @@ --> + + Index: runtests.sh =================================================================== --- runtests.sh (revision 23733) +++ runtests.sh (working copy) @@ -16,6 +16,8 @@ -b Tests build directory -p Clean installation directory to copy for running test suites -t Timestamp string with which to tag the results + -a Architecture to run the tests on + -o OS to run the tests on -v Make test runs output to the console _EOF_ } @@ -83,6 +85,8 @@ headless=1 fi + buildOs=linux + label=$(grep label build.properties | sed s/label=//) testframework=$(grep ^testframework build.properties | sed s/testframework=//) @@ -142,21 +146,16 @@ if [ ${headless} == 1 ]; then # Try to find Xvnc xvnc= - if [ -a /usr/bin/Xvnc ] - then - xvnc=/usr/bin/Xvnc - setupXvnc - else - if [ -a /usr/X11/bin/Xvnc ] - then - xvnc=/usr/X11/bin/Xvnc + for _xvnc in /usr/bin/Xvnc /usr/X11/bin/Xvnc /usr/local/bin/Xvnc; do + if [ -a $_xvnc ]; then + xvnc=$_xvnc setupXvnc - else - echo "Couldn't find Xvnc (/usr/bin/Xvnc or /usr/X11/bin/Xvnc). Using DISPLAY=0:0" - DISPLAY=`$HOST`:0.0 + break fi + done + if [ "x$xvnc" = "x" ]; then + echo "Couldn't find Xvnc. Using default DISPLAY from environment" fi - export DISPLAY fi } @@ -165,9 +164,11 @@ port=`expr '(' $RANDOM '*' 9 / 32767 ')' + 58` echo localhost > Xvnc.cfg echo "Setting up Xvnc on port ${port} with password VNCpassword1" - $xvnc :$port -screen 1 1024x768x32 -auth Xvnc.cfg -localhost -PasswordFile eclipse-tests-vncpwd &> Xvnc.log & + $xvnc :$port -geometry 1024x768 -depth 24 -auth Xvnc.cfg -localhost -rfbauth eclipse-tests-vncpwd &> Xvnc.log & Xvncpid=$! - DISPLAY=`$HOST`:$port + DISPLAY=$HOST:$port + export DISPLAY + } function setArch() { @@ -186,13 +187,15 @@ arch=ia64 ;; ppc) arch=ppc ;; - x86_64) + x86_64|amd64) arch=x86_64 ;; *) echo "Unrecognized architecture: $arch" 1>&2 exit 1 ;; esac echo >&2 "Architecture not specified. Assuming host architecture: $arch" + else + arch=$buildArch fi } @@ -206,7 +209,7 @@ -application org.eclipse.ant.core.antRunner \ -file $testDriver \ -Declipse-home=${eclipseHome} \ - -Dos=linux \ + -Dos=${buildOs} \ -Dws=gtk \ -Darch=${arch} \ -Dlibrary-file=$libraryXml \ @@ -214,7 +217,7 @@ -logger org.apache.tools.ant.DefaultLogger \ -vmargs \ -Duser.home=${homedir} \ - -Dosgi.os=linux \ + -Dosgi.os=${buildOs} \ -Dosgi.ws=gtk \ -Dosgi.arch=${arch} else @@ -348,7 +351,7 @@ } # Command-line arguments -while getopts "vde:gb:p:t:h" OPTION +while getopts "vde:gb:p:t:a:o:h" OPTION do case $OPTION in d) @@ -366,6 +369,12 @@ p) provisionDir=$OPTARG ;; + a) + buildArch=$OPTARG + ;; + o) + buildOs=$OPTARG + ;; h) usage exit 1 --- task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkNonOSGiJars.java~ Thu Feb 25 21:14:10 2010 +++ task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkNonOSGiJars.java Fri Nov 5 11:39:46 2010 @@ -36,8 +36,8 @@ for (Iterator jarIter = jarLocations.iterator(); jarIter.hasNext();) { String origLocation = (String) jarIter.next(); - String systemLocations = (String) dependencies.get(origLocation); + String systemLocations = getProject().replaceProperties((String) dependencies.get(origLocation)); String[] systemLocationList = systemLocations.split(":"); String attemptedLocations = ""; for (int j = 0; j < systemLocationList.length; j++) {