Package org.ngrinder.script.model

Examples of org.ngrinder.script.model.FileType


  public List<FileEntry> getLibAndResourceEntries(User user, FileEntry scriptEntry, long revision) {
    List<FileEntry> fileList = newArrayList();
    String basePath = getBasePath(scriptEntry);
    FileEntryRepository fileEntryRepository = getFileEntryRepository();
    for (FileEntry eachFileEntry : fileEntryRepository.findAll(user, basePath + RESOURCES, revision, true)) {
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isResourceDistributable()) {
        fileList.add(eachFileEntry);
      }
    }

    for (FileEntry eachFileEntry : fileEntryRepository.findAll(user, basePath + JAVA, revision, true)) {
      FileType fileType = eachFileEntry.getFileType();

      if (fileType.isLibDistributable() && !eachFileEntry.getPath().equals(scriptEntry.getPath())) {
        fileList.add(eachFileEntry);
      }
    }

    for (FileEntry eachFileEntry : fileEntryRepository.findAll(user, basePath + GROOVY, revision, true)) {
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isLibDistributable() && !eachFileEntry.getPath().equals(scriptEntry.getPath())) {
        fileList.add(eachFileEntry);
      }
    }

    for (FileEntry eachFileEntry : fileEntryRepository.findAll(user, basePath + LIB, revision, true)) {
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isLibDistributable()) {
        fileList.add(eachFileEntry);
      }
    }
    fileList.add(fileEntryRepository.findOne(user, basePath + "/pom.xml", SVNRevision.create(revision)));
    return fileList;
View Full Code Here


      // Skip jython 2.5... it's already included.
      if (startsWithIgnoreCase(eachFileEntry.getFileName(), "jython-2.5.")
          || startsWithIgnoreCase(eachFileEntry.getFileName(), "jython-standalone-2.5.")) {
        continue;
      }
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isLibDistributable()) {
        fileList.add(eachFileEntry);
      }
    }
    for (FileEntry eachFileEntry : getFileEntryRepository().findAll(user, path + "resources/", revision, true)) {
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isResourceDistributable()) {
        fileList.add(eachFileEntry);
      }
    }
    return fileList;
  }
View Full Code Here

TOP

Related Classes of org.ngrinder.script.model.FileType

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.