Skip to content

Commit

Permalink
Add traces in test and uploaded more content in CI for diagnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Jun 24, 2024
1 parent ebaa84c commit d1d8665
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ jobs:
!**/bootable-jar-build-artifacts/**
**/dev-watch-test-output.txt
- uses: actions/upload-artifact@v4
if: failure()
with:
name: project-src-${{ matrix.os }}-${{ matrix.java }}
path: |
!**/bootable-jar-build-artifacts/**
**/tests/target/devwatch*/src/**
**/tests/target/devwatch*/target/deployments/**
- uses: actions/upload-artifact@v2
if: failure()
with:
name: logs-${{ matrix.os }}-${{ matrix.java }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Response doGet() throws IOException {
props = new Properties();
props.load(inputStream);
}
System.out.println("CLASSLOADER " + HelloWorldEndpoint.class.getClassLoader());
InputStream inputStream2 = HelloWorldEndpoint.class.getResourceAsStream("/myresources2.properties");
Properties props2 = null;
if (inputStream2 != null) {
Expand All @@ -30,7 +31,9 @@ public Response doGet() throws IOException {
inputStream2.close();
}
}

for(String k : props.stringPropertyNames()) {
System.out.println("KEY " + k + "=" + props.getProperty(k));
}
//return Response.ok("Hello from " + "XXXWildFly bootable jar!").build();
return Response.ok("Hello from " + props.getProperty("msg") + (props2 == null ? "" : " " + props2.getProperty("msg"))).build();
}
Expand Down

0 comments on commit d1d8665

Please sign in to comment.