Package org.davinci.ajaxLibrary

Examples of org.davinci.ajaxLibrary.Library


        jsonWriter.startObject().addFieldName("userLibs").startArray();
        ILibraryManager libMan = ServerManager.getServerManager().getLibraryManager();
        for (int i = 0; i < installedLibs.length; i++) {
            String id = installedLibs[i].getId();
            String version = installedLibs[i].getVersion();
            Library lib = libMan.getLibrary(id, version);
            /* if library doesn't exist continue */
            if (lib == null) {
                continue;
            }
            jsonWriter.startObject().addField("id", id);
            jsonWriter.addField("version", version);
            jsonWriter.addField("metaRoot", lib.getMetadataPath());
            String required = installedLibs[i].getRequired();
            jsonWriter.addField("required", required!=null && (Boolean.parseBoolean(required)?true:false));
           
            jsonWriter.addField("hasSource", lib.getSourcePath()!=null);
           
            if( installedLibs[i].getVirtualRoot()!=null)
              jsonWriter.addField("root", installedLibs[i].getVirtualRoot());
            jsonWriter.endObject();
        }
View Full Code Here


    libs.addAll(Arrays.asList( settings.allLibs()));
    for (int i = 0; i < libs.size(); i++) {
      root = this;
      String defaultRoot = libs.get(i).getVirtualRoot();
      if(defaultRoot==null) continue;
      Library b = this.getLibrary(libs.get(i));
      /* library not found on server so avoid adding it to the workspace */
      if (b == null) {
        continue;
      }
      URL file = b.getURL("", false);
      // TODO temp fix to avoid adding virtual library entries that don't
      // exist to the workspace.
      if (file == null) {
        continue;
      }
View Full Code Here

          }
        /* modify the library settings with the WebContent folder */
       Library[] allLibs = ServerManager.getServerManager().getLibraryManager().getAllLibraries();
       
        for(int i=0;i<allLibs.length;i++){
          Library lib = allLibs[i];
          String root = lib.getDefaultRoot();
          if(root!=null){
            String id= lib.getID();
              String version = lib.getVersion();
              String required = lib.getRequired();
              String libPath = "./WebContent" + root;
            this.modifyLibrary(id, version,  libPath, project.getPath(), required==null?false:Boolean.parseBoolean(required));
          }
        }
       
View Full Code Here

        for (int i = 0; i < libs.size(); i++) {
            Map<String, String> libEntry = (Map<String, String>) libs.get(i);
            String id = libEntry.get("id");
            String version = libEntry.get("version");
            String path = libEntry.get("root");
            Library lib = ServerManager.getServerManager().getLibraryManager().getLibrary(id, version);
           
            boolean sourceLibrary = lib.getSourcePath() != null && useSource;
           
            IVResource libResource = new VLibraryResource(lib, lib.getURL("", sourceLibrary),path, "",sourceLibrary);
            zipDir(libResource,root, zos, true);
        }
    }
View Full Code Here

TOP

Related Classes of org.davinci.ajaxLibrary.Library

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.