Skip to content

Commit

Permalink
Remove duplication and rename DEV to FOR_DEBUGGING
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Dec 6, 2023
1 parent 403df1d commit 2a0cd95
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 181 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -466,21 +466,21 @@ ifeq ($(OS), MACOSX)
-Pbuild-jre-linux -Pbuild-jre-win32 -Pbuild-jre-win64 -Pbuild-jre-mac : src/main/jre/OpenJDK17U-jdk_x64_mac_hotspot_17.0.7_7/jdk-17.0.7+7
ifndef DUMP_PROFILES
rm("target/classes");
ifdef DEV
ifdef FOR_DEBUGGING
exec(env("JAVA_HOME", "$(CURDIR)/$</Contents/Home"), \
"$(MVN)", "-f", "build-jre-dev.xml", "jlink:jlink", "$@");
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@", "-Pinclude-jdwp-agent");
else
exec(env("JAVA_HOME", "$(CURDIR)/$</Contents/Home"), \
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@");
endif # DEV
endif # FOR_DEBUGGING
endif
else ifeq ($(OS), WINDOWS)
-Pbuild-jre-linux -Pbuild-jre-win32 -Pbuild-jre-win64 : src/main/jre/OpenJDK17U-jdk_x64_windows_hotspot_17.0.7_7/jdk-17.0.7+7
ifndef DUMP_PROFILES
rm("target/classes");
ifdef DEV
ifdef FOR_DEBUGGING
exec(env("JAVA_HOME", "$(CURDIR)/$<"), \
"$(MVN)", "-f", "build-jre-dev.xml", "jlink:jlink", "$@");
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@", "-Pinclude-jdwp-agent");
else
exec(env("JAVA_HOME", "$(CURDIR)/$<"), \
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@");
Expand All @@ -490,9 +490,9 @@ else
-Pbuild-jre-linux -Pbuild-jre-win32 -Pbuild-jre-win64 : src/main/jre/OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7/jdk-17.0.7+7
ifndef DUMP_PROFILES
rm("target/classes");
ifdef DEV
ifdef FOR_DEBUGGING
exec(env("JAVA_HOME", "$(CURDIR)/$<"), \
"$(MVN)", "-f", "build-jre-dev.xml", "jlink:jlink", "$@");
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@", "-Pinclude-jdwp-agent");
else
exec(env("JAVA_HOME", "$(CURDIR)/$<"), \
"$(MVN)", "-f", "build-jre.xml", "jlink:jlink", "$@");
Expand Down
174 changes: 0 additions & 174 deletions build-jre-dev.xml

This file was deleted.

17 changes: 17 additions & 0 deletions build-jre.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@
</pluginManagement>
</build>
<profiles>
<profile>
<id>include-jdwp-agent</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jlink-plugin</artifactId>
<configuration>
<addModules combine.children="append">
<addModule>jdk.jdwp.agent</addModule>
</addModules>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>build-jre-linux</id>
<!--
Expand Down

0 comments on commit 2a0cd95

Please sign in to comment.