File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
task/src/main/java/pro/javacard/ant Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 48
48
public class JCCap extends Task {
49
49
50
50
static final String DEFAULT_CAP_NAME_TEMPLATE = "%n_%a_%h_%j_%J.cap" ; // SomeApplet_010203040506_9a037e30_2.2.2_jdk11.cap
51
+ static final String DEFAULT_CAP_NAME_TEMPLATE_LIB = "%n_%a_%v_%h.cap" ; // some.library_010203040506_v1.2_9a037e30.cap
52
+
51
53
private final String master_jckit_path ;
52
54
private JavaCardSDK jckit = null ;
53
55
private String classes_path = null ;
@@ -360,7 +362,7 @@ else if (getProject().resolveFile("src/main/java").isDirectory())
360
362
}
361
363
// Default output name
362
364
if (output_cap == null ) {
363
- output_cap = DEFAULT_CAP_NAME_TEMPLATE ;
365
+ output_cap = raw_applets . size () == 0 ? DEFAULT_CAP_NAME_TEMPLATE_LIB : DEFAULT_CAP_NAME_TEMPLATE ;
364
366
}
365
367
}
366
368
You can’t perform that action at this time.
0 commit comments