ant的安装使用
[root@devtest1 src]# wget http://apache.justdn.org/ant/binaries/apache-ant-1.7.0-bin.tar.gz
[root@devtest1 src]# tar zxf apache-ant-1.7.0-bin.tar.gz
[root@devtest1 src]# cd apache-ant-1.7.0
[root@devtest1 apache-ant-1.7.0]# vi /etc/profile
把ant的bin加入PATH,lib加入CLASSPATH,export ANT_HOME
export JAVA_HOME=/usr/java/jdk1.5.0_10/
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:/usr/local/pgsql/bin:/usr/local/mysql/bin:/usr/local/src/apache-ant-1.7.0/bin:
export CLASSPATH=.:/usr/java/jdk1.5.0_10/lib:/usr/java/jdk1.5.0_10/jre/lib:/usr/local/src/apache-ant-1.7.0/lib:$CLASSPATH
CVSROOT=:pserver:admin@localhost:2401/var/cvsroot
export CVSROOT
export ANT_HOME=/usr/local/src/apache-ant-1.7.0
[root@devtest1 src]# wget http://apache.justdn.org/ant/binaries/apache-ant-1.7.0-bin.tar.gz
[root@devtest1 src]# tar zxf apache-ant-1.7.0-bin.tar.gz
[root@devtest1 src]# cd apache-ant-1.7.0
[root@devtest1 apache-ant-1.7.0]# vi /etc/profile
把ant的bin加入PATH,lib加入CLASSPATH,export ANT_HOME
export JAVA_HOME=/usr/java/jdk1.5.0_10/
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:/usr/local/pgsql/bin:/usr/local/mysql/bin:/usr/local/src/apache-ant-1.7.0/bin:
export CLASSPATH=.:/usr/java/jdk1.5.0_10/lib:/usr/java/jdk1.5.0_10/jre/lib:/usr/local/src/apache-ant-1.7.0/lib:$CLASSPATH
CVSROOT=:pserver:admin@localhost:2401/var/cvsroot
export CVSROOT
export ANT_HOME=/usr/local/src/apache-ant-1.7.0
[root@devtest1 base]# source /etc/profile
[root@devtest1 base]# ant update
Buildfile: build.xml
Buildfile: build.xml
initalize:
[mkdir] Created dir: /opt/tomcat5/verican/base/build/classes/META-INF
[mkdir] Created dir: /opt/tomcat5/verican/base/build/test-classes
[mkdir] Created dir: /opt/tomcat5/verican/base/build/test-classes/META-INF
[mkdir] Created dir: /opt/tomcat5/verican/base/docs/api
[mkdir] Created dir: /opt/tomcat5/verican/base/build/classes/META-INF
[mkdir] Created dir: /opt/tomcat5/verican/base/build/test-classes
[mkdir] Created dir: /opt/tomcat5/verican/base/build/test-classes/META-INF
[mkdir] Created dir: /opt/tomcat5/verican/base/docs/api
clean:
compile_src:
[javac] Compiling 62 source files to /opt/tomcat5/verican/base/build/classes
[javac] Note: /opt/tomcat5/verican/base/src/com/verican/base/tag/URLTag.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 2 files to /opt/tomcat5/verican/base/build/classes
[javac] Compiling 62 source files to /opt/tomcat5/verican/base/build/classes
[javac] Note: /opt/tomcat5/verican/base/src/com/verican/base/tag/URLTag.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 2 files to /opt/tomcat5/verican/base/build/classes
package:
[jar] Building jar: /opt/tomcat5/verican/base/build/verican_base.jar
[jar] Building jar: /opt/tomcat5/verican/base/build/verican_base.jar
update_base_tolib:
[copy] Copying 1 file to /opt/tomcat5/verican/libraries
[copy] Copying 1 file to /opt/tomcat5/verican/libraries
update:
BUILD SUCCESSFUL
Total time: 12 seconds
看,ant可以工作了。
Total time: 12 seconds
看,ant可以工作了。
朱恒
2007-01-31
没有评论:
发表评论