We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48d67b7 commit f954ce5Copy full SHA for f954ce5
1 file changed
common/src/main/scala/org/apache/auron/common/AuronBuildInfo.scala
@@ -16,6 +16,7 @@
16
*/
17
package org.apache.auron.common
18
19
+import java.io.FileInputStream
20
import java.util.Properties
21
22
import scala.util.Try
@@ -31,6 +32,10 @@ object AuronBuildInfo {
31
32
Option(contextLoader).map(_.getResourceAsStream(buildFile))
33
.orElse(Option(classLoader).map(_.getResourceAsStream(buildFile)))
34
.orElse(Option(systemLoader).map(_.getResourceAsStream(buildFile)))
35
+ .orElse {
36
+ val path = s"${System.getProperty("user.dir")}/common/src/main/resources/$buildFile"
37
+ Try(new FileInputStream(path)).toOption
38
+ }
39
.orNull
40
41
if (buildFileStream == null) {
0 commit comments