mirror of
https://github.com/openstreetmap/beboj.git
synced 2025-07-22 12:08:00 +00:00
initial commit: minimal gwt project
created with eclipse plugin (Google Plugin for Eclipse 3.6 (2.2.1)) build.xml generated by webAppCreator (gwt 2.2.0) ant build script requires environvent variable GWTPATH to point to your gwt installation (alternatively replace ${env.GWTPATH} in build.xml by your gwt path)
This commit is contained in:
7
.classpath
Normal file
7
.classpath
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="war/WEB-INF/classes"/>
|
||||
</classpath>
|
28
.project
Normal file
28
.project
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>beboj</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
4
.settings/com.google.gdt.eclipse.core.prefs
Normal file
4
.settings/com.google.gdt.eclipse.core.prefs
Normal file
@ -0,0 +1,4 @@
|
||||
#Sun Apr 17 00:43:49 CEST 2011
|
||||
eclipse.preferences.version=1
|
||||
warSrcDir=war
|
||||
warSrcDirIsOutput=true
|
3
.settings/com.google.gwt.eclipse.core.prefs
Normal file
3
.settings/com.google.gwt.eclipse.core.prefs
Normal file
@ -0,0 +1,3 @@
|
||||
#Sun Apr 17 00:43:50 CEST 2011
|
||||
eclipse.preferences.version=1
|
||||
filesCopiedToWebInfLib=gwt-servlet.jar
|
143
build.xml
Normal file
143
build.xml
Normal file
@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<project name="Beboj" default="build" basedir=".">
|
||||
<!-- Arguments to gwtc and devmode targets -->
|
||||
<property name="gwt.args" value="" />
|
||||
|
||||
<!-- Configure path to GWT SDK -->
|
||||
<property environment="env" />
|
||||
<property name="gwt.sdk" location="${env.GWTPATH}" />
|
||||
|
||||
<path id="project.class.path">
|
||||
<pathelement location="war/WEB-INF/classes"/>
|
||||
<pathelement location="${gwt.sdk}/gwt-user.jar"/>
|
||||
<fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
|
||||
<!-- Add any additional non-server libs (such as JUnit) -->
|
||||
<fileset dir="war/WEB-INF/lib" includes="**/*.jar"/>
|
||||
</path>
|
||||
|
||||
<target name="libs" description="Copy libs to WEB-INF/lib">
|
||||
<mkdir dir="war/WEB-INF/lib" />
|
||||
<copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" />
|
||||
<copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet-deps.jar" />
|
||||
<!-- Add any additional server libs that need to be copied -->
|
||||
</target>
|
||||
|
||||
<target name="javac" depends="libs" description="Compile java source to bytecode">
|
||||
<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 (production mode)">
|
||||
<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"/>
|
||||
<arg line="-war"/>
|
||||
<arg value="war"/>
|
||||
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
|
||||
<arg line="${gwt.args}"/>
|
||||
<arg value="org.openstreetmap.beboj.Beboj"/>
|
||||
</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="Beboj.html"/>
|
||||
<arg line="-war"/>
|
||||
<arg value="war"/>
|
||||
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
|
||||
<arg line="${gwt.args}"/>
|
||||
<arg value="org.openstreetmap.beboj.Beboj"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="javac.tests" depends="javac" description="Compiles test code">
|
||||
<javac srcdir="test" includes="**" encoding="utf-8"
|
||||
source="1.5" target="1.5" nowarn="true"
|
||||
destdir="war/WEB-INF/classes"
|
||||
debug="true" debuglevel="lines,vars,source">
|
||||
<classpath location="/usr/share/java/junit.jar"/>
|
||||
<classpath refid="project.class.path"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="test.dev" depends="javac.tests" description="Run development mode tests">
|
||||
<mkdir dir="reports/htmlunit.dev" />
|
||||
<junit fork="yes" printsummary="yes" haltonfailure="yes">
|
||||
<jvmarg line="-Xmx256m" />
|
||||
<sysproperty key="gwt.args" value="-standardsMode -logLevel WARN" />
|
||||
<sysproperty key="java.awt.headless" value="true" />
|
||||
<classpath>
|
||||
<pathelement location="src" />
|
||||
<pathelement location="test" />
|
||||
<path refid="project.class.path" />
|
||||
<pathelement location="/usr/share/java/junit.jar" />
|
||||
</classpath>
|
||||
<batchtest todir="reports/htmlunit.dev" >
|
||||
<fileset dir="test" >
|
||||
<include name="**/*Test.java" />
|
||||
</fileset>
|
||||
</batchtest>
|
||||
<formatter type="plain" />
|
||||
<formatter type="xml" />
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test.prod" depends="javac.tests" description="Run production mode tests">
|
||||
<mkdir dir="reports/htmlunit.prod" />
|
||||
<junit fork="yes" printsummary="yes" haltonfailure="yes">
|
||||
<jvmarg line="-Xmx256m" />
|
||||
<sysproperty key="gwt.args" value="-prod -standardsMode -logLevel WARN -standardsMode -out www-test" />
|
||||
<sysproperty key="java.awt.headless" value="true" />
|
||||
<classpath>
|
||||
<pathelement location="src" />
|
||||
<pathelement location="test" />
|
||||
<path refid="project.class.path" />
|
||||
<pathelement location="/usr/share/java/junit.jar" />
|
||||
</classpath>
|
||||
<batchtest todir="reports/htmlunit.prod" >
|
||||
<fileset dir="test" >
|
||||
<include name="**/*Test.java" />
|
||||
</fileset>
|
||||
</batchtest>
|
||||
<formatter type="plain" />
|
||||
<formatter type="xml" />
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test" description="Run development and production mode tests">
|
||||
<antcall target="test.dev" />
|
||||
<antcall target="test.prod" />
|
||||
</target>
|
||||
|
||||
<target name="hosted" depends="devmode" description="Run development mode (NOTE: the 'hosted' target is deprecated)" />
|
||||
|
||||
<target name="build" depends="gwtc" description="Build this project" />
|
||||
|
||||
<target name="war" depends="build" description="Create a war file">
|
||||
<zip destfile="Beboj.war" basedir="war"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" description="Cleans this project">
|
||||
<delete dir="war/WEB-INF/classes" failonerror="false" />
|
||||
<delete dir="war/beboj" failonerror="false" />
|
||||
</target>
|
||||
|
||||
</project>
|
0
src/org/openstreetmap/beboj/.gitignore
vendored
Normal file
0
src/org/openstreetmap/beboj/.gitignore
vendored
Normal file
BIN
war/WEB-INF/lib/gwt-servlet.jar
Normal file
BIN
war/WEB-INF/lib/gwt-servlet.jar
Normal file
Binary file not shown.
10
war/WEB-INF/web.xml
Normal file
10
war/WEB-INF/web.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
||||
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
|
||||
<!-- TODO: Add <servlet> tags for each servlet here. -->
|
||||
<!-- TODO: Add <servlet-mapping> tags for each <servlet> here. -->
|
||||
<!-- TODO: Optionally add a <welcome-file-list> tag to display a welcome file. -->
|
||||
</web-app>
|
Reference in New Issue
Block a user