From: Mathieu Baudier Date: Thu, 20 Jul 2023 03:58:25 +0000 (+0200) Subject: Always use the latest version of the ECJ compiler X-Git-Tag: v2.3.7~7 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=109eef5a2a28f50915650252873f819316da1ac7;p=cc0%2Fargeo-build.git Always use the latest version of the ECJ compiler --- diff --git a/common.mk b/common.mk index bc1fa82..46b0398 100644 --- a/common.mk +++ b/common.mk @@ -2,7 +2,7 @@ build-major=2 build-minor=3 # Required third party libraries -ECJ_BRANCH=3.32 +ECJ_MAJOR=3 BNDLIB_BRANCH=5.3 SYSLOGGER_BRANCH=$(build-major).$(build-minor) diff --git a/osgi.mk b/osgi.mk index 52bdba6..3f17e6d 100644 --- a/osgi.mk +++ b/osgi.mk @@ -27,9 +27,10 @@ DEP_CATEGORIES ?= JAVADOC_PACKAGES ?= A2_BASE ?=/usr/share/a2 /usr/local/share/a2 $(A2_OUTPUT) +# We always use the latest version of the ECJ compiler +ECJ_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(sort $(wildcard $(base)/org.argeo.tp.build/org.eclipse.jdt.core.compiler.batch.$(ECJ_MAJOR).*.jar)))) # Third-party libraries LOGGER_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/log/syslogger/org.argeo.tp/org.argeo.tp.syslogger.$(SYSLOGGER_BRANCH).jar))) -ECJ_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.build/org.eclipse.jdt.core.compiler.batch.$(ECJ_BRANCH).jar))) BNDLIB_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.build/biz.aQute.bndlib.$(BNDLIB_BRANCH).jar))) # Internal variables