ANT 셋팅

2012. 2. 15. 18:00CM/Ant

반응형
http://ant.apache.org 에서 OS에 맞게 다운로드 하자~~




os에 맞게 다운로드를 하자!^0^~~good~~




여기에서는 서버에다가 셋팅을 해볼 것 이므로 tar.gz을 받자!!

그런 뒤에 FTP로 서버에 압축된 파일을 올린 뒤!

http://acet.tistory.com/25 를 참고하여 압축을 풀자!

.profile 을 수정 하자^-^~

-rw-r--r--   1 boons    other        174  2월 15일  13:07 local.profile
-rw-r--r--   1 boons    other        157  2월 15일  13:07 local.login
-rw-r--r--   1 boons    other        136  2월 15일  13:07 local.cshrc
drwxr-xr-x   2 boons    other        512  2월 15일  15:52 bin
drwxr-xr-x   3 boons    other        512  2월 15일  16:03 ant
-rw-------   1 boons    other        460  2월 15일  17:13 .sh_history
-rw-r--r--   1 boons    other        218  2월 15일  16:12 .profile
drwxr-xr-x   5 root     root         512  2월 15일  13:07 ..
drwxr-xr-x   4 boons    other        512  2월 15일  15:53 .

vi로 열때 단말기 폭 초과 오류가 난다면
http://acet.tistory.com/17

vi로 연 다음
아래의 내용을 추가 시킨다.
export ANT_HOME=/경로추가
export PATH=$ANT_HOME/bin

추가한뒤에 적용을 해줄려면!!!

솔라리스인경우는 $ . .profile 요렇게 해주면 된다.
리눅스가 아마..source .profile이였던거 같다.

이렇게 한 뒤에!!!

ant -version을 하면!!!!! 두둥~~~~

에러난다-_-;;;

$ ant -version
/app/boons/ant/apache-ant-1.8.2/bin/ant: 거짓: 없음
/app/boons/ant/apache-ant-1.8.2/bin/ant: 거짓: 없음
/app/boons/ant/apache-ant-1.8.2/bin/ant: uname: 없음
/app/boons/ant/apache-ant-1.8.2/bin/ant: 거짓: 없음
/app/boons/ant/apache-ant-1.8.2/bin/ant: 거짓: 없음
/app/boons/ant/apache-ant-1.8.2/bin/ant: which: 없음
Error: JAVA_HOME is not defined correctly.
  We cannot execute java

자바가 없단다 ㅋㅋㅋ 아놔;

설정을 해준뒤...(기존에 자바가 있어서 .profile에 PATH를 추가해주었다!!!!
ex) PATH=/usr/java/bin:

ant -version 을 치면 아래와 같이 나오면 성공!!!
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

setting 끝~~

반응형

'CM > Ant' 카테고리의 다른 글

Hello World 찍기! & for 루프 사용!!  (0) 2012.10.05
[문법] 개미 잡자~!!  (0) 2012.10.05
tar.gz 압축 풀기  (4) 2012.02.15