forked from nutzam/nutz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·72 lines (61 loc) · 2.74 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<project name="nutz" default="run" basedir=".">
<description>
Nutz Framework build file
</description>
<!-- set global properties for this build -->
<property environment="env" />
<property name="JAVA_HOME" value="${env.JAVA_HOME}" />
<property name="DEPHOME" value="${env.DEPS}" />
<property name="OP" value="${env.OUTPUT}" />
<property name="PROJECT_HOME" value="${env.PROJECT_HOME}" />
<property name="SRC" location="${PROJECT_HOME}/src" />
<property name="TMP" value="${PROJECT_HOME}/build/temp" />
<property name="JDK_VERSION" value="1.6" />
<property name="JDBC_EXPERT" value="org/nutz/dao/jdbc/nutz_jdbc_experts.js" />
<property name="v" value="1.r.62" />
<property name="zlang" value="org/nutz/lang/**,org/nutz/castor/**,org/nutz/repo/**,org/nutz/resource/**,org/nutz/*.*" />
<property name="zplugin" value="org/nutz/plugin/**" />
<property name="zlog" value="org/nutz/log/**" />
<property name="zjson" value="org/nutz/json/**" />
<property name="zdao" value="org/nutz/dao/**,org/nutz/service/**,org/nutz/trans/**" />
<property name="zioc" value="org/nutz/ioc/**,org/nutz/aop/**" />
<property name="zmvc" value="org/nutz/mvc/**,org/nutz/filepool/**,org/nutz/http/**" />
<property name="zall" value="**" />
<path id="CLASSPATH">
<fileset dir="${DEPHOME}" casesensitive="no">
<include name="*.jar" />
</fileset>
<pathelement location="${JAVA_HOME}/lib/rt.jar" />
</path>
<target name="init">
<mkdir dir="${TMP}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${SRC}" destdir="${TMP}" debuglevel="lines,vars,source" debug="true"
source="${JDK_VERSION}" target="${JDK_VERSION}"
encoding="UTF-8" listfiles="off"
includeantruntime="false"
fork="true">
<compilerarg value="-Xlint:all" />
<classpath refid="CLASSPATH" />
</javac>
<copyfile src="${SRC}/${JDBC_EXPERT}" dest="${TMP}/${JDBC_EXPERT}" />
<copy todir="${TMP}">
<fileset dir="${SRC}" excludes="**/*.java" />
</copy>
</target>
<target name="jar" depends="compile">
<echo message="TMP: ${TMP}" />
<!--jar destfile="${OP}/nutz-all-${v}.jar" basedir="${TMP}" />
<jar destfile="${OP}/nutz.lang-${v}.jar" basedir="${TMP}" includes="${zlang}" />
<jar destfile="${OP}/nutz.json-${v}.jar" basedir="${TMP}" includes="${zlang},${zjson}" />
<jar destfile="${OP}/nutz.dao-${v}.jar" basedir="${TMP}" includes="${zlang},${zdao}" />
<jar destfile="${OP}/nutz.ioc-${v}.jar" basedir="${TMP}" includes="${zlang},${zjson},${zdao},${zioc}" /-->
<jar destfile="${OP}/nutz-${v}.jar" basedir="${TMP}" includes="${zall}" />
<jar destfile="${OP}/nutz-source-${v}.jar" basedir="${SRC}" includes="${zall}" />
</target>
<target name="run" depends="jar">
<delete dir="${TMP}" />
</target>
</project>