ant 编译路经

<project name="avm" default="hkdev22" basedir=".">

<description>
The build file for AVM project
</description>

<!-- set global properties for this build -->
<property name="prj_name" value="avm" />
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="deploy" location="deploy" />
<property name="dist_file" value="${dist}/${prj_name}" />

<!-- set the library file to empty first -->
<property name="lib_common" value="common" />
<!--modify by frank
<property name="lib_spring" value="spring/spring1.2" />
-->
<property name="lib_spring" value="../libgt/spring/spring2.0.6" />
<property name="lib_hibernate" value="hibernate/hibernate2" />
<property name="lib_mysql_connector" value="jdbc/MySQL/v3.1.6" />

<!-- Carry out all the initialization work -->
<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
</target>

<path id="lib.class.path" >
<fileset dir="webapp/WEB-INF/lib" >
<include name="*.jar" />
</fileset>

<fileset dir="${lib_spring}" >
<include name="*.jar" />
</fileset>
<!--<fileset dir="${jar.all.dir}" >
<include name="**/*.jar" />
<include name="*.jar" />
</fileset>-->
</path>


<!-- Compile the source -->
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="webapp/WEB-INF/classes" encoding="utf-8" >

<classpath refid="lib.class.path" />
</javac>
</target>
<project>


 <path id="lib.class.path" >
<fileset dir="webapp/WEB-INF/lib" >
<include name="*.jar" />
</fileset>

<fileset dir="${lib_spring}" >
<include name="*.jar" />
</fileset>
<!--<fileset dir="${jar.all.dir}" >
<include name="**/*.jar" />
<include name="*.jar" />
</fileset>-->
</path>



eclipse 编译的时候 要使用编写的classpath 经常忘记
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值