-compile.cmd and -shell.cmd files on Project Creation

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

-compile.cmd and -shell.cmd files on Project Creation

Postby unclerico » Tue Dec 09, 2008 10:03 am

Hi,

When I create a new GWT project from my command line prompt, (using the Google instructions) with projectCreator and applicationCreator, I automatically have applicationName-compile.cmd and -shell.cmd files created within the project directory.

Inside of Eclipse, to create a new GWT project with Designer, I am choosing new>other>GWT>GWT Java Project. I think this choice was added when I installed GWT Designer (correct?). However, the default -compile.cmd and -shell.cmd files are not being created within the new project when I choose this command. Is this a setting I can change? I am aware that I can still compile and run the project using the "Run" command inside of Eclipse, but I would like to be able to jump out into the command line prompt and move back and forth for speed.

Is there a setting such that I can have the -compile.cmd and -shell.cmd batch files automatically added to my project upon creation?

Thanks.
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: -compile.cmd and -shell.cmd files on Project Creation

Postby Eric Clayberg » Wed Dec 10, 2008 6:24 am

unclerico wrote:Is there a setting such that I can have the -compile.cmd and -shell.cmd batch files automatically added to my project upon creation?

No. Those files are not needed by GWT Designer, so it does not generate them.

Those files (created at project creation time) would quickly get out of date as new dependencies are added to the project, so you would need to maintain them by hand anyway.

If you want to use the command line, you can run/compile using GWT Designer and then copy the content of the launch command (from the properties in the Debug view) to a *.cmd file.

gwt-command-line.png
GWT command line
gwt-command-line.png (103.24 KiB) Viewed 1021 times
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: -compile.cmd and -shell.cmd files on Project Creation

Postby unclerico » Mon Dec 15, 2008 2:21 pm

Eric -

I take it that by starting a project with the GWT Designer choice, along with no -shell.cmd and -compile.cmd files, I do not get a ApplicationName.launch file?

I thought that in order to use the debugger in Eclipse, the project needs to specify a .launch file. Am I supposed to go and create one manually for each new project?

What's the best way to do that (create a new .launch file?)

Thanks.
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: -compile.cmd and -shell.cmd files on Project Creation

Postby Eric Clayberg » Tue Dec 16, 2008 5:14 am

See the GWT Designer docs on Application Launching.

Image Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: -compile.cmd and -shell.cmd files on Project Creation

Postby unclerico » Tue Dec 16, 2008 2:49 pm

So, I suppose I am to:

1. ignore the absence of a .launch file.

2. set up a Debug configuration rather than a Run configuration

3. keep trying from there....
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: -compile.cmd and -shell.cmd files on Project Creation

Postby Eric Clayberg » Tue Dec 16, 2008 3:19 pm

unclerico wrote:So, I suppose I am to:
1. ignore the absence of a .launch file.
2. set up a Debug configuration rather than a Run configuration
3. keep trying from there....

I'm not sure what you are trying to do or what problem you are trying to report here.

You can create a .launch file from the launch configuration dialog (just like for any other Eclipse launch configuration).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests