< prev index next >

langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/JdepsTask.java

Print this page




 296                     case "-filter:archive":
 297                     case "-filter:module":
 298                         task.options.filterSameArchive = true;
 299                         task.options.filterSamePackage = false;
 300                         break;
 301                     case "-filter:none":
 302                         task.options.filterSameArchive = false;
 303                         task.options.filterSamePackage = false;
 304                         break;
 305                 }
 306             }
 307         },
 308 
 309         // ---- Source filtering options ----
 310         new Option(true, "-include") {
 311             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 312                 task.options.includePattern = Pattern.compile(arg);
 313             }
 314         },
 315 
 316         // Another alternative to list modules in -addmods option
 317         new HiddenOption(true, "--include-system-modules") {
 318             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 319                 task.options.includeSystemModulePattern = Pattern.compile(arg);
 320             }
 321         },
 322 
 323         new Option(false, "-P", "-profile") {
 324             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 325                 task.options.showProfile = true;
 326             }
 327         },
 328 
 329         new Option(false, "-R", "-recursive") {
 330             void process(JdepsTask task, String opt, String arg) {
 331                 task.options.depth = 0;
 332                 // turn off filtering
 333                 task.options.filterSameArchive = false;
 334                 task.options.filterSamePackage = false;
 335             }
 336         },




 296                     case "-filter:archive":
 297                     case "-filter:module":
 298                         task.options.filterSameArchive = true;
 299                         task.options.filterSamePackage = false;
 300                         break;
 301                     case "-filter:none":
 302                         task.options.filterSameArchive = false;
 303                         task.options.filterSamePackage = false;
 304                         break;
 305                 }
 306             }
 307         },
 308 
 309         // ---- Source filtering options ----
 310         new Option(true, "-include") {
 311             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 312                 task.options.includePattern = Pattern.compile(arg);
 313             }
 314         },
 315 
 316         // Another alternative to list modules in --add-modules option
 317         new HiddenOption(true, "--include-system-modules") {
 318             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 319                 task.options.includeSystemModulePattern = Pattern.compile(arg);
 320             }
 321         },
 322 
 323         new Option(false, "-P", "-profile") {
 324             void process(JdepsTask task, String opt, String arg) throws BadArgs {
 325                 task.options.showProfile = true;
 326             }
 327         },
 328 
 329         new Option(false, "-R", "-recursive") {
 330             void process(JdepsTask task, String opt, String arg) {
 331                 task.options.depth = 0;
 332                 // turn off filtering
 333                 task.options.filterSameArchive = false;
 334                 task.options.filterSamePackage = false;
 335             }
 336         },


< prev index next >