(file) Return to README CVS log (file) (dir) Up to [Development] / GWTAntTasks

File: [Development] / GWTAntTasks / README (download)
Revision: 1.2, Mon Jan 8 20:36:20 2007 UTC (15 years, 11 months ago) by pjaol
Branch: MAIN
Changes since 1.1: +7 -2 lines
Added line about running ant -lib path/to/gwt

GWTAntTasks is licensed under
Copyright 2006 pjaol.com.
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

$Id: README,v 1.2 2007/01/08 20:36:20 pjaol Exp $
$Log: README,v $
Revision 1.2  2007/01/08 20:36:20  pjaol
Added line about running ant -lib path/to/gwt

Revision 1.1  2007/01/08 20:28:54  pjaol
Updated License, added a README

GWT = Google Web Toolkit available from http://code.google.com/webtoolkit/download.html
ant = Apache ant http://ant.apache.org/

Compiling from source
Edit properties/gwt.properties and point 
gwt.home= to the installation of your version of GWT

ant -f build_deploy.xml
This will create a deploy/ant-gwt-tasksdefs.jar

In your ant build file add 
<taskdef resource="GWTAntTasks.properties" classpath="deploy/ant-gwt-tasksdefs.jar"/>
This will tell ant that it can find a new task in the ant-gwt-tasksdefs.jar you've just created

You can now use it as:

<target name="compile">
   	<gwtcompile src="src" out="www" module="com.pjaol.test" loglevel="error"/>

Available arguments:
src - String location of src code to compile, can also just exist as part of the classpath
out - the directory that the generated out put / compiled resources will be placed.
loglevel - verbosity, possible values are "error", "warn", "info", "trace", "debug", "spam", "all"
style - format of the output, "obf"(USCATED), "pretty", "detailed" defaults to obf

Your ant build can now be called with ant -lib path/to/gwt compile

Powered by
ViewCVS 0.9.2