  public void generateAndCompile() throws Exception
  {
    File componentDir = new File("src/test/resources/com/seitenbau/micgwaf/page");
    File generatedSourcesDir = new File("target/generated-sources");
    File generatedExtensionsDir = new File("target/generated-extension-sources");
    File compileRootDir = new File("target/manually-compiled-classes");
    FileUtils.deleteDirectory(generatedSourcesDir);
    FileUtils.deleteDirectory(generatedExtensionsDir);
    FileUtils.deleteDirectory(compileRootDir);
    Generator generator = new Generator();
    generator.generateComponent(
        componentDir, 
        generatedSourcesDir, 
        generatedExtensionsDir,
        "com.seitenbau.micgwaf.test.generated");
    compileRootDir.mkdirs();
    JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
    compiler.run(null, null, null, 
        "-g", 
        "-d", compileRootDir.getAbsolutePath(),
        "-sourcepath", generatedSourcesDir.getAbsolutePath() + ";" + generatedExtensionsDir.getAbsolutePath(),
        generatedExtensionsDir.getAbsolutePath() + "/com/seitenbau/micgwaf/test/generated/root/RootExtension.java");
  }

  public void generateAndCompile() throws Exception
  {
    File componentDir = new File("src/test/resources/com/seitenbau/micgwaf/page");
    File generatedSourcesDir = new File("target/generated-sources");
    File generatedExtensionsDir = new File("target/generated-extension-sources");
    File compileRootDir = new File("target/manually-compiled-classes");
    FileUtils.deleteDirectory(generatedSourcesDir);
    FileUtils.deleteDirectory(generatedExtensionsDir);
    FileUtils.deleteDirectory(compileRootDir);
    Generator generator = new Generator();
    generator.generateComponent(
        componentDir, 
        generatedSourcesDir, 
        generatedExtensionsDir,
        "com.seitenbau.micgwaf.test.generated");
    compileRootDir.mkdirs();
    JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
    compiler.run(null, null, null, 
        "-g", 
        "-d", compileRootDir.getAbsolutePath(),
        "-verbose",
        "-sourcepath", generatedSourcesDir.getAbsolutePath() + ";" + generatedExtensionsDir.getAbsolutePath(),
        generatedExtensionsDir.getAbsolutePath() + "/com/seitenbau/micgwaf/test/generated/root/RootExtension.java");
  }
