This Question is Answered

2 "helpful" answers available (2 pts)
10 Replies Last post: Mar 4, 2013 6:28 PM by Nikolay Chashnikov (JetBrains)  
Jay Gindin Newbie 34 posts since
Jun 17, 2006
Currently Being Moderated

Feb 22, 2013 8:57 PM

How to get GWT compiler output where I want it?

For reasons that I have to ask you to accept as a given, I need to have my GWT application be built such that all the output is available at "/Foo/bar/1.0", rather than the normal "/".

 

Specifically, I need the result of compiling my GWT app inside of IntelliJ to look like this:

~/.IntelliJIdea12/system/gwt/Project.534b2263/Test.ef6cd448/run/www/

  - Foo

    - bar

      - 1.0

         - Testing.html

         - Testing.css

             - (other files in here too, like favicon.ico, etc...)

         - WEB-INF

           -(contents left out here)

         - testing

           - testing.devmode.js

               - testing.nocache.js

 

The best I can seem to do is to get the Testing.html, Testing.css, etc... in the right place. I get this by setting the "Output Relative Path" for my GWT module to "/Foo/bar/1.0/" *and* the "Path Relative to DeploymentRoot" for my Web Resource Directory to the same "/Foo/bar/1.0/".
However, the "testing" directory, containing the testing.devmode.js and testing.nocache.js seem to wind up in the ~/.IntelliJIdea12/system/gwt/Project/534b2263/Test.ef6cd448/run/www/testing directory. Obviously, this means that when the Testing.html tries to include the testing/testing.nocache.js it cannot be found, and my GWT app doesn't work.
I've attached a sample project I created similar to my real project. Hopefully I'm just missing something easy, but I've been digging around for hours...
Thanks for any help!
jay
Attachments:
Guest
Currently Being Moderated
Feb 22, 2013 9:49 PM in response to: Jay Gindin
Re: How to get GWT compiler output where I want it?

If you need to put GWT compiler output somewhere you need to create an artifact (File | Project Structure | Artifacts) and add 'GWT Compiler Output'

element to it. Also you can put 'Web facet resources' element to the same artifact. If you need to place the GWT output into a subfolder under the

artifact output root use 'New Folder' action in the 'Output layout' tree in the artifact editor.

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Feb 25, 2013 11:41 AM in response to: Jay Gindin
Re: How to get GWT compiler output where I want it?

If you modified contents of an output directory by hand you need to invoke 'Rebuild'. Also files under .IntelliJIDEA/system directory aren't supposed

to be modified or accessed by hand.

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Feb 26, 2013 10:34 AM in response to: Jay Gindin
Re: How to get GWT compiler output where I want it?

Actually the artifact containing the GWT compile output element is the only way to tell IDEA to put GWT compiler output into your desired location.

Why don't you want to create an artifact?

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Feb 27, 2013 8:25 PM in response to: Jay Gindin
Re: How to get GWT compiler output where I want it?

GWT compiler isn't called when you start GWT in the Development mode so 'Output relative path' in GWT Compiler settings isn't taken into account. To

get your project working in the both production and development modes you can do the following:

1) change 'Output relative path' in GWT Compiler setting to its default value '/testing'.

2) change 'Path related to deployment root' in Web facet settings to '/'.

3) wrap 'GWT Compiler Output' and 'Web facet resources' items in the artifact layout tree with 'Foo', 'bar', '1.0' folders.

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Mar 4, 2013 6:28 PM in response to: Jay Gindin
Re: How to get GWT compiler output where I want it?

GWT files under .../run/www directory are generated by the GWT Dev Mode process and there is no way to change their layout from IDEA. You can use

'Testing.html' as a start page in the GWT Run configuration to fix the problem.

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

More Like This

  • Retrieving data ...