Is there way to tell IntelliJ IDEA which output folder to use for GWT compiler?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 08:50:46

问题


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

回答1:


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$




回答2:


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'?




回答3:


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.



来源:https://stackoverflow.com/questions/8070767/is-there-way-to-tell-intellij-idea-which-output-folder-to-use-for-gwt-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!