来自GWT生成器的重复源代码

时间:2016-12-26 10:53:55

标签: java gwt code-generation

我想从GWT生成器复制用于调试目的的生成代码

为了做到这一点,我编写了这段代码,但它无效:

printWriter = new PrintWriter(
    new TeeOutputStream(
        new WriterOutputStream(context.tryCreate(logger, packageName, className)),  // Main writer
        new FileOutputStream(new File(System.getProperty("java.io.tmpdir") + File.separator + className + ".java"))     // Debug writer
    )
);

GWT的错误是Generator attempted to commit an unknown PrintWriter

还有其他方法吗?

0 个答案:

没有答案