Package net.sf.robocode.repository.parsers

Examples of net.sf.robocode.repository.parsers.ClasspathFileParser


  public void visitDirectory(File dir, boolean isDevel, Map<String, IRepositoryRoot> newRoots, IRepository repository, boolean force) { 
    if (isDevel) {
      File classpathFile = new File(dir, ".classpath");

      if (classpathFile.exists()) { 
        ClasspathFileParser classpathParser = new ClasspathFileParser();

        boolean parsed = true;

        try {
          classpathParser.parse(classpathFile.toURI().toURL());
        } catch (MalformedURLException e) {
          parsed = false;
        }
        if (parsed) {
          String classPath = classpathParser.getClassPath();

          if (classPath != null) {
            File classPathDir = new File(dir, classPath);

            handleDirectory(classPathDir, dir, newRoots, repository, force);     
          }

          for (String sourcePath : classpathParser.getSourcePaths()) {
            if (sourcePath != null) {
              File sourcePathDir = new File(dir, sourcePath);

              handleDirectory(sourcePathDir, dir, newRoots, repository, force);     
            }
View Full Code Here

TOP

Related Classes of net.sf.robocode.repository.parsers.ClasspathFileParser

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.