]> Savannah Git Hosting - gnulib.git/commitdiff
java{comp,exec}-script, csharp{comp,exec}-script: Improve debugging.
authorBruno Haible <bruno@clisp.org>
Thu, 10 Oct 2024 17:15:06 +0000 (19:15 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 10 Oct 2024 17:15:31 +0000 (19:15 +0200)
* build-aux/javaexec.sh.in: Send debugging output to stderr, not stdout.
* build-aux/javacomp.sh.in: Likewise.
* build-aux/csharpexec.sh.in: Likewise.
* build-aux/csharpcomp.sh.in: Likewise.

ChangeLog
build-aux/csharpcomp.sh.in
build-aux/csharpexec.sh.in
build-aux/javacomp.sh.in
build-aux/javaexec.sh.in

index 04883497b5bf876a4fc18f224679585c09286aaa..b427c5033cb1858b64c1049287de8871fcc7432f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-10-10  Bruno Haible  <bruno@clisp.org>
+
+       java{comp,exec}-script, csharp{comp,exec}-script: Improve debugging.
+       * build-aux/javaexec.sh.in: Send debugging output to stderr, not stdout.
+       * build-aux/javacomp.sh.in: Likewise.
+       * build-aux/csharpexec.sh.in: Likewise.
+       * build-aux/csharpcomp.sh.in: Likewise.
+
 2024-10-09  Bruno Haible  <bruno@clisp.org>
 
        csharpcomp: Avoid error on Windows.
index fcfc32cd7f24af020bf3be8663295e4c937eb438..58b53c6bffaa60c6a512386ae4c83fcbf3a8d229 100644 (file)
@@ -162,7 +162,7 @@ if test -n "@HAVE_MCS@"; then
 }'
   func_tmpdir
   trap 'rm -rf "$tmp"' HUP INT QUIT TERM
-  test -z "$CSHARP_VERBOSE" || echo mcs $options_mcs $sources
+  test -z "$CSHARP_VERBOSE" || echo mcs $options_mcs $sources 1>&2
   mcs $options_mcs $sources > "$tmp"/mcs.err
   result=$?
   sed -e "$sed_drop_success_line" < "$tmp"/mcs.err >&2
@@ -192,11 +192,11 @@ else
         csc=`cygpath -w "$csc"`
         ;;
     esac
-    test -z "$CSHARP_VERBOSE" || echo dotnet "$csc" $options_csc $sources_csc
+    test -z "$CSHARP_VERBOSE" || echo dotnet "$csc" $options_csc $sources_csc 1>&2
     exec dotnet "$csc" $options_csc $sources_csc
   else
     if test -n "@HAVE_DOTNET_CSC@" || test -n "@HAVE_CSC@"; then
-      test -z "$CSHARP_VERBOSE" || echo csc $options_csc $sources_csc
+      test -z "$CSHARP_VERBOSE" || echo csc $options_csc $sources_csc 1>&2
       exec csc $options_csc $sources_csc
     else
       echo 'C# compiler not found, try installing mono or dotnet, then reconfigure' 1>&2
index 45c95b4b5fe84f6a6c4ecfbf315aa7f6295d0ca6..c2ccd3b64532b7633d59cecd0bbdca21a897c15f 100644 (file)
@@ -101,7 +101,7 @@ if test -n "@HAVE_MONO@"; then
     MONO_PATH="$CONF_MONO_PATH"
   fi
   export MONO_PATH
-  test -z "$CSHARP_VERBOSE" || echo mono "$@"
+  test -z "$CSHARP_VERBOSE" || echo mono "$@" 1>&2
   exec mono "$@"
 else
   if test -n "@HAVE_DOTNET@"; then
@@ -180,7 +180,7 @@ else
           runtimeconfig_arg=`cygpath -w "$runtimeconfig"`
           ;;
       esac
-      test -z "$CSHARP_VERBOSE" || echo dotnet exec --runtimeconfig "$runtimeconfig_arg" "$prog_arg" "$@"
+      test -z "$CSHARP_VERBOSE" || echo dotnet exec --runtimeconfig "$runtimeconfig_arg" "$prog_arg" "$@" 1>&2
       dotnet exec --runtimeconfig "$runtimeconfig_arg" "$prog_arg" "$@"
       result=$?
       rm -f "$runtimeconfig"
@@ -204,7 +204,7 @@ else
           prog=`cygpath -w "$prog"`
           ;;
       esac
-      test -z "$CSHARP_VERBOSE" || echo clix "$prog" "$@"
+      test -z "$CSHARP_VERBOSE" || echo clix "$prog" "$@" 1>&2
       exec clix "$prog" "$@"
     else
       echo 'C# virtual machine not found, try installing mono or dotnet, then reconfigure' 1>&2
index 65c4008fe7f163889f4dcc10cfedae6b5a4b00e7..a24fa1d4100d65a7427ed8749ec1637eac401249 100644 (file)
@@ -37,7 +37,7 @@ if test -n "@HAVE_JAVAC_ENVVAR@"; then
     CLASSPATH="$CONF_CLASSPATH"
   fi
   export CLASSPATH
-  test -z "$JAVA_VERBOSE" || echo "$CONF_JAVAC $@"
+  test -z "$JAVA_VERBOSE" || echo "$CONF_JAVAC $@" 1>&2
   exec $CONF_JAVAC "$@"
 else
   unset JAVA_HOME
@@ -45,7 +45,7 @@ else
     # In this case, $CONF_JAVAC starts with "javac".
     CLASSPATH="$CLASSPATH"
     export CLASSPATH
-    test -z "$JAVA_VERBOSE" || echo "$CONF_JAVAC $@"
+    test -z "$JAVA_VERBOSE" || echo "$CONF_JAVAC $@" 1>&2
     exec $CONF_JAVAC "$@"
   else
     echo 'Java compiler not found, try setting $JAVAC, then reconfigure' 1>&2
index cedb28d75d62fbd4e456dfa0f309d4638965c59b..01d5a6fadc278671b9c4d3809d0d86357c6352a8 100644 (file)
@@ -36,19 +36,19 @@ if test -n "@HAVE_JAVA_ENVVAR@"; then
     CLASSPATH="$CONF_CLASSPATH"
   fi
   export CLASSPATH
-  test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
+  test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@" 1>&2
   exec $CONF_JAVA "$@"
 else
   unset JAVA_HOME
   export CLASSPATH
   if test -n "@HAVE_JAVA@"; then
     # In this case, $CONF_JAVA is "java".
-    test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
+    test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@" 1>&2
     exec $CONF_JAVA "$@"
   else
     if test -n "@HAVE_JRE@"; then
       # In this case, $CONF_JAVA is "jre".
-      test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
+      test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@" 1>&2
       exec $CONF_JAVA "$@"
     else
       echo 'Java virtual machine not found, try setting $JAVA, then reconfigure' 1>&2