mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Fix generation of invalid classpath groups when idea compiler output dir is not set.
This commit is contained in:
@@ -167,7 +167,13 @@ public final class SourceSetHelper {
|
||||
final XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
|
||||
try (FileInputStream fis = new FileInputStream(file)) {
|
||||
return xpath.evaluate(expression, new InputSource(fis));
|
||||
String result = xpath.evaluate(expression, new InputSource(fis));
|
||||
|
||||
if (result.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return result;
|
||||
} catch (XPathExpressionException e) {
|
||||
return null;
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user