Yes, it is possible. You need to do 2 things.

1. In your gwt module you need to call the rename-to attribute like
this:
<module rename-to="members">
...
</module>

2. Your ant script need to be modified. I found some pieces here and
there and it looks like this:
...

        <target name="compile-gwt" depends="init">
                <gwtCompile module="org.test.module.User" output="$
{dest.dir}/www/members/" />
                <gwtCompile module="org.test.module.Login" output="$
{dest.dir}/www/login/" />
                .....
        </target>


        <macrodef name="gwtCompile">
                <attribute name="module" />
                <attribute name="output" default="${dest.dir}/www/" />
                <sequential>
                        <java
classname="com.google.gwt.dev.GWTCompiler" fork="true">
                                <classpath refid="classpath" />
                                <jvmarg value="-Xmx256M" />
                                <arg value="-out" />
                                <arg value="@{output}" />
                                <arg value="@{module}" />
                        </java>
                </sequential>
        </macrodef>
...

Every time you create a new module, you need to define it in you ant
script.

Maybe there are different (better) solutions, but this works fine for
me.

I hope it helps!


On Jun 10, 1:00 am, lineman78 <[email protected]> wrote:
> Is there any way to tell the compiler not to put the files in a folder
> named after the package name.  i.e., if my module is
> com.google.test.TestApp and I compile with -war www, it puts all the
> files under ./www/com.google.test.TestApp.  I was wondering if there
> is a way to get it to just put all the files in ./www?  I am building
> a rather large project that I am building with an ant script and I am
> having to move all the files after they are compiled and moving over
> 6000 files is taking a long time.
--~--~---------~--~----~------------~-------~--~----~
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