Hi tapas,
The technique Rosh described above should help you get where you need to go.

One last thing that I thought would be useful to mention is that you can
place images or CSS files or any other static resources in paths that will
be respected in the compile output directory by placing these resources in
your GWT application's 'public' folder, and creating sub-folders
appropriately. For example:

MyApp/src/com/google/myapp/public/images/gwt_logo.png
MyApp/src/com/google/myapp/public/images/thought.png
MyApp/src/com/google/myapp/public/styles/stylin.css

During compilation, the GWT compiler will place these files into the output
directory while respecting the sub-folders they are contained in. So in the
compiled output, you'll get:

war/myapp/images/gwt_logo.png
war/myapp/images/thought.png
war/myapp/styles/stylin.css

Where /myapp/ is specified in <module rename-to='myapp'> in your module XML
file.

Hope that helps,
-Sumit Chandel

On Thu, Feb 26, 2009 at 8:26 PM, Rosh PR <[email protected]> wrote:

> Yes that is possible, You can group all your images into a directory during
> your dev time & resource it accordingly
> in ur build & css files. You can even group all the nocache.js & cashe.js
> files into a separate directory & link that to the
> root html file by specifying the root in the meta tag. Something like this
>
> if your GWT Module is com.company.app.MyApp, the default <meta> tag in
> /index.html would be:
>
> <meta name="gwt:module" content="com.company.app.MyApp"/>
>
> To instruct GWT to load files from the /gwt-files/ path instead of the
> root (/) path, use an alternate form of the content attribute
>
> <meta name="gwt:module" content="gwt-files=com.company.app.MyApp"/>
>
> I hope this helps.
>
>
>
> On Thu, Feb 26, 2009 at 3:49 PM, [email protected] <[email protected]>wrote:
>
>>
>> Hello All,
>> In 1.5 , Once the GWT compiler compiles the code it generates lots
>> of .js ,.png,.html,.rpc,.gif etc files and dump all these resources in
>> a directory. In 1.6 , the fantastic war mechanism has come but still
>> the compiled resources are dumped under the wer directory and all are
>> together. Is there any configurable option to structure the related
>> files together like , all .js files in a directory say javascript ,
>> all .pngs are in images directory etc ..
>>
>> Any thoughts ?
>>
>> Thanks,
>> -tapas
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to