From 109eef5a2a28f50915650252873f819316da1ac7 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 20 Jul 2023 05:58:25 +0200 Subject: [PATCH] Always use the latest version of the ECJ compiler --- common.mk | 2 +- osgi.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2