On 4 May 2017 at 09:57, Gilles <[email protected]> wrote: > On Thu, 4 May 2017 09:19:49 +0100, sebb wrote: >> >> On 4 May 2017 at 00:48, Gilles <[email protected]> wrote: >>> >>> Same commit, different behaviour... >> >> >> Travis and Jenkins check different things... >> >>> https://travis-ci.org/apache/commons-math/ >>> >>> https://builds.apache.org/job/Commons%20Math%20MasterBranch/34/console >> >> >> Exit code: 1 - javadoc: error - invalid flag: --allow-script-in-comments > > > I knew that it was caused by my adding this flag in the POM file. > Without this flag, the build fails with Java 8; with the flag, it > fails with Java 7.
If the flag is really necessary for Java 8 (i.e. the Javadoc cannot readily be adjusted to avoid the problem) then obviously the flag setting will need to depend on the Java version being used to compile the code. The Commons Parent pom has some examples of settings that are conditional upon the Java version. > >> >>> Regards, >>> Gilles >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
