Skip to content

Instantly share code, notes, and snippets.

@shimarin
Created December 18, 2008 09:10
Show Gist options
  • Save shimarin/37447 to your computer and use it in GitHub Desktop.
Save shimarin/37447 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!-- 適当なbuild.xml -->
<project default="war">
<property name="war" value="myproj.war"/>
<property name="webapp" value="build/webapp"/>
<property name="classes" value="${webapp}/WEB-INF/classes"/>
<property name="lib" value="src/webapp/WEB-INF/lib"/>
<target name="war">
<delete dir="build"/>
<mkdir dir="${classes}"/>
<javac srcdir="src/java" destdir="${classes}" encoding="UTF-8" debug="true">
<classpath>
<fileset dir="lib" includes="*.jar"/>
<fileset dir="${lib}" includes="*.jar"/>
</classpath>
</javac>
<copy todir="${webapp}">
<fileset dir="src/webapp" includes="**/*.xml,**/*.jrxml,**/*.jasper,**/*.jsp,**/*.tld,**/*.jar,**/*.css,**/*.exe,**/*.html,**/*.swf"/>
</copy>
<jar basedir="${webapp}" jarfile="build/${war}"/>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment