Examples of GitVFS


Examples of com.ibm.sbt.playground.vfs.GitVFS

    return repos;
  }

//  var gh = new com.ibm.sbt.playground.git.GitImport("https://api.github.com",null,"OpenNTF/SocialSDK") 
  public void browse(String path) throws Exception {
    GitVFS vfs = new GitVFS("https://api.github.com/repos/OpenNTF/SocialSDK/contents/samples/j2ee/com.ibm.sbt.sample.web/WebContent/js/","priand","xxxxxx");
   
    VFSFile f = vfs.getRoot().getChild("Smartcloud").getChild("Profiles").getChild("Get About.js");
    System.out.println("File:"+f.getName());
    InputStream is = f.getInputStream();
    try {
      FastStringBuffer fb = new FastStringBuffer();
      fb.append(new InputStreamReader(is));
View Full Code Here

Examples of com.ibm.sbt.playground.vfs.GitVFS

    return repos;
  }

//  var gh = new com.ibm.sbt.playground.git.GitImport("https://api.github.com",null,"OpenNTF/SocialSDK") 
  public void browse(String path) throws Exception {
    GitVFS vfs = new GitVFS("https://api.github.com/repos/OpenNTF/SocialSDK/contents/samples/j2ee/com.ibm.sbt.sample.web/WebContent/js/","priand","gith7934");
   
    VFSFile f = vfs.getRoot().getChild("Smartcloud").getChild("Profiles").getChild("Get About.js");
    System.out.println("File:"+f.getName());
    InputStream is = f.getInputStream();
    try {
      FastStringBuffer fb = new FastStringBuffer();
      fb.append(new InputStreamReader(is));
View Full Code Here

Examples of com.ibm.sbt.playground.vfs.GitVFS

    } else if(StringUtil.equals(source.getSource(), "github")) {
      String location=source.getLocation().trim();
      if(StringUtil.isEmpty(location)) {
        throw new FacesExceptionEx(null, "GitHub: Location is empty", location);
      }
      GitVFS vfs=new GitVFS(location, source.getUserName(), source.getPassword());
      return vfs;
    }
    throw new FacesExceptionEx(null, "Import action is not available for a source type {0}", source.getSource());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.