后端 Apache ant :建立build.xml搬档或用eclipse run as ant 建立.class

shyokou · September 09, 2019 · 1 hits

摘要:Apache ant :建立 build.xml 搬档或用 eclipse run as ant 建立.class


设定系统变量,ant 需要 java 支持,

1:确定系统安装 JDK,并配置 JAVA 系统变量

ANT_HOME   E:apache-ant-1.9.1

PATH       %ANT_HOME%bin

CLASSPATH  %ANT_HOME%lib

JAVA_HOME>C:Program FilesJavajdk1.7.0_40

验证 ANT

CMD ->ant

如出现无 BUILD.XML 即成功配置。



2:新增 build.xml

<?xml version="1.0" encoding="UTF-8"?>


 

     

 



3:DOS ->该 build.xml 执行 ant 命令



No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.