File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/main/java/com/vue/adminlte4j/support Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,11 @@ public FileChangeListener autoConfig(String type) {
92
92
isInterrupted = true ;
93
93
e .printStackTrace ();
94
94
}
95
-
96
- fileEntries .forEach (f -> {
95
+ if (copies .size () != fileEntries .size ()) {
96
+ copies .clear ();
97
+ copies .addAll (fileEntries ) ;
98
+ }
99
+ copies .forEach (f -> {
97
100
try {
98
101
onChange (f );
99
102
} catch (Exception e ) {
@@ -108,11 +111,6 @@ private void addFileEntries(FileEntry fileEntry) throws IOException {
108
111
if (!fileEntry .srcPath .toFile ().exists ())
109
112
return ;
110
113
Files .walk (fileEntry .srcPath , FileVisitOption .FOLLOW_LINKS ).forEach (path -> {
111
- /*if(path.toFile().isFile() && path.toString().endsWith(".html")) {
112
- Path relativePath = fileEntry.srcPath.relativize(path) ;
113
- listenAbsolute(path).toAbsolute(Paths.get(fileEntry.targetPath.toString() , relativePath.toString())) ;
114
- }*/
115
-
116
114
Path relativePath = fileEntry .srcPath .relativize (path ) ;
117
115
Path target = Paths .get (fileEntry .targetPath .toString () , relativePath .toString ()) ;
118
116
listenAbsolute (path )
You can’t perform that action at this time.
0 commit comments