使用 Google Closure Compiler 作为库而不是脚本

发布于 2024-09-28 21:59:46 字数 114 浏览 0 评论 0原文

我是否可以编写自己的Java主类来调用compiler.jar中的方法。

我想对编译器进行多次调用,并且不想编写代码来使用 Runtime.exec,也不想在每次调用之前都必须等待 Java 加载。

Is it possible for me to write my own Java Main Class that calls methods in compiler.jar.

I would like to make multiple calls to the compiler and do not want to write code to use Runtime.exec and also do not want to have to wait for Java to load up before every call.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蹲在坟头点根烟 2024-10-05 21:59:46

看起来 javadoc 文档不再在线提供。为了创建文档的本地副本:

$ git clone https://github.com/google/closure-compiler.git
$ cd closure-compiler
$ ant javadoc

文档将在 build/javadoc 文件夹中创建。

请注意,运行最后一个命令需要 ANT

It looks like javadoc documentation is no longer available online. In order to create your local copy of documentation:

$ git clone https://github.com/google/closure-compiler.git
$ cd closure-compiler
$ ant javadoc

The documentation will be created in the build/javadoc folder.

Note that ANT is required to run the last command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文