Commits

Jan Lahoda  committed 1a12cdf

Run only the declarative hints unless something else is requested.

  • Participants
  • Parent commits 3c71c59

Comments (0)

Files changed (1)

File cmdline/tool/src/org/netbeans/modules/jackpot30/cmdline/Main.java

                     return 1;
                 }
                 hints = findHints(sourceCP, binaryCP, parsed.valueOf(hint), hintSettings);
-            } else if (settingsFromConfigFile == null) {
-                hints = allHints(sourceCP, binaryCP, hintSettings);
             } else {
-                assert settingsFromConfigFile != null;
-                hints = readHints(sourceCP, binaryCP, hintSettings, settingsFromConfigFile.getBoolean("runDeclarative", true));
-            }
-
-            if (!hints.iterator().hasNext()) {
-                System.err.println("no hints specified");
-                return 1;
+                hints = readHints(sourceCP, binaryCP, hintSettings, settingsFromConfigFile != null ? settingsFromConfigFile.getBoolean("runDeclarative", true) : true);
             }
 
             if (parsed.has(config) && !parsed.has(hint)) {
                 apply = true;
             }
             
+            if (apply && !hints.iterator().hasNext()) {
+                System.err.println("no hints specified");
+                return 1;
+            }
+
             try {
                 MainLookup.register(new ClassPathProviderImpl(bootCP, compileCP, sourceCP));
                 MainLookup.register(new JavaPathRecognizer());