mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix incremental build on Windows
This commit is contained in:
parent
da27628e19
commit
90a5ad72d5
|
@ -249,6 +249,7 @@ public class IncrementalCBuilder {
|
|||
|
||||
private List<String> getChangedClasses(Collection<File> changedFiles) {
|
||||
List<String> result = new ArrayList<>();
|
||||
String[] prefixes = Arrays.stream(classPath).map(s -> s.replace('\\', '/')).toArray(String[]::new);
|
||||
|
||||
for (File file : changedFiles) {
|
||||
String path = file.getPath().replace('\\', '/');
|
||||
|
@ -256,7 +257,7 @@ public class IncrementalCBuilder {
|
|||
continue;
|
||||
}
|
||||
|
||||
String prefix = Arrays.stream(classPath)
|
||||
String prefix = Arrays.stream(prefixes)
|
||||
.filter(path::startsWith)
|
||||
.findFirst()
|
||||
.orElse("");
|
||||
|
|
|
@ -907,6 +907,7 @@ public class CodeServlet extends HttpServlet {
|
|||
|
||||
private List<String> getChangedClasses(Collection<File> changedFiles) {
|
||||
List<String> result = new ArrayList<>();
|
||||
String[] prefixes = Arrays.stream(classPath).map(s -> s.replace('\\', '/')).toArray(String[]::new);
|
||||
|
||||
for (File file : changedFiles) {
|
||||
String path = file.getPath().replace('\\', '/');
|
||||
|
@ -914,7 +915,7 @@ public class CodeServlet extends HttpServlet {
|
|||
continue;
|
||||
}
|
||||
|
||||
String prefix = Arrays.stream(classPath)
|
||||
String prefix = Arrays.stream(prefixes)
|
||||
.filter(path::startsWith)
|
||||
.findFirst()
|
||||
.orElse("");
|
||||
|
|
Loading…
Reference in New Issue
Block a user