【发布时间】:2015-09-08 12:52:13
【问题描述】:
我有一个 Java 库,我需要将它转换为 JS。我找到了使用 gwt-exporter 的解决方案 GWT to create utility javascript library。我以前从未使用过 GWT。我试过GWT-exporter. Getting started,但不清楚如何使用它。简单来说如何运行项目生成JS?
pom.xml
<dependencies>
<dependency>
<groupId>org.timepedia.exporter</groupId>
<artifactId>gwtexporter</artifactId>
<version>2.4.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Java 类:
import org.timepedia.exporter.client.ExporterUtil;
public class JS implements EntryPoint {
public void onModuleLoad() {
// Export all Exportable classes
ExporterUtil.exportAll();
}
}
在哪里可以找到 EntryPoint 的依赖项?
也许有人可以分享工作示例?
【问题讨论】:
标签: javascript java gwt gwt-exporter