getProject().setBasedir( "/home/josh/code/omero/components/common/");
getProject().setBasedir(commonDir.getPath());
    public void testAPITask()    {        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(                        "/home/josh/code/omero/components/common/");                getProject().addBuildListener(logger);                getProject().init();                setTaskName("api");                setTaskType("api");                setOwningTarget(new Target());            }        }                T task = new T();        FileSet fileSet = new FileSet();        fileSet.setDir(new File("/home/josh/code/omero/components/common/"));        NameEntry entry = fileSet.createInclude();        entry.setName("**/api/*.java");        task.addFileset(fileSet);        task.setDestdir(new File("/tmp"));        task.execute();        }