Bug 7480 - yang-system-test: -p directories are for dependency search
[yangtools.git] / yang / yang-system-test / src / main / java / org / opendaylight / yangtools / yang / parser / system / test / Main.java
index 2f2926bad51af1c32508ab628683833688e70954..94840bb0f75891cdeca9cdae7b5ef33026708a49 100644 (file)
@@ -92,16 +92,16 @@ public class Main {
             LOG.setLevel(Level.SEVERE);
         }
 
-        final List<String> yangDirs = initYangDirsPath(arguments);
+        final List<String> yangLibDirs = initYangDirsPath(arguments);
         final List<String> yangFiles = Arrays.asList(arguments.getArgs());
         final HashSet<QName> supportedFeatures = initSupportedFeatures(arguments);
 
-        runSystemTest(yangDirs, yangFiles, supportedFeatures);
+        runSystemTest(yangLibDirs, yangFiles, supportedFeatures);
     }
 
-    private static void runSystemTest(final List<String> yangDirs, final List<String> yangFiles,
+    private static void runSystemTest(final List<String> yangLibDirs, final List<String> yangFiles,
             final HashSet<QName> supportedFeatures) {
-        LOG.log(Level.INFO, "Yang model dirs: {0} ", yangDirs);
+        LOG.log(Level.INFO, "Yang model dirs: {0} ", yangLibDirs);
         LOG.log(Level.INFO, "Yang model files: {0} ", yangFiles);
         LOG.log(Level.INFO, "Supported features: {0} ", supportedFeatures);
 
@@ -111,7 +111,7 @@ public class Main {
         final Stopwatch stopWatch = Stopwatch.createStarted();
 
         try {
-            context = SystemTestUtils.parseYangSources(yangDirs, yangFiles, supportedFeatures);
+            context = SystemTestUtils.parseYangSources(yangLibDirs, yangFiles, supportedFeatures);
         } catch (final Exception e) {
             LOG.log(Level.SEVERE, "Failed to create SchemaContext.", e);
             System.exit(1);