add instructions for running GWT in superdevmode
This commit is contained in:
parent
ba52bfddbe
commit
05b0902754
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,7 @@ target/
|
||||
/vtm/jni/poly2tri/
|
||||
/vtm/libs/
|
||||
/vtm-gdx-html/war/assets/
|
||||
/vtm-gdx-html/war/WEB_INF/
|
||||
/vtm-gdx-html/war/WEB-INF/
|
||||
/vtm-gdx-html/war/org.oscim.gdx.GwtDefinition/
|
||||
/vtm-gdx-html/gwt-unitCache
|
||||
/vtm-gdx-ios/
|
||||
|
20
vtm-gdx-html/HOWTO-SuperDevMode.txt
Normal file
20
vtm-gdx-html/HOWTO-SuperDevMode.txt
Normal file
@ -0,0 +1,20 @@
|
||||
Using GWT SuperDevMode is the recommended way for development.
|
||||
|
||||
For an introduction see:
|
||||
|
||||
http://www.gwtproject.org/articles/superdevmode.html
|
||||
http://www.badlogicgames.com/wordpress/?p=3073
|
||||
|
||||
Preparation:
|
||||
- Change build.xml <property name="gwt.location" value="/home/src/gwt-2.5.1" /> to the appropriate location.
|
||||
Then run 'ant extract-jars'
|
||||
|
||||
- To serve tiles and the html project from the same origin one can use this apache2 configuration:
|
||||
ProxyPass /tiles/ http://city.informatik.uni-bremen.de/tiles/vtm/
|
||||
ProxyPassReverse /tiles/ http://city.informatik.uni-bremen.de/tiles/vtm/
|
||||
|
||||
- Create a link to the project by 'ln -s /path/to/vtm/vtm-gdx-html/war ~/public_html/vtm'
|
||||
to make it available via http://localhost/~my_user/vtm
|
||||
|
||||
Running:
|
||||
- The codeserver can be executed with 'ant VTMSuperDevMode'
|
95
vtm-gdx-html/build.xml
Normal file
95
vtm-gdx-html/build.xml
Normal file
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project basedir="." default="build" name="vtm-gdx-html">
|
||||
<property environment="env" />
|
||||
<property name="gwt.location" value="/home/src/gwt-2.5.1" />
|
||||
<property name="vtm-libs.location" value="../vtm-ext-libs" />
|
||||
<property name="vtm.location" value="../vtm" />
|
||||
<property name="vtm-gdx.location" value="../vtm-gdx" />
|
||||
<property name="debuglevel" value="source,lines,vars" />
|
||||
<property name="target" value="1.6" />
|
||||
<property name="source" value="1.6" />
|
||||
<path id="vtm.classpath">
|
||||
<pathelement location="${vtm.location}/bin" />
|
||||
<pathelement location="${vtm-libs.location}/findbugs/annotations.jar" />
|
||||
<pathelement location="${vtm-libs.location}/libs/slf4j-api-1.7.5.jar" />
|
||||
</path>
|
||||
<path id="vtm-gdx.classpath">
|
||||
<pathelement location="${vtm-gdx.location}/bin" />
|
||||
<path refid="vtm.classpath" />
|
||||
<pathelement location="${vtm-libs.location}/gdx/gdx.jar" />
|
||||
</path>
|
||||
<path id="GWT SDK [gwt-2.5.1 - 2.5.1].libraryclasspath">
|
||||
<pathelement location="${gwt.location}/gwt-user.jar" />
|
||||
<pathelement location="${gwt.location}/gwt-dev.jar" />
|
||||
<pathelement location="${gwt.location}/validation-api-1.0.0.GA.jar" />
|
||||
<pathelement location="${gwt.location}/validation-api-1.0.0.GA-sources.jar" />
|
||||
</path>
|
||||
<path id="vtm-gdx-html.classpath">
|
||||
<pathelement location="war/WEB-INF/classes" />
|
||||
<path refid="vtm-gdx.classpath" />
|
||||
<path refid="GWT SDK [gwt-2.5.1 - 2.5.1].libraryclasspath" />
|
||||
<path refid="vtm.classpath" />
|
||||
<pathelement location="${vtm-libs.location}/gdx/gdx-backend-gwt-sources.jar" />
|
||||
<pathelement location="${vtm-libs.location}/gdx/gdx-backend-gwt.jar" />
|
||||
<pathelement location="${vtm-libs.location}/gdx/gdx-sources.jar" />
|
||||
<pathelement location="${vtm-libs.location}/gdx/gdx.jar" />
|
||||
<pathelement location="${vtm-libs.location}/libs/hudson-gwt-slf4j-2.1.2.jar" />
|
||||
</path>
|
||||
<path id="run.VTMSuperDevMode.classpath">
|
||||
<path refid="vtm-gdx-html.classpath" />
|
||||
<pathelement location="${gwt.location}/gwt-codeserver.jar" />
|
||||
</path>
|
||||
<target name="init">
|
||||
<mkdir dir="war/WEB-INF/classes" />
|
||||
<copy includeemptydirs="false" todir="war/WEB-INF/classes">
|
||||
<fileset dir="src">
|
||||
<exclude name="**/*.launch" />
|
||||
<exclude name="**/*.java" />
|
||||
<exclude name="org/oscim/gdx/emu/" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy includeemptydirs="false" todir="war/WEB-INF/classes">
|
||||
<fileset dir="src/org/oscim/gdx/emu">
|
||||
<exclude name="**/*.launch" />
|
||||
<exclude name="**/*.java" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete dir="war/WEB-INF/classes" />
|
||||
</target>
|
||||
<target depends="clean" name="cleanall">
|
||||
<ant antfile="build.xml" dir="${vtm.location}" inheritAll="false" target="clean" />
|
||||
<ant antfile="build.xml" dir="${vtm-gdx.location}" inheritAll="false" target="clean" />
|
||||
</target>
|
||||
<target depends="build-subprojects,build-project" name="build" />
|
||||
<target name="build-subprojects">
|
||||
<ant antfile="build.xml" dir="${vtm.location}" inheritAll="false" target="build-project" />
|
||||
<ant antfile="build.xml" dir="${vtm-gdx.location}" inheritAll="false" target="build-project" />
|
||||
</target>
|
||||
<target depends="init" name="build-project">
|
||||
<echo message="${ant.project.name}: ${ant.file}" />
|
||||
<javac debug="true" debuglevel="${debuglevel}" destdir="war/WEB-INF/classes" includeantruntime="false" source="${source}" target="${target}">
|
||||
<src path="src" />
|
||||
<src path="src/org/oscim/gdx/emu" />
|
||||
<exclude name="org/oscim/gdx/emu/" />
|
||||
<classpath refid="vtm-gdx-html.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects" />
|
||||
|
||||
<target name="extract-jars">
|
||||
<unzip src="${vtm-libs.location}/gdx/gdx-sources.jar" dest="war/WEB-INF/lib/">
|
||||
</unzip>
|
||||
<unzip src="${vtm-libs.location}/gdx/gdx-backend-gwt-sources.jar" dest="war/WEB-INF/lib/">
|
||||
</unzip>
|
||||
<unzip src="${vtm-libs.location}/libs/hudson-gwt-slf4j-2.1.2.jar" dest="war/WEB-INF/lib/">
|
||||
</unzip>
|
||||
</target>
|
||||
<target name="VTMSuperDevMode">
|
||||
<java classname="com.google.gwt.dev.codeserver.CodeServer" failonerror="true" fork="yes">
|
||||
<arg line="-src src/ -src ../vtm/src/ -src ../vtm-gdx/src/ -src war/WEB-INF/lib/ org.oscim.gdx.GwtDefinition" />
|
||||
<classpath refid="run.VTMSuperDevMode.classpath" />
|
||||
</java>
|
||||
</target>
|
||||
</project>
|
Loading…
x
Reference in New Issue
Block a user