public void testAPITask() {  final File currentDir = new File(System.getProperty("user.dir"));  final File commonDir = new File(currentDir.getParentFile().getPath() + File.separator + "common");  final class T extends APITask {  public T() {  DefaultLogger logger = new DefaultLogger(); logger.setMessageOutputLevel(Project.MSG_DEBUG); logger.setErrorPrintStream(System.err); logger.setOutputPrintStream(System.out);  setProject(new Project()); getProject().setBasedir(commonDir.getPath()); getProject().addBuildListener(logger); getProject().init(); setTaskName("api"); setTaskType("api"); setOwningTarget(new Target()); } }  T task = new T(); FileSet fileSet = new FileSet(); fileSet.setDir(commonDir); NameEntry entry = fileSet.createInclude(); entry.setName("**/api/*.java"); task.addFileset(fileSet); task.setDestdir(new File("/tmp")); task.execute();  }
public void testAPITask() {}
    public void testAPITask()    {        final File currentDir = new File(System.getProperty("user.dir"));        final File commonDir = new File(currentDir.getParentFile().getPath()                + File.separator + "common");        final class T extends APITask        {            public T()            {                DefaultLogger logger = new DefaultLogger();                logger.setMessageOutputLevel(Project.MSG_DEBUG);                logger.setErrorPrintStream(System.err);                logger.setOutputPrintStream(System.out);                setProject(new Project());                getProject().setBasedir(commonDir.getPath());                getProject().addBuildListener(logger);                getProject().init();                setTaskName("api");                setTaskType("api");                setOwningTarget(new Target());            }        }        T task = new T();        FileSet fileSet = new FileSet();        fileSet.setDir(commonDir);        NameEntry entry = fileSet.createInclude();        entry.setName("**/api/*.java");        task.addFileset(fileSet);        task.setDestdir(new File("/tmp"));        task.execute();    }