Ant > Ant Eclipse IDE Integration
|
Ant Eclipse IDE Integration
To integrate Ant build file with the Eclipse IDE, first create a build.xml file, right click the project select New->Other->XML, enter the name as build.xml and click Finish.
Eclipse IDE 集成Ant,首先要创建一个build.xml文件.右击工程选择 New->Other->XML,键入build.xml点击Finish.
<?xml version="1.0" ?>
<project name="Ant Example" default="execute">
<target name="init" depends="clean">
<mkdir dir="build/classes" />
</target>
<target name="compile" depends="init">
<javac srcdir="src" destdir="build/classes" />
</target>
<target name="execute" depends="compile">
<java classname="com.vaannila.helloworld.HelloWorld" classpath="build/classes" />
</target>
<target name="clean">
<delete dir="build" />
</target>
</project>
To build the project right click the build.xml file and select Ant Build.
build工程右击build.xml选择 Ant Build.
The HelloWorld.java file will be compiled and executed. The following message shows the sequence of events that happen once the build file is executed.
HelloWorld.java文件就会编译并运行.下面信息会依此显示出来.
Buildfile: E:\Eclipse Workspace\AntExample\build.xml
clean:
[delete] Deleting directory E:\Eclipse Workspace\AntExample\build
init:
[mkdir] Created dir: E:\Eclipse Workspace\AntExample\build\classes
compile:
[javac] Compiling 1 source file to E:\Eclipse Workspace\AntExample\build\classes
execute:
[java] Hello World!
BUILD SUCCESSFUL
Total time: 625 milliseconds
You can download the build file here.
|
分享到:
相关推荐
glassfish ant eclipse 配置 指南 图解
一个关于ant4eclipse的插件的东东
用Eclipse IDE可以自动生成ANT的build文件,但是该文件的路径名移植性太差。当应用hudson一类的自动化平台来构建Eclipse插件时,不能直接调用ANT工具来编译。本工具自动修改Eclipse的路径为 ${ECLIPSE_HOME},并且...
Using ANT in Eclipse
ant-eclipse-1.0 nutch
标签:ant-eclipse.jar.zip,ant,eclipse,jar.zip包下载,依赖包
博文链接:https://congpeixue.iteye.com/blog/208377
标签:ant-eclipse-jvm1.2-1.0.jar.zip,ant,eclipse,jvm1.2,1.0,jar.zip包下载,依赖包
Eclipse之ANT使用,开发部署工具利器!
eclipse下利用ant、junit进行自动化测试例子源码
ant打包rcp必备环境 eclipse-3.8.2-delta-pack eclipse-SDK-3.8.2-win32 org.eclipse.rcp-3.8.2
使用 Eclipse 和 Ant 进行 Python 开发
eclipse中如何使用ANT,eclipse中如何使用ANT,eclipse中如何使用ANT,eclipse中如何使用ANT,eclipse中如何使用ANT
NULL 博文链接:https://mwhgjava.iteye.com/blog/849763
eclipse ant打包,所需要的内容ant 文件夹,里面的内容请根据自己的目录,秘钥进行修改 然后放进工程根目录即可
利用ANT和Eclipse提高服务部署的工作效率
利用Ant和Eclipse有效提高部署工作效率 很好的ant教程
标签:ant4eclipse.jar.zip,ant4eclipse,jar.zip包下载,依赖包