In case if any of you still dont want to use webappcreator and are sticking
on with writing the build.xml ...
Here is the code...
-----------------------------
<project name="GWT_nav" basedir=".">
<property name="src-dir" value="src"/>
<property name="build-dir" value="war/WEB-INF/classes"/>
<property name="lib-dir" value="war/WEB-INF/lib"/>
<property name="war-dir" value="build"/>
<property name="common-lib" value="war/WEB-INF/lib"/>
<property name="gwt.build.dir" value="war/gwt_nav"/>
<property name="gwt.sdk" location="D:/gwt-2.0.3" />
<path id="project.class.path">
<pathelement location="war/WEB-INF/classes"/>
<fileset dir="${lib-dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean" description="Cleans this project">
<delete dir="war/WEB-INF/classes" failonerror="false" />
</target>
<target name="javacompile" description="Compile java source">
<mkdir dir="war/WEB-INF/classes"/>
<javac srcdir="${src-dir}" includes="**" encoding="utf-8"
destdir="war/WEB-INF/classes"
source="1.5" target="1.5" nowarn="true"
debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path"/>
</javac>
<copy todir="war/WEB-INF/classes">
<fileset dir="src" excludes="**/*.java"/>
</copy>
</target>
<target name="GWTCompile" depends="javacompile" description="GWT compile">
<delete dir="${gwt.build.dir}"/>
<mkdir dir="${gwt.build.dir}"/>
<java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
</classpath>
<jvmarg value="-Xmx256M"/>
<arg line=""/>
<arg value="com.example.GWT_navsupp"/>
</java>
</target>
</project>
------------------------------
remember to include
gwt-dev.jar -- 18,914,118 bytes
gwt-servlet.jar -- 1,574,034 bytes
gwt-user.jar -- 5,212,030 bytes
and also check the version and size of there jars.. There are lots of
versions of gwt-dev, be very careful with this one...
Regards
Naveen
--
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.