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
This commit is contained in:
Bruce Eckel 2020-10-07 13:28:11 -06:00
parent 3b5b23fb37
commit 1c7a101b47
12 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// Creating non-embedded tests // Creating non-embedded tests
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AUComposition.class} // build/classes/java/main/annotations/AUComposition.class}
package annotations; package annotations;
import onjava.atunit.*; import onjava.atunit.*;
import onjava.*; import onjava.*;

View File

@ -4,7 +4,7 @@
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// Creating non-embedded tests // Creating non-embedded tests
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AUExternalTest.class} // build/classes/java/main/annotations/AUExternalTest.class}
package annotations; package annotations;
import onjava.atunit.*; import onjava.atunit.*;
import onjava.*; import onjava.*;

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AtUnitExample1.class} // build/classes/java/main/annotations/AtUnitExample1.class}
package annotations; package annotations;
import onjava.atunit.*; import onjava.atunit.*;
import onjava.*; import onjava.*;

View File

@ -4,7 +4,7 @@
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// Assertions and exceptions can be used in @Tests // Assertions and exceptions can be used in @Tests
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AtUnitExample2.class} // build/classes/java/main/annotations/AtUnitExample2.class}
package annotations; package annotations;
import java.io.*; import java.io.*;
import onjava.atunit.*; import onjava.atunit.*;

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AtUnitExample3.class} // build/classes/java/main/annotations/AtUnitExample3.class}
package annotations; package annotations;
import onjava.atunit.*; import onjava.atunit.*;
import onjava.*; import onjava.*;

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AtUnitExample4.class} // build/classes/java/main/annotations/AtUnitExample4.class}
// {VisuallyInspectOutput} // {VisuallyInspectOutput}
package annotations; package annotations;
import java.util.*; import java.util.*;

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/AtUnitExample5.class} // build/classes/java/main/annotations/AtUnitExample5.class}
package annotations; package annotations;
import java.io.*; import java.io.*;
import onjava.atunit.*; import onjava.atunit.*;

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/HashSetTest.class} // build/classes/java/main/annotations/HashSetTest.class}
package annotations; package annotations;
import java.util.*; import java.util.*;
import onjava.atunit.*; import onjava.atunit.*;

View File

@ -4,7 +4,7 @@
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// Applying @Unit to generics // Applying @Unit to generics
// {java onjava.atunit.AtUnit // {java onjava.atunit.AtUnit
// build/classes/main/annotations/StackLStringTst.class} // build/classes/java/main/annotations/StackLStringTst.class}
package annotations; package annotations;
import onjava.atunit.*; import onjava.atunit.*;
import onjava.*; import onjava.*;

View File

@ -38,7 +38,7 @@ public class Reflection {
System.out.println(exploreMethods); System.out.println(exploreMethods);
// Decompile the code for the enum: // Decompile the code for the enum:
OSExecute.command( OSExecute.command(
"javap -cp build/classes/main Explore"); "javap -cp build/classes/java/main Explore");
} }
} }
/* Output: /* Output:

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.
// Demonstrates standard I/O redirection // Demonstrates standard I/O redirection
// {javap -cp build/classes/main OSExecuteDemo} // {javap -cp build/classes/java/main OSExecuteDemo}
import onjava.*; import onjava.*;
public class OSExecuteDemo {} public class OSExecuteDemo {}

View File

@ -27,7 +27,7 @@ public class Hex {
// Test by displaying this class file: // Test by displaying this class file:
System.out.println(format( System.out.println(format(
Files.readAllBytes(Paths.get( Files.readAllBytes(Paths.get(
"build/classes/main/onjava/Hex.class")))); "build/classes/java/main/onjava/Hex.class"))));
else else
System.out.println(format( System.out.println(format(
Files.readAllBytes(Paths.get(args[0])))); Files.readAllBytes(Paths.get(args[0]))));