Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: release44_t1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 28 lines (21 sloc) 0.669 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/bash -eEu

# Requires eclipse executable on PATH
# with the eclipse-jdt package
# minimum version 3.3.

ECLIPSE_WORKSPACE=$1
EXPECTED_FILE=$2

ECLIPSE_BUILD="eclipse -nosplash -data $ECLIPSE_WORKSPACE -application org.eclipse.jdt.apt.core.aptBuild"

# exec eclipse multiple times until it builds the expected file.
# Usually 2 or 3 times is sufficient.
# Eclipse doesn't error if the build fails, so manually check for output.

for I in 1 2 3 4
do
echo EXEC: $ECLIPSE_BUILD
    OUTPUT=$($ECLIPSE_BUILD)
    echo OUTPUT: $OUTPUT
    if [ -f $EXPECTED_FILE ] ; then
exit 0
    fi
done

echo "Expected output file not found: " $EXPECTED_FILE >&2
exit 1
Something went wrong with that request. Please try again.