Skip to content

Commit fe71719

Browse files
committed
add deprecation warning for native-image-configure
1 parent 7f2abc9 commit fe71719

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/ConfigurationTool.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@
3838
import com.oracle.svm.configure.command.ConfigurationHelpCommand;
3939
import com.oracle.svm.configure.command.ConfigurationProcessTraceCommand;
4040
import com.oracle.svm.configure.command.ConfigurationUnknownCommand;
41+
import com.oracle.svm.util.LogUtils;
4142

43+
/**
44+
* A standalone tool for native-image. It is shipped as `native-image-utils` (previously
45+
* `native-image-configure`).
46+
*/
4247
public class ConfigurationTool {
4348
private static final int USAGE_ERROR_CODE = 2;
4449
private static final int INTERNAL_ERROR_CODE = 1;
@@ -67,6 +72,10 @@ public static Collection<ConfigurationCommand> getCommands() {
6772
}
6873

6974
public static void main(String[] arguments) {
75+
String launcherName = System.getProperty("org.graalvm.launcher.executablename", "default");
76+
if (launcherName.contains("native-image-configure")) {
77+
LogUtils.warning("You are using the deprecated native-image-configure tool. Please switch to native-image-utils.");
78+
}
7079
try {
7180
if (arguments.length == 0) {
7281
throw new ConfigurationUsageException("No arguments provided.");

0 commit comments

Comments
 (0)