#!/bin/bash

# Get the Java version.
# Java 1.5 will give 15.
# Java 1.6 will give 16.
# Java 1.7 will give 17.
WHOLE_VER=`java -version 2>&1`
VER=`java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q'`

# We build for several JDKs on Travis.
# OpenJDK 7 => Run Cobertura and Coveralls.

if [[ $VER == "17" ]] && [[ $WHOLE_VER == *OpenJDK* ]]; then
	mvn clean cobertura:cobertura install coveralls:report -q
else
	mvn clean install -q
fi

#!/bin/bash

# Get the Java version.
# Java 1.5 will give 15.
# Java 1.6 will give 16.
# Java 1.7 will give 17.
WHOLE_VER=`java -version 2>&1`
VER=`java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q'`

# We build for several JDKs on Travis.
# OpenJDK 7 => Run Cobertura and Coveralls.

if [[ $VER == "17" ]] && [[ $WHOLE_VER == *OpenJDK* ]]; then
	mvn clean cobertura:cobertura install coveralls:report -q
else
	mvn clean install -q -Droboconf.javadoc.check
fi

Add roboconf.javadoc.check for Travis build
Add roboconf.javadoc.check for Travis build

As a reminder, the build profile using the custom Xdoclint parameters is active only if:
- the property is defined
- AND java version is ≥ 1.8
