Ant在eclipse中的build.xml的配置
2006-09-24 12:08
<?xml version="1.0" ?>
<!--
set global properties for this build-->
<!--
发布WEB路径-->
<
property
name
="
DEPLOY_PATH
"
value
="
C:/Tomcat 5.5/webapps/jieshengda
" />
<!--
源WEB路径-->
<
property
name
="
WEB_PATH
"
value
="
D:/EclipseWork/jiedasheng/WebRoot
" />
<!--
源编译的jar包路径-->
<
property
name
="
JAR_PATH
"
value
="
D:/EclipseWork/jiedasheng/WebRoot/WEB-INF/lib
" />
<!--
源java文件路径-->
<
property
name
="
SCR_PATH
"
value
="
D:/EclipseWork/jiedasheng/src
" />
<!--
源class文件路径-->
<
property
name
="
CLASS_PATH
"
value
="
D:/EclipseWork/jiedasheng/WebRoot/WEB-INF/classes
" />
<!--
定义classpath-->
<
fileset
file
="
${JAR_PATH}/*.jar
" />
<
pathelement
path
="
${CLASS_PATH}
" />
</
path
>
<!--
初试化-->
<
mkdir
dir
="
${DEPLOY_PATH}
" />
<
mkdir
dir
="
${DEPLOY_PATH}/WEB-INF
" />
<
mkdir
dir
="
${DEPLOY_PATH}/WEB-INF/classes
" />
<
mkdir
dir
="
${DEPLOY_PATH}/WEB-INF/lib
" />
</
target
>
<!--
编译类-->
<
mkdir
dir
="
${CLASS_PATH}
" />
<
classpath
refid
="
LIB_CLASS_PATH
" />
</
javac
>
</
target
>
<!--
Copy发布-->
<
include
name
="
**/*.*
" />
<
exclude
name
="
**/jsp_servlet/*.class
" />
<
exclude
name
="
**/build.xml
" />
<
exclude
name
="
**/deploy.xml
" />
<
exclude
name
="
**/build.properties
" />
<
exclude
name
="
**/servers.xml
" />
<
exclude
name
="
**/targets.xml
" />
<
exclude
name
="
**/*.war
" />
</
fileset
>
</
copy
>
</
target
>
</
project
>
|