Skip to content

Commit db3c474

Browse files
7903856: apidiff: 7903837 breaks some builds
Reviewed-by: iris, cstein, prappo
1 parent 04f70c7 commit db3c474

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

make/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -76,7 +76,7 @@ check-build-vars:
7676
echo "DAISYDIFF_LICENSE not set (will not be included)" ; \
7777
fi
7878
@if [ -z "$(EQUINOX_JAR)" ]; then \
79-
echo "EQUINOX_JAR not set" ; exit 1 ; \
79+
echo "EQUINOX_JAR not set (will not be included)" ; \
8080
fi
8181
@if [ -z "$(EQUINOX_LICENSE)" ]; then \
8282
echo "EQUINOX_LICENSE not set (will not be included)" ; \

make/apidiff.gmk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -38,9 +38,14 @@ else
3838
DAISYDIFF_CLASSPATH_ELEMENT = $(DAISYDIFF_JAR)
3939
endif
4040

41+
# include EQUINOX_JAR with DAISYDIFF if it is set
42+
ifneq ($(EQUINOX_JAR),)
43+
DAISYDIFF_CLASSPATH_ELEMENT := $(DAISYDIFF_CLASSPATH_ELEMENT):$(EQUINOX_JAR)
44+
endif
45+
4146
$(BUILDDIR)/classes.jdk.codetools.apidiff.ok: $(JAVAFILES.jdk.codetools.apidiff)
4247
$(JAVAC) $(JAVAC_OPTIONS) \
43-
-cp $(JAVADIFFUTILS_JAR):$(DAISYDIFF_CLASSPATH_ELEMENT):$(EQUINOX_JAR):$(HTMLCLEANER_JAR) \
48+
-cp $(JAVADIFFUTILS_JAR):$(DAISYDIFF_CLASSPATH_ELEMENT):$(HTMLCLEANER_JAR) \
4449
-d $(CLASSDIR) \
4550
$(JAVAFILES.jdk.codetools.apidiff)
4651
echo "classes built at `date`" > $@
@@ -310,7 +315,7 @@ $(BUILDDIR)/api.jdk.codetools.apidiff.ok: \
310315
$(JAVADOC) $(JAVADOC_OPTIONS) \
311316
-Xdoclint:-missing \
312317
-quiet \
313-
-cp $(JAVADIFFUTILS_JAR):$(DAISYDIFF_JAR):$(DAISYDIFF_SRC_JAVA):$(EQUINOX_JAR):$(HTMLCLEANER_JAR) \
318+
-cp $(JAVADIFFUTILS_JAR):$(DAISYDIFF_CLASSPATH_ELEMENT):$(HTMLCLEANER_JAR) \
314319
-overview $(SRCDOCDIR)/overview.html \
315320
-linkoffline \
316321
https://docs.oracle.com/en/java/javase/17/docs/api/index.html \

0 commit comments

Comments
 (0)