Dear all,
I use NetBeans and the build.xml at the end of this post (based on one
by Jason Morris from this group). This worked great for 1.5 but I hear
there have been structural changes since then. Can anybody advise on
what might need to be changed? I have a project that I am going to
spend some time upgrading today... so expect a reply to this post if I
discover anything that affects the buildfile.
================== build.xml ==================
<?xml version="1.0" encoding="UTF-8"?>
<project name="Project" default="default" basedir=".">
<description>Builds, tests, and runs the project.</description>
<import file="nbproject/build-impl.xml"/>
<!--
The remainder of this file provides GWT support. Some targets have
been
copied from the GWT4NB plugin build-gwt.xml file (which is flawed),
and
the remainder from the forum post by Jason Morris on
http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/97f28839691de6f2
Edits have also been made to allow the dev jar to be added to the
classpath
automatically.
-->
<property file="nbproject/gwt.properties"/>
<target name="-post-compile">
<property name="output.js"
location="${build.web.dir}/${gwt.module}/$
{gwt.module}.nocache.js" />
</target>
<target name="-pre-dist">
<condition property="gwt.compile.needed">
<or>
<not>
<available file="${output.js}" />
</not>
<not>
<uptodate>
<srcfiles dir="${src.dir}"
includes="**/client/**/*.java" />
<mergemapper to="${output.js}"
/>
</uptodate>
</not>
</or>
</condition>
<!-- Could do this in one line if we could access the value
os.family -->
<condition property="gwt-dev.jar"
value="${gwt.install.dir}/gwt-dev-
mac.jar">
<os family="mac"/>
</condition>
<condition property="gwt-dev.jar"
value="${gwt.install.dir}/gwt-dev-
windows.jar">
<os family="windows"/>
</condition>
<condition property="gwt-dev.jar"
value="${gwt.install.dir}/gwt-dev-
linux.jar">
<os family="unix"/>
</condition>
<antcall target="do-gwt-compile" />
</target>
<target name="do-gwt-compile" if="gwt.compile.needed">
<!-- You can override this property in the 'gwt.properties' file
-->
<property name="gwt.compiler.output.style" value="OBFUSCATED"/>
<property name="gwt.compiler.logLevel" value="WARN"/>
<java classpath="${javac.classpath}:${gwt-dev.jar}:${src.dir}"
failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true"
maxmemory="512m">
<arg value="-out"/>
<arg path="${build.web.dir}/"/>
<arg value="-style"/>
<arg value="${gwt.compiler.output.style}"/>
<arg value="-logLevel"/>
<arg value="${gwt.compiler.logLevel}"/>
<arg value="${gwt.module}"/>
</java>
<property name="gwt.output.dir" value="${gwt.module}"/>
<move todir="${build.web.dir}/${gwt.output.dir}">
<fileset dir="${build.web.dir}/${gwt.module}"/>
</move>
</target>
<target name="debug" description="Debug project in IDE."
depends="init,compile,compile-jsps,-do-compile-single-jsp,dist"
if="netbeans.home">
<nbdeploy debugmode="true" clientUrlPart="${client.urlPart}"/>
<antcall target="connect-debugger"/>
<antcall target="debug-connect-gwt-shell"/>
</target>
<target name="debug-connect-gwt-shell" if="netbeans.home"
depends="init">
<nbjpdastart transport="dt_socket"
addressproperty="jpda.address.gwt" name="com.google.gwt.dev.GWTShell"
stopclassname="">
<classpath>
<path
path="${javac.classpath}:${gwt-dev.jar}:${src.dir}:$
{build.classes.dir}"/>
</classpath>
</nbjpdastart>
<property name="gwtshell.jvmargs.base" value="-ea -Xdebug
-Xnoagent -
Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=$
{jpda.address.gwt}"/>
<condition property="gwtshell.jvmargs" value="$
{gwtshell.jvmargs.base} -XstartOnFirstThread"
else="${gwtshell.jvmargs.base}">
<os family="mac"/>
</condition>
<!-- GWT Hosted mode must run in 32 bit mode (i.e. Java 5) on
OS X --
>
<condition property="javabinary"
value="/System/Library/Frameworks/
JavaVM.framework/Versions/1.5/Home/bin/java" else="java" >
<os family="mac"/>
</condition>
<java fork="true" classname="com.google.gwt.dev.GWTShell"
failonerror="true" maxmemory="512m" jvm="${javabinary}">
<jvmarg line="${gwtshell.jvmargs}"/>
<classpath>
<path
path="${gwt-dev.jar}:${src.dir}:${javac.classpath}:$
{build.classes.dir}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper type="glob" from="run-sys-prop.*"
to="*"/>
</syspropertyset>
<arg value="-noserver"/>
<arg value="${client.url}"/>
</java>
</target>
</project>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---