| <!--                                                                        --> | 
 | <!-- Copyright 2009 Google Inc.                                             --> | 
 | <!-- Licensed under the Apache License, Version 2.0 (the "License"); you    --> | 
 | <!-- may not use this file except in compliance with the License. You may   --> | 
 | <!-- may obtain a copy of the License at                                    --> | 
 | <!--                                                                        --> | 
 | <!-- http://www.apache.org/licenses/LICENSE-2.0                             --> | 
 | <!--                                                                        --> | 
 | <!-- 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. License for the specific language governing permissions and   --> | 
 | <!-- limitations under the License.                                         --> | 
 | <project name="MissingPlugin" default="build" basedir="."> | 
 |   <property name="gwt.root" location="../.." /> | 
 |   <property name="project.tail" value="plugins/MissingPlugin" /> | 
 |   <import file="${gwt.root}/common.ant.xml" /> | 
 |  | 
 |   <property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" /> | 
 |   <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" /> | 
 |  | 
 |   <path id="project.class.path"> | 
 |     <pathelement location="war/WEB-INF/classes"/> | 
 |     <pathelement location="${gwt.user.jar}" /> | 
 |     <pathelement location="${gwt.dev.jar}" /> | 
 |     <!-- Add any additional non-server libs (such as JUnit) --> | 
 |     <fileset dir="war/WEB-INF/lib" includes="**/*.jar"/> | 
 |   </path> | 
 |  | 
 |   <target name="javac" description="Compile java source"> | 
 |     <mkdir dir="war/WEB-INF/classes"/> | 
 |     <javac srcdir="src" 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="gwtc" depends="javac" description="GWT compile to JavaScript"> | 
 |     <gwt.javac destdir="war/WEB-INF/classes"> | 
 |       <classpath> | 
 |         <path refid="project.class.path"/> | 
 |       </classpath> | 
 |     </gwt.javac> | 
 |     <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"> | 
 |       <classpath> | 
 |         <pathelement location="src"/> | 
 |         <path refid="project.class.path"/> | 
 |       </classpath> | 
 |       <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> | 
 |       <jvmarg value="-Xmx256M"/> | 
 |       <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> | 
 |       <arg value="com.google.gwt.missingplugin.MissingPlugin"/> | 
 |     </java> | 
 |   </target> | 
 |  | 
 |   <target name="devmode" depends="javac" description="Run development mode"> | 
 |     <java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode"> | 
 |       <classpath> | 
 |         <pathelement location="src"/> | 
 |         <path refid="project.class.path"/> | 
 |       </classpath> | 
 |       <jvmarg value="-Xmx256M"/> | 
 |       <arg value="-startupUrl"/> | 
 |       <arg value="MissingPlugin.html"/> | 
 |       <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> | 
 |       <arg value="com.google.gwt.missingplugin.MissingPlugin"/> | 
 |     </java> | 
 |   </target> | 
 |  | 
 |   <target name="build" depends="gwtc" description="Build this project" /> | 
 |  | 
 |   <target name="war" depends="build" description="Create a war file"> | 
 |     <zip destfile="MissingPlugin.war" basedir="war"/> | 
 |   </target> | 
 |  | 
 |   <target name="clean" description="Cleans this project"> | 
 |     <delete dir="war/WEB-INF/classes" failonerror="false" /> | 
 |     <delete dir="war/missingplugin" failonerror="false" /> | 
 |   </target> | 
 |  | 
 | </project> |