Package org.dtk.resources.dependencies

Examples of org.dtk.resources.dependencies.ScriptParser


        Map<String, String> packageDetails = new HashMap<String, String>();

        // Run script parser on each file, pulling out requires and provides
        while(packageJsFilesIter.hasNext()) {
          String fileContents = FileUtils.readFileToString(packageJsFilesIter.next());
          ScriptParser scriptParser = new ScriptParser(fileContents);

          // Add all module dependencies discovered to global state holder
          modulesProvided.addAll(scriptParser.retrieveModuleProvides());
          modulesRequired.addAll(scriptParser.retrieveModuleRequires());
        }

        // Store package modules, requires & provides, in response JSON.
        temporaryPackageDetails.put("requiredDojoModules", modulesRequired);
        temporaryPackageDetails.put("availableModules", modulesProvided);
View Full Code Here

TOP

Related Classes of org.dtk.resources.dependencies.ScriptParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.