Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvallin committed Nov 20, 2024
1 parent 779e416 commit ef6a140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
verify
test-results:
runs-on: ubuntu-20.04
needs: [ packaging ]
needs: [ _tests, archetypes, legacy-archetypes, _tck, packaging, _native-image ]
name: tests/results
steps:
- uses: actions/upload-artifact/merge@v4
Expand All @@ -375,7 +375,7 @@ jobs:
pattern: "tests-*"
gate:
runs-on: ubuntu-20.04
needs: [ test-results ]
needs: [ copyright, checkstyle, shellcheck, docs, javadoc, _spotbugs, test-results ]
steps:
- shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public class ModuleUtils {
public static final String APPLICATION_PACKAGE_FILE_NAME = "app-package-name.txt";
static final System.Logger LOGGER = System.getLogger(ModuleUtils.class.getName());
static final String SERVICE_PROVIDER_MODULE_INFO_HBS = "module-info.hbs";
static final String SRC_MAIN_JAVA_DIR = File.separator + "src" + File.separator + "main" + File.separator + "java";
static final String SRC_TEST_JAVA_DIR = File.separator + "src" + File.separator + "test" + File.separator + "java";
static final String SRC_MAIN_JAVA_DIR = "/src/main/java";
static final String SRC_TEST_JAVA_DIR = "/src/test/java";
static final ModuleInfoItem MODULE_COMPONENT_MODULE_INFO = ModuleInfoItem.builder()
.provides(true)
.target(ModuleComponent.class.getName())
Expand Down Expand Up @@ -354,6 +354,7 @@ public static Optional<Path> toSourcePath(Path filePath,
* @return the base path
*/
public static Path toBasePath(String sourcePath) {
sourcePath = sourcePath.replace(File.separator, "/");
int pos = sourcePath.lastIndexOf(SRC_MAIN_JAVA_DIR);
if (pos < 0) {
pos = sourcePath.lastIndexOf(SRC_TEST_JAVA_DIR);
Expand Down

0 comments on commit ef6a140

Please sign in to comment.