Skip to content

Commit c4ecb7a

Browse files
committed
I miss not using versions
1 parent d465651 commit c4ecb7a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allprojects {
2121

2222
// Using Jitpack so I need the repo name in the group to match.
2323
group = 'com.stubbornjava.StubbornJava'
24-
version = '0.1.9-SNAPSHOT'
24+
version = '0.1.10-SNAPSHOT'
2525

2626
repositories {
2727
mavenLocal()

‎stubbornjava-common/src/main/java/com/stubbornjava/common/undertow/handlers/CustomHandlers.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public static HttpHandler gzip(HttpHandler next) {
5252
public static HttpHandler resource(String prefix) {
5353
ResourceManager resourceManager = null;
5454
if (Env.LOCAL == Env.get()) {
55-
log.debug("using local file resource manager {}", AssetsConfig.assetsRoot() + prefix);
56-
resourceManager = new FileResourceManager(new File(AssetsConfig.assetsRoot() + prefix), 1024 * 1024);
55+
String path = AssetsConfig.assetsRoot() + "/" + prefix;
56+
log.debug("using local file resource manager {}", path);
57+
resourceManager = new FileResourceManager(new File(path), 1024 * 1024);
5758
} else {
5859
log.debug("using classpath file resource manager");
5960
resourceManager = new ClassPathResourceManager(CustomHandlers.class.getClassLoader(), prefix);

0 commit comments

Comments
 (0)