From b27cc78fb7978346a494a7a65960287eb4b1e180 Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Thu, 26 Dec 2024 18:42:01 -0500 Subject: [PATCH] Don't add Lib suffix for lib project creation --- src/main/java/rife/bld/operations/CreateLibOperation.java | 4 ---- .../java/rife/bld/operations/TestCreateLibOperation.java | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/rife/bld/operations/CreateLibOperation.java b/src/main/java/rife/bld/operations/CreateLibOperation.java index 1c87dae..3a9696a 100644 --- a/src/main/java/rife/bld/operations/CreateLibOperation.java +++ b/src/main/java/rife/bld/operations/CreateLibOperation.java @@ -24,10 +24,6 @@ protected Project createProjectBlueprint() { return new LibProjectBlueprint(new File(workDirectory(), projectName()), packageName(), projectName(), baseName()); } - protected String projectMainClassName(String projectClassName) { - return projectClassName + "Lib"; - } - protected boolean createIdeaRunMain() { return false; } diff --git a/src/test/java/rife/bld/operations/TestCreateLibOperation.java b/src/test/java/rife/bld/operations/TestCreateLibOperation.java index 39f156a..eb85036 100644 --- a/src/test/java/rife/bld/operations/TestCreateLibOperation.java +++ b/src/test/java/rife/bld/operations/TestCreateLibOperation.java @@ -124,7 +124,7 @@ void testExecute() /my-app/src/main/java /my-app/src/main/java/com /my-app/src/main/java/com/example - /my-app/src/main/java/com/example/MyAppLib\\.java + /my-app/src/main/java/com/example/MyApp\\.java /my-app/src/main/resources /my-app/src/main/resources/templates /my-app/src/test @@ -161,7 +161,7 @@ void testExecute() /my-app/build/main /my-app/build/main/com /my-app/build/main/com/example - /my-app/build/main/com/example/MyAppLib\\.class + /my-app/build/main/com/example/MyApp\\.class /my-app/build/test /my-app/build/test/com /my-app/build/test/com/example @@ -207,7 +207,7 @@ void testExecute() /my-app/src/main/java /my-app/src/main/java/com /my-app/src/main/java/com/example - /my-app/src/main/java/com/example/MyAppLib\\.java + /my-app/src/main/java/com/example/MyApp\\.java /my-app/src/main/resources /my-app/src/main/resources/templates /my-app/src/test