Examples of JavaProjectBuilder


Examples of com.thoughtworks.qdox.JavaProjectBuilder

      List<JavaClass> classes = getClassesSortedByName(sourcePath);
        processClasses(classes, outputPath);
    }

    private List<JavaClass> getClassesSortedByName(String sourcePath) {
      JavaProjectBuilder builder = new JavaProjectBuilder();
        builder.addSourceTree(new File(sourcePath));
        List<JavaClass> classes = new ArrayList<JavaClass>(builder.getClasses());
        Collections.sort(classes, new Comparator<JavaClass>() {
          public int compare(JavaClass o1, JavaClass o2)
          {
            return o1.getName().compareTo(o2.getName());
          }
View Full Code Here

Examples of com.thoughtworks.qdox.JavaProjectBuilder

                    + includedFiles.length
                    + " files in "
                    + ds.getBasedir());
            for (Object o : Arrays.asList(includedFiles)) {
                String file = (String) o;
                JavaProjectBuilder builder = new JavaProjectBuilder();
                try {
                    builder.addSource(new File(ds.getBasedir(), file));
                    // if the classdir is set then we source the classes
                    // relative to classdir. otherwise we source the classes
                    // relative to the base directory of the file set.
                    if (classdirSet) {
                        makeQdoxParanamerGenerator()
                                .processClasses(builder.getClasses(),
                                        classdir);
                    } else {
                        makeQdoxParanamerGenerator()
                                .processClasses(builder.getClasses(),
                                        ds.getBasedir().getPath());
                    }
                } catch (final IOException exception) {
                    throw new BuildException("Error processing: "
                            + file
View Full Code Here

Examples of org.infinitest.eclipse.workspace.JavaProjectBuilder

  }

  @Test
  public void shouldUpdateAllCoresWhenOneChanges() throws CoreException {
    String projectBName = "/projectB";
    JavaProjectBuilder projectB = project(projectBName);
    URI projectBUri = projectB.getProject().getLocationURI();
    projects.add(newFacade(projectB));

    InfinitestCore coreA = prepateCore(projectAUri(), 10);
    InfinitestCore coreB = prepateCore(projectBUri, 10);
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.