On Mon, 2009-03-02 at 09:19 +0900, Shawn Brown wrote:
>  Hi,
> 
> > GWT 1.6 seems to require a JAR of the required project be put in the
> > war/WEB-INF/lib directory, even for hosted mode. Has anybody been able
> > to work around this? (not using additional build tools)

Yes. You also need it in your deploy of the war directory. So, you do it
in the build.xml

  <target name="libs" description="Copy libs to WEB-INF/lib">
    <mkdir dir="war/WEB-INF/lib" />
    <copy todir="war/WEB-INF/lib" 
      file="/data/PSI/gwt-linux-1.6.0/gwt-servlet.jar"/>
    <!-- additional non-server libs -->
    <copy todir="war/WEB-INF/lib" file="src/lib/gwt-incubator.jar"/>
    <copy todir="war/WEB-INF/lib" file="src/lib/gwt-dnd-2.5.6.jar" />

    <!-- Add any additional server libs that need to be copied -->
  </target>

Hope this helps.

BaTien
DBGROUPS and BudhNet


> 
> Have you tried to modify
> build.xml
> 
> for example I have:
> 
>       <path id="project.class.path">
>               <pathelement location="war/WEB-INF/classes" />
>               <pathelement location="/gwt/gwt-mac-1.6.0/gwt-user.jar" />
>               <pathelement location="/gwt/gwt-mac-1.6.0/gwt-dev-mac.jar" />
>               <fileset dir="src/com/sample/gwt/client/">
>                       <include name="**/*.java" />
>               </fileset>
>               <fileset dir="compile_libs">
>                       <include name="**/*.jar" />
>               </fileset>
>               <!-- pathelement location="compile_libs/ "/>
>       <Add any additional non-server libs (such as JUnit) -->
>               <fileset dir="war/WEB-INF/lib">
>                       <include name="**/*.jar" />
>               </fileset>
>       </path>
> 
> Best Luck,
> 
> Shawn
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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