Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Compiler output change
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ciciban  
View profile  
 More options Aug 5 2008, 9:44 pm
From: Ciciban <ta...@makota.net>
Date: Tue, 5 Aug 2008 18:44:03 -0700 (PDT)
Local: Tues, Aug 5 2008 9:44 pm
Subject: Compiler output change
fairly new to GWT, but I'm stuck on this one:
When GWTCompiler creates output is there a way to change module name:
e.g: module is com.mycompany.package which generates output of
"out_path\com.mycompany.package\generated_files"

Is there any way to instruct GWTCompiler to create something like
"out_path\out_folder\generated_files" ?


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
walden  
View profile  
 More options Aug 6 2008, 1:54 pm
From: walden <wmath...@aladdincapital.com>
Date: Wed, 6 Aug 2008 10:54:31 -0700 (PDT)
Local: Wed, Aug 6 2008 1:54 pm
Subject: Re: Compiler output change
I don't believe so, but that's a feature not a bug.  Generally, you
let the GWT compiler generate its output in a scratch location (where,
by the way, the fully qualified package name helps prevent you from
stepping on yourself), and then copy what you need wherever you need
it, including changing the folder name, if that's what you want.

Walden

On Aug 5, 9:44 pm, Ciciban <ta...@makota.net> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Broyer  
View profile  
 More options Aug 6 2008, 6:20 pm
From: Thomas Broyer <t.bro...@gmail.com>
Date: Wed, 6 Aug 2008 15:20:32 -0700 (PDT)
Local: Wed, Aug 6 2008 6:20 pm
Subject: Re: Compiler output change

On Aug 6, 3:44 am, Ciciban <ta...@makota.net> wrote:

> fairly new to GWT, but I'm stuck on this one:
> When GWTCompiler creates output is there a way to change module name:
> e.g: module is com.mycompany.package which generates output of
> "out_path\com.mycompany.package\generated_files"

> Is there any way to instruct GWTCompiler to create something like
> "out_path\out_folder\generated_files" ?

<module> has a rename-to attribute:

<module rename-to="out_folder">


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ciciban  
View profile  
 More options Aug 6 2008, 11:03 pm
From: Ciciban <ta...@makota.net>
Date: Wed, 6 Aug 2008 20:03:04 -0700 (PDT)
Local: Wed, Aug 6 2008 11:03 pm
Subject: Re: Compiler output change
After changing <module> to <module rename-to="out_folder"> compiler
did output files into "out_path\out_folder\generated_files"
However, ModuleName.html has following:
<script type="text/javascript" language="javascript"
src="com.mycompany.package.nocache.js"></script>

Problem is that com.mycompany.package.Hello.nocache.js is never
generated by the compiler.
Compiler actually generates out_folder.nocache.js when rename-to is
used, so ModuleName.html should have
<script type="text/javascript" language="javascript"
src="out_folder.nocache.js "></script>

Not sure if this is Compiler bug or I'm just missing another setting.
I'm using 1.5 RC1

On Aug 6, 6:20 pm, Thomas Broyer <t.bro...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Chandel  
View profile  
 More options Aug 11 2008, 8:06 pm
From: "Sumit Chandel" <sumitchan...@google.com>
Date: Mon, 11 Aug 2008 17:06:49 -0700
Local: Mon, Aug 11 2008 8:06 pm
Subject: Re: Compiler output change

Hi Ciciban,

What you've discovered is actually a feature rather than a bug. The <module
rename-to="something"> attribute is made to have a drop-in module so that
it's easy to switch between different compilation or other module settings
for your GWT project.
A typical use case for using a drop-in module is if you only want to
generate one specific version of your application (say, for Firefox) when
compiling your module for web mode testing. It would be a bit of a pain to
toggle the configurations on / off in your main module XML file because you
want to compile for Firefox only during your testing cycles and compile for
all browsers during release testing. By allowing you to use a <module
rename-to="something"> attribute, you can have a second module XML file that
you can use in parallel to your main module XML that can generate specific
application files per your alternate configuration settings in a separate
directory.

For your specific case of wanting to generate the default output in a path
that excludes the com.mycompany.package subdirectory, you'll want to follow
Walden's advice in adding a copy task to your build or release process to
have the generated contents moved over from the output directory to the
directory where you want to deploy your GWT application files.

Hope that helps,
-Sumit Chandel


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google