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

3

6

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
Prompter answered 9/11, 2011 at 19:54 Comment(0)
P
0

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.

Prompter answered 19/11, 2011 at 5:56 Comment(0)
S
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$

Sapele answered 10/11, 2011 at 13:43 Comment(5)
Ah I prematurely got excited :-( It doesn't work for me. When I specify GWT compiler parameters as -extra ${PROJECT_DIR}\extra it gives me error Argument 0 for @NotNull parameter of com/intellij/openapi/util/text/StringUtil.replace must not be null. Any ideas, guys ?Prompter
Seems like it's not parsing issue. It works with JAVA_HOME. Looks like PROJECT_DIR is undefined in IDEA. I have version 10.5.2.Prompter
I updated my answer. I think the internal path macro syntax is different. The other syntax is reserved for environment variables, which explains why JAVA_HOME works.Sapele
Unfortunately I tried that too. $..$ format is not even get parsed. It comes as it is in my path :)Prompter
I am out of ideas at the moment, especially since I haven't used IntelliJ for a long time and don't even have installed. I think if it's not working, it would be wise to log an issue in JetBrains JIRA (jetbrains.net/jira/secure/Dashboard.jspa) and see what they say. I thought the path macros should work everywhere. Also post a question in their support forums.Sapele
T
0

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

Tiebout answered 10/11, 2011 at 6:55 Comment(1)
Absolute path is not cool in team environment. I'm using -extra to do localization of GWT app according to this tutorial.Prompter
P
0

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.

Prompter answered 19/11, 2011 at 5:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.