update ui layout
[freespace.git] / build.xml
blob55d16cc1c03f54450221d9cb520efca3424e96fe
1 <?xml version="1.0"?>
2 <project name="weibo4j" default="all" basedir=".">
3         <tstamp>
4                 <format property="now.date" pattern="yyyyMMddhhmmss" locale="zh" />
5         </tstamp>
6         <property name="src.dir" value="${basedir}/src" />
7         <property name="lib.dir" value="${basedir}/lib" />
8         <property name="dest.dir" value="${basedir}/dest" />
9         <property name="jar.name" value="weibo4j-${now.date}.jar" />
10         <property name="jar.dir" value="${basedir}/dict" />
11         <fileset id="libDir" dir="${lib.dir}">
12                 <include name="**/*.jar" />
13                 <exclude name="./junit-4.1.jar" />
14         </fileset>
15         <path id="classpath">
16                 <fileset refid="libDir">
17                 </fileset>
18         </path>
19         <target name="compile">
20                 <mkdir dir="${dest.dir}" />
21                 <javac srcdir="${src.dir}" destdir="${dest.dir}" encoding="UTF-8" classpathref="classpath" />
22         </target>
23         <target name="jar" depends="compile">
24                 <mkdir dir="${jar.dir}" />
25                 <delete>
26                         <fileset dir="${jar.dir}">
27                                 <include name="**/*" />
28                         </fileset>
29                 </delete>
30                 <jar destfile="${jar.dir}/${jar.name}" basedir="${dest.dir}" />
31                 <copy todir="${jar.dir}" overwrite="true">
32                         <fileset refid="libDir" />
33                 </copy>
34         </target>
35         <target name="clean" description="Cleans up all build-generated output">
36                 <delete dir="${dest.dir}" failonerror="false" />
37         </target>
39         <target name="all" depends="jar,clean" />
40 </project>