From 1c7a101b47399f9bb49daf9125a70f506b7a5b84 Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Wed, 7 Oct 2020 13:28:11 -0600 Subject: [PATCH] gradlew run now working with Java 8 and Gradle 6.6 Apparently gradle changed the paths at some point from build/classes/main/ to build/classes/java/main --- annotations/AUComposition.java | 2 +- annotations/AUExternalTest.java | 2 +- annotations/AtUnitExample1.java | 2 +- annotations/AtUnitExample2.java | 2 +- annotations/AtUnitExample3.java | 2 +- annotations/AtUnitExample4.java | 2 +- annotations/AtUnitExample5.java | 2 +- annotations/HashSetTest.java | 2 +- annotations/StackLStringTst.java | 2 +- enums/Reflection.java | 2 +- standardio/OSExecuteDemo.java | 2 +- strings/Hex.java | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/annotations/AUComposition.java b/annotations/AUComposition.java index 451af4cc..88de7d7e 100644 --- a/annotations/AUComposition.java +++ b/annotations/AUComposition.java @@ -4,7 +4,7 @@ // Visit http://OnJava8.com for more book information. // Creating non-embedded tests // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AUComposition.class} +// build/classes/java/main/annotations/AUComposition.class} package annotations; import onjava.atunit.*; import onjava.*; diff --git a/annotations/AUExternalTest.java b/annotations/AUExternalTest.java index d2f4e5ca..c18eb6b3 100644 --- a/annotations/AUExternalTest.java +++ b/annotations/AUExternalTest.java @@ -4,7 +4,7 @@ // Visit http://OnJava8.com for more book information. // Creating non-embedded tests // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AUExternalTest.class} +// build/classes/java/main/annotations/AUExternalTest.class} package annotations; import onjava.atunit.*; import onjava.*; diff --git a/annotations/AtUnitExample1.java b/annotations/AtUnitExample1.java index 2c42aad4..03e7e06b 100644 --- a/annotations/AtUnitExample1.java +++ b/annotations/AtUnitExample1.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AtUnitExample1.class} +// build/classes/java/main/annotations/AtUnitExample1.class} package annotations; import onjava.atunit.*; import onjava.*; diff --git a/annotations/AtUnitExample2.java b/annotations/AtUnitExample2.java index 79c04bfd..3757ca92 100644 --- a/annotations/AtUnitExample2.java +++ b/annotations/AtUnitExample2.java @@ -4,7 +4,7 @@ // Visit http://OnJava8.com for more book information. // Assertions and exceptions can be used in @Tests // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AtUnitExample2.class} +// build/classes/java/main/annotations/AtUnitExample2.class} package annotations; import java.io.*; import onjava.atunit.*; diff --git a/annotations/AtUnitExample3.java b/annotations/AtUnitExample3.java index b4d13d6e..64c29dd7 100644 --- a/annotations/AtUnitExample3.java +++ b/annotations/AtUnitExample3.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AtUnitExample3.class} +// build/classes/java/main/annotations/AtUnitExample3.class} package annotations; import onjava.atunit.*; import onjava.*; diff --git a/annotations/AtUnitExample4.java b/annotations/AtUnitExample4.java index f2114c44..2ad04c5c 100644 --- a/annotations/AtUnitExample4.java +++ b/annotations/AtUnitExample4.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AtUnitExample4.class} +// build/classes/java/main/annotations/AtUnitExample4.class} // {VisuallyInspectOutput} package annotations; import java.util.*; diff --git a/annotations/AtUnitExample5.java b/annotations/AtUnitExample5.java index 20f60860..80a1588c 100644 --- a/annotations/AtUnitExample5.java +++ b/annotations/AtUnitExample5.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit -// build/classes/main/annotations/AtUnitExample5.class} +// build/classes/java/main/annotations/AtUnitExample5.class} package annotations; import java.io.*; import onjava.atunit.*; diff --git a/annotations/HashSetTest.java b/annotations/HashSetTest.java index 62fc7a16..dc2ed34c 100644 --- a/annotations/HashSetTest.java +++ b/annotations/HashSetTest.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // {java onjava.atunit.AtUnit -// build/classes/main/annotations/HashSetTest.class} +// build/classes/java/main/annotations/HashSetTest.class} package annotations; import java.util.*; import onjava.atunit.*; diff --git a/annotations/StackLStringTst.java b/annotations/StackLStringTst.java index 98531711..c60f3802 100644 --- a/annotations/StackLStringTst.java +++ b/annotations/StackLStringTst.java @@ -4,7 +4,7 @@ // Visit http://OnJava8.com for more book information. // Applying @Unit to generics // {java onjava.atunit.AtUnit -// build/classes/main/annotations/StackLStringTst.class} +// build/classes/java/main/annotations/StackLStringTst.class} package annotations; import onjava.atunit.*; import onjava.*; diff --git a/enums/Reflection.java b/enums/Reflection.java index 92799a94..c78c4a7c 100644 --- a/enums/Reflection.java +++ b/enums/Reflection.java @@ -38,7 +38,7 @@ public class Reflection { System.out.println(exploreMethods); // Decompile the code for the enum: OSExecute.command( - "javap -cp build/classes/main Explore"); + "javap -cp build/classes/java/main Explore"); } } /* Output: diff --git a/standardio/OSExecuteDemo.java b/standardio/OSExecuteDemo.java index 57ec2468..83186478 100644 --- a/standardio/OSExecuteDemo.java +++ b/standardio/OSExecuteDemo.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Demonstrates standard I/O redirection -// {javap -cp build/classes/main OSExecuteDemo} +// {javap -cp build/classes/java/main OSExecuteDemo} import onjava.*; public class OSExecuteDemo {} diff --git a/strings/Hex.java b/strings/Hex.java index 9257d87f..c28f9508 100644 --- a/strings/Hex.java +++ b/strings/Hex.java @@ -27,7 +27,7 @@ public class Hex { // Test by displaying this class file: System.out.println(format( Files.readAllBytes(Paths.get( - "build/classes/main/onjava/Hex.class")))); + "build/classes/java/main/onjava/Hex.class")))); else System.out.println(format( Files.readAllBytes(Paths.get(args[0]))));