File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
task/src/main/java/pro/javacard/ant Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,7 @@ private void compile() {
431431
432432 if (!raw_sources .isEmpty ()) {
433433 // Per-path includes/excludes via nested <sources> elements
434+ setTaskName ("sources" );
434435 Path mergedDir = Misc .makeTemp ("sources-" + runIdentifier ());
435436 for (JCSources src : raw_sources ) {
436437 File srcDir = project .resolveFile (src .path );
@@ -447,6 +448,7 @@ private void compile() {
447448 for (String rel : matched ) {
448449 Path from = srcDir .toPath ().resolve (rel );
449450 Path to = mergedDir .resolve (rel );
451+ log (from + " -> " + to , Project .MSG_INFO );
450452 try {
451453 Path parent = to .getParent ();
452454 if (parent != null ) {
@@ -458,6 +460,7 @@ private void compile() {
458460 }
459461 }
460462 }
463+ setTaskName ("compile" );
461464 sources .append (mkPath (mergedDir .toAbsolutePath ().toString ()));
462465 } else {
463466 // Legacy: flat sources/sources2/includes/excludes attributes
Original file line number Diff line number Diff line change 33 <import file =" kits.xml" />
44
55 <!-- Build test applets -->
6- <target name =" test" depends =" jcpro,test-sdks" />
6+ <target name =" test" depends =" jcpro,test-sdks,test-nested-sources " />
77
88 <!-- Different SDK-s-->
99 <target name =" test-sdks" >
2323 </cap >
2424 </javacard >
2525 </target >
26+ <!-- Nested sources with per-path includes/excludes -->
27+ <target name =" test-nested-sources" depends =" jcpro" >
28+ <javacard >
29+ <cap jckit =" ${JC320_2}" aid =" 010203040506" >
30+ <applet class =" testapplets.empty.Empty" />
31+ <sources path =" src/testapplets/empty" />
32+ </cap >
33+ </javacard >
34+ </target >
2635</project >
You can’t perform that action at this time.
0 commit comments