Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!-- Rename this to your project name -->
  2. <project name="YOUR_PROJECT_NAME" basedir="." default="default">
  3.  
  4. <property name="src.dir" value="src" />
  5. <property name="build.dir" value="war" />
  6. <path id="compile.classpath">
  7. <fileset dir="${build.dir}/WEB-INF/lib">
  8. <include name="**/*.jar" />
  9. <include name="**/*.xml" />
  10. </fileset>
  11. </path>
  12. <target name="default" depends="buildwar,deploy"></target>
  13.  
  14. <target name="gwtc" description="GWT compile to JavaScript">
  15. <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
  16. <classpath>
  17. <pathelement location="${src.dir}" />
  18. <path refid="compile.classpath" />
  19. </classpath>
  20. <arg line="-logLevel INFO" />
  21. <jvmarg value="-Xmx1024M" />
  22. <!-- you can ignore this -->
  23. <arg value="DVITA_WebApplication.DVITA_WebApplication" />
  24. </java>
  25. </target>
  26.  
  27. <target name="buildwar">
  28. <!-- Rename to whatever you like-->
  29. <war basedir="war" destfile="DVita.war" webxml="war/WEB-INF/web.xml">
  30. <exclude name="WEB-INF/**" />
  31. <webinf dir="war/WEB-INF/">
  32. <include name="**/*.jar" />
  33. <include name="**/classes/**" />
  34. </webinf>
  35. </war>
  36. </target>
  37.  
  38. <target name="deploy">
  39. <!-- Use the same name again -->
  40. <copy file="DVita.war" todir="." />
  41. </target>
  42. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement