Examples of FileScanner


Examples of com.buschmais.jqassistant.core.scanner.api.FileScanner

          artifactDescriptor.setName(artifact.getArtifactId());
          artifactDescriptor.setVersion(artifact.getVersion());
          artifactDescriptor.setClassifier(artifact.getClassifier());
          artifactDescriptor.setType(type);
        }
        FileScanner scanner = new FileScannerImpl(store, scannerPlugins);
        try {
          for (Descriptor descriptor : scanner.scanDirectory(directory)) {
            artifactDescriptor.getContains().add(descriptor);
          }
        } catch (IOException e) {
          throw new MojoExecutionException("Cannot scan directory '" + directory.getAbsolutePath() + "'", e);
        }
View Full Code Here

Examples of com.log4ic.utils.io.scanner.FileScanner

    private static final Log LOGGER = LogFactory.getLog(DataBaseSupport.class);

    public void contextInitialized(ServletContextEvent servletContextEvent) {
        LOGGER.info("初始化实体表....");
        AnnotationFilter annotationFilter = new AnnotationFilter();
        FileScanner fileScanner = new FileScanner(annotationFilter);
        LOGGER.info("查找相关实体....");
        fileScanner.find("com.log4ic.entity");

        List<Class> entityClassList = annotationFilter.getClassList();

        try {
            LOGGER.info("查看是否建表....");
View Full Code Here

Examples of com.log4ic.utils.io.scanner.FileScanner

    public List<Class> getClassList() {
        return classList;
    }

    public static void main(String[] args) {
        FileScanner fileScanner = new FileScanner(new AnnotationFilter());
        List<URL> list = fileScanner.find("com.log4ic.entity");
        for (URL url : list) {
            System.out.println(url.getPath());
        }
    }
View Full Code Here

Examples of com.luxoft.dnepr.courses.regular.unit7.scanners.FileScanner

        int consumerThreadAmount = maxNumberOfThreads/2 + maxNumberOfThreads%2;
        ExecutorService fileParserService = Executors.newFixedThreadPool(consumerThreadAmount);
        List<Future<?>> futures = new ArrayList<>();
        for (int i = 0; i < consumerThreadAmount; i++) {
            Future<?> future = fileParserService.submit(new FileScanner(queue, wordStorage, files));
            futures.add(future);
        }
        for (Future<?> future : futures) {
            try {
                future.get();
View Full Code Here

Examples of jscover.util.FileScanner

    private ConfigurationForServer config;
    private IoUtils ioUtils = IoUtils.getInstance();
    private FileScanner fileScanner;

    public UnloadedSourceProcessor(ConfigurationForServer config) {
        fileScanner = new FileScanner(config);
        this.config = config;
    }
View Full Code Here

Examples of org.apache.tools.ant.FileScanner


  private void addZipGroups() {
    for (int i = 0; i < zipgroups.size(); i++) {
      FileSet fileset = (FileSet) zipgroups.get(i);
      FileScanner fs = fileset.getDirectoryScanner(getProject());
      String[] files = fs.getIncludedFiles();
      File basedir = fs.getBasedir();
      for (int j = 0; j < files.length; j++) {
        ZipFileSet zipfileset = new ZipFileSet();
        zipfileset.setSrc(new File(basedir, files[j]));
        srcFilesets.add(zipfileset);
      }
View Full Code Here

Examples of org.apache.tools.ant.FileScanner

        // Add the files found in groupfileset to fileset
        for (int i = 0; i < groupfilesets.size(); i++) {

            log("Processing groupfileset ", Project.MSG_VERBOSE);
            FileSet fs = (FileSet) groupfilesets.elementAt(i);
            FileScanner scanner = fs.getDirectoryScanner(getProject());
            String[] files = scanner.getIncludedFiles();
            File basedir = scanner.getBasedir();
            for (int j = 0; j < files.length; j++) {

                log("Adding file " + files[j] + " to fileset",
                    Project.MSG_VERBOSE);
                ZipFileSet zf = new ZipFileSet();
View Full Code Here

Examples of org.apache.tools.ant.FileScanner

     * For each file in the fileset, do the appropriate action: send, get,
     * delete, or list.
     */
    protected int transferFiles(FTPClient ftp, FileSet fs)
         throws IOException, BuildException {
        FileScanner ds;

        if (action == SEND_FILES) {
            ds = fs.getDirectoryScanner(project);
        } else {
            ds = new FTPDirectoryScanner(ftp);
            fs.setupDirectoryScanner(ds, project);
            ds.scan();
        }

        String[] dsfiles = ds.getIncludedFiles();
        String dir = null;

        if ((ds.getBasedir() == null)
             && ((action == SEND_FILES) || (action == GET_FILES))) {
            throw new BuildException("the dir attribute must be set for send "
                 + "and get actions");
        } else {
            if ((action == SEND_FILES) || (action == GET_FILES)) {
                dir = ds.getBasedir().getAbsolutePath();
            }
        }

        // If we are doing a listing, we need the output stream created now.
        BufferedWriter bw = null;
View Full Code Here

Examples of org.apache.tools.ant.FileScanner

        // Add the files found in groupfileset to fileset
        for (int i = 0; i < groupfilesets.size(); i++) {

            log("Processing groupfileset ", Project.MSG_VERBOSE);
            FileSet fs = (FileSet) groupfilesets.elementAt(i);
            FileScanner scanner = fs.getDirectoryScanner(project);
            String[] files = scanner.getIncludedFiles();
            File basedir = scanner.getBasedir();
            for (int j = 0; j < files.length; j++) {

                log("Adding file " + files[j] + " to fileset",
                    Project.MSG_VERBOSE);
                ZipFileSet zf = new ZipFileSet();
View Full Code Here

Examples of org.apache.tools.ant.FileScanner

     * For each file in the fileset, do the appropriate action: send, get,
     * delete, or list.
     */
    protected int transferFiles(FTPClient ftp, FileSet fs)
         throws IOException, BuildException {
        FileScanner ds;

        if (action == SEND_FILES) {
            ds = fs.getDirectoryScanner(project);
        } else {
            ds = new FTPDirectoryScanner(ftp);
            fs.setupDirectoryScanner(ds, project);
            ds.scan();
        }

        String[] dsfiles = ds.getIncludedFiles();
        String dir = null;

        if ((ds.getBasedir() == null)
             && ((action == SEND_FILES) || (action == GET_FILES))) {
            throw new BuildException("the dir attribute must be set for send "
                 + "and get actions");
        } else {
            if ((action == SEND_FILES) || (action == GET_FILES)) {
                dir = ds.getBasedir().getAbsolutePath();
            }
        }

        // If we are doing a listing, we need the output stream created now.
        BufferedWriter bw = null;
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.