<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 经常忘记
分享到:
相关推荐
ant 编译jar包
Ant编译后的zookeeper源码 版本:zookeeper-release-3.4.11、apache-ant-1.9.14 可直接导入eclipse或idea
介绍了如何通过ant进行java web工程的编译操作的详细配置
使用Ant编译打包
ant脚本编译出jar
作为apache下的一个编译工具,可以用来编译一些较大的java web项目,简单实用方便!
Ant编译环境配置 文章《使用ant编译之签名问题》的相关资料。主要讲一些Ant编译问题。
Apache Ant,是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。
本文档中的内容多是从实际开发中总结出来的。 ANT 最佳实践 http://www.ossez.com/forum.php?mod=viewthread&tid=13460&fromuid=426
Ant 编译 多目录demo,同时编译多个目录的Ant demo代码。
ant编译staf插件
适合在ant下进行编译的工具,以及一些checkstyle,方便实用
在编译flex/java工程是采用Ant自动编译,将编译好的工程进行打包发布.
NULL 博文链接:https://liuna718-163-com.iteye.com/blog/1859773
sdfasdfsdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasda
Ant编译打包android工程,签名,多渠道
ant编译时抛出OutOfMemoryError.doc
后来我了解了javac命令和下字节码的知识。分析如下:Ant的debug和debuglevel参数会去调用JDK的javac ...所以,我们用javac -g参数或者用Ant的编译类可以读出方法参数名,而编译接口就不能读出,仍然是arg0,arg1的形式。
直接使用flex的sdk生成swc文件,很繁琐,而且对于大项目来说,是个头痛的事情。ant在对java打包生成jar时,它优良的设计显露无疑,这里我们使用它,来生成swc,完成项目编译打包。