File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/groovy/geoscript/style Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class NestedDirectoryStyleRepository implements StyleRepository {
41
41
if (layerDirectory. exists()) {
42
42
layerDirectory. listFiles(new StyleFileNameFilter ()). collect { File file ->
43
43
[
44
- layerName : FilenameUtils . getBaseName(file . name) ,
44
+ layerName : layerName ,
45
45
styleName : FilenameUtils . getBaseName(file. name),
46
46
style : file. text
47
47
]
@@ -57,7 +57,7 @@ class NestedDirectoryStyleRepository implements StyleRepository {
57
57
this . directory. listFiles(new DirectoryFileFilter ()). each { File dir ->
58
58
dir. listFiles(new StyleFileNameFilter ()). each { File file ->
59
59
styles. add([
60
- layerName : FilenameUtils . getBaseName(file . name) ,
60
+ layerName : dir . name,
61
61
styleName : FilenameUtils . getBaseName(file. name),
62
62
style : file. text
63
63
])
You can’t perform that action at this time.
0 commit comments