forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed relative path handling in FileRef and URLRef (quarkusio#538)
[patch]
- Loading branch information
1 parent
ac1cb4c
commit 822a1a4
Showing
6 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
///usr/bin/env jbang "$0" "$@" ; exit $? | ||
//FILES resource.properties renamed.properties=resource.properties | ||
//FILES META-INF/application.properties=resource.properties | ||
|
||
import java.io.InputStream; | ||
import java.util.Properties; | ||
|
||
class resource { | ||
|
||
public static void main(String[] args) throws Exception { | ||
Properties prop = new Properties(); | ||
try(InputStream is = resource.class.getClassLoader().getResourceAsStream("resource.properties")) { | ||
prop.load(is); | ||
} | ||
System.out.println("hello " + prop.getProperty("message")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
message=properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters