mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
f4ae6f0631
git-svn-id: https://zxing.googlecode.com/svn/trunk@2666 59b500cc-1b3d-0410-9834-0bbf25fbcc57
101 lines
3.9 KiB
XML
101 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (C) 2008 ZXing authors
|
|
|
|
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
|
|
|
|
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.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<project name="zxing.appspot.com" default="build" basedir=".">
|
|
|
|
<!-- Arguments to gwtc and devmode targets -->
|
|
<property name="gwt.args" value="" />
|
|
|
|
<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="6" target="6" nowarn="true"
|
|
debug="true" debuglevel="lines,vars,source"
|
|
includeantruntime="false">
|
|
<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"/>
|
|
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
|
|
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" />
|
|
</classpath>
|
|
<!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
|
|
<jvmarg value="-Xmx256M"/>
|
|
<arg value="-strict"/>
|
|
<arg line="-war"/>
|
|
<arg value="war"/>
|
|
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
|
|
<arg line="${gwt.args}"/>
|
|
<arg value="com.google.zxing.web.generator.Generator"/>
|
|
</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"/>
|
|
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
|
|
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" />
|
|
</classpath>
|
|
<jvmarg value="-Xmx256M"/>
|
|
<arg value="-startupUrl"/>
|
|
<arg value="Generator.html"/>
|
|
<arg line="-war"/>
|
|
<arg value="war"/>
|
|
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
|
|
<arg line="${gwt.args}"/>
|
|
<arg value="com.google.zxing.web.generator.Generator"/>
|
|
</java>
|
|
</target>
|
|
|
|
<target name="build" depends="gwtc" description="Build this project" />
|
|
|
|
<target name="war" depends="build" description="Create a war file">
|
|
<zip destfile="Generator.war" basedir="war"/>
|
|
</target>
|
|
|
|
<target name="clean" description="Cleans this project">
|
|
<delete dir="war/WEB-INF/classes" failonerror="false" />
|
|
<delete dir="war/generator" failonerror="false" />
|
|
</target>
|
|
|
|
</project>
|