private void verifyJavaExport(MWRelationalProject project) throws Exception {
   this.configureDeploymentLogin(project);
   project.setProjectSourceDirectoryName(this.tempDir.getPath());
   project.setProjectSourceClassName(this.className(project));
   project.exportProjectSource();
   this.compileAndCheckJavaExport(project);
 }
  private void verifyJavaExport(MWRelationalProject project) throws Exception {
    this.configureDeploymentLogin(project);
    // write the project first, so it can be read via the command-line
    project.setSaveDirectory(this.tempDir);
    new ProjectIOManager().write(project);

    project.setProjectSourceDirectoryName(this.tempDir.getPath());
    project.setProjectSourceClassName(this.className(project));

    List classpathEntries = new ArrayList();
    classpathEntries.add(this.tempDir.getAbsolutePath());
    classpathEntries.add(Classpath.locationFor(MWProject.class)); // elmwcore.jar
    classpathEntries.add(Classpath.locationFor(JavaSourceGenerator.class)); // eclipselinkmw.jar
    classpathEntries.add(Classpath.locationFor(ValueHolderInterface.class)); // ecilpselink.jar
    classpathEntries.add(Classpath.locationFor(XMLParserConfiguration.class)); // xercesImpl.jar
    classpathEntries.add(
        FileTools.resourceFile("/platforms.dpr").getParentFile().getAbsolutePath()); // config dir
    Classpath classpath = new Classpath(classpathEntries);

    String input = project.saveFile().getAbsolutePath();
    String output = project.projectSourceFile().getAbsolutePath();
    //		String log = new File(this.tempDir, "JavaSourceGenerator.log").getAbsolutePath();
    String[] args = new String[] {input, output};

    JavaTools.java(JavaSourceGenerator.class.getName(), classpath.path(), args);
    //		JavaSourceGenerator.main(args);

    this.compileAndCheckJavaExport(project);
  }