We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d302b7e commit 016eaf7Copy full SHA for 016eaf7
task/src/main/java/pro/javacard/ant/JCCap.java
@@ -448,7 +448,10 @@ private void compile() {
448
Path from = srcDir.toPath().resolve(rel);
449
Path to = mergedDir.resolve(rel);
450
try {
451
- Files.createDirectories(to.getParent());
+ Path parent = to.getParent();
452
+ if (parent != null) {
453
+ Files.createDirectories(parent);
454
+ }
455
Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);
456
} catch (IOException e) {
457
throw new BuildException("Failed to copy source file: " + from, e);
0 commit comments