Skip to content

Commit

Permalink
Correct JavaDoc with info on catalina environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tokee authored and VictorHarbo committed Aug 10, 2023
1 parent cad1d3b commit 8ad12fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static Path resolve(String resource) throws IOException {
* <li>As {@code env:user.dir/resource}, {@code env:user.dir/../resource} etc</li>
* <li>As {@code env:user.home/resource}</li>
* </ul>
* When running under Tomcat, {@code catalina.home} is guaranteed to be set and {@code catalina.home} might be set.
* When running under Tomcat, {@code catalina.home} is guaranteed to be set and {@code catalina.base} might be set.
* @param resources one or more resources to look for. First file system match is returned.
* @return a Path to an existing file, found using the priorities stated above.
* @throws FileNotFoundException if none of the resources could be found.
Expand Down Expand Up @@ -103,7 +103,7 @@ public static Path resolveContainerResource(String... resources) throws FileNotF
* <li>As {@code env:user.dir/resource}, {@code env:user.dir/../resource} etc</li>
* <li>As {@code env:user.home/resource}</li>
* </ul>
* When running under Tomcat, {@code catalina.home} is guaranteed to be set and {@code catalina.home} might be set.
* When running under Tomcat, {@code catalina.home} is guaranteed to be set and {@code catalina.base} might be set.
* @param resource a resource to look for.
* @return a stream with Paths to check for existence of the given resource, in order of priority as listed above.
*/
Expand Down

0 comments on commit 8ad12fa

Please sign in to comment.