有没有办法告诉 IntelliJ IDEA GWT 编译器使用哪个输出文件夹?
有没有办法告诉 IntelliJ IDEA GWT 编译器使用哪个输出文件夹?我知道它将工件复制到项目文件夹,但它不会复制我使用 gwt 编译器的“-extra”命令行参数设置的额外内容。
IntelliJ IDEA 将其保留在 USER_HOME/.IntelliJIdea10/system/gwt/project_name_with_hash/module_name_with_hash/compile/www
更新:奇怪的是,我没有在 IntelliJ 上找到可能的路径宏列表网站。但我在 idea.jar 中找到了它们。可能的宏有:
APPLICATION_HOME_DIR
PROJECT_DIR
MODULE_DIR
USER_HOME
Is there way to tell IntelliJ IDEA which output folder to use for GWT compiler ? I know it copies artifacts to project folder but it doesn't copy extras which I set using "-extra" command line parameter of gwt compiler.
IntelliJ IDEA leaves it in USER_HOME/.IntelliJIdea10/system/gwt/project_name_with_hash/module_name_with_hash/compile/www
UPDATE: Strangely I didn't find list of possible path macroses on IntelliJ's website. But I found them in idea.jar. Possible macroses are:
APPLICATION_HOME_DIR
PROJECT_DIR
MODULE_DIR
USER_HOME
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过使用 ${PROJECT_DIR} 路径变量构建路径?这将解析为项目位置,然后您可以指定路径的其余部分。例如 ${PROJECT_DIR}/reports/extras。我已经有几年没有使用 IntelliJ 了,但我很确定那是路径变量名。
编辑:抱歉,IntelliJ 中的内置路径宏是使用 $...$ 语法指定的。所以我认为应该是 $PROJECT_DIR$
Have you tried constructing the path using ${PROJECT_DIR} path variable? That will resolve to the project location and then you can specify the rest of the path. Like ${PROJECT_DIR}/reports/extras. I haven't used IntelliJ for a few years, but I am pretty sure that's the path variable name.
EDIT: sorry built in path macros in IntelliJ are specified using $...$ syntax. So I think it should be $PROJECT_DIR$
无法在 IDEA 中更改 GWT 编译器的输出文件夹。但是,您可以在“-extra”参数后指定任何目录的绝对路径。
顺便问一下,你使用“-extra”的目的是什么?
There is no way to change output folder for GWT compiler in IDEA. However you can specify absolute path to any directory after '-extra' parameter.
By the way for what purpose do you use '-extra'?
自 2011 年 11 月 18 日起,无法在项目模块的设置中使用路径宏。 Jetbrain 意识到了这一点,并且在他们的 JIRA 中提出了功能请求。
目前,对于拥有多名工程师的团队,我的解决方法是使用系统 TEMP 文件夹作为 GWT 编译器的额外输出,并将构建后事件中的文件移动到我想要的文件夹中。
As of November 18, 2011 it is impossible to use path macroses in settings of project modules. Jetbrain is aware of this and there is feature request in their JIRA.
My work-around for a team with multiple engineers for now is to use system TEMP folder for GWT compiler extra output and move files in post-build event to folder I want it to be at.