2011-10-29 3 views
0

을위한 build.xml 파일은 내가작업 디렉토리 오류 - classpathref

// 바람둥이 아래로 작업을하는 빌드 파일을 중지 개미 스크립트가

When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory. 

I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue. 

Error: 

**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.** 

I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error. 

Entry in property file: 
build.tomcat.dir=C:/TomcatServer 

Any help is appreciated. 

Thanks, 
+0

빌드 파일을 더 게시 할 수 있습니까? 특히, tomcat-stop 타겟과 특성 파일의 임포트. –

+0

업데이트 된 질문의 파일 내용을 확인하십시오. – RKV

답변

0

속성 파일이 '깨끗한'대상 안에로드 된 것 같습니다. 자체적으로 'tomcat-stop'타겟을 호출하면 속성 파일이로드되지 않습니다. 다른 목표물은 '깨끗한'것에 의존하기 때문에 효과가 있습니다.

루트 요소의 직접 하위가되도록 속성 파일을로드하는 줄을 이동해보십시오. 즉, 타겟 내부에 중첩되지 않습니다.

+0

우수 ... 내가하고있는 바보 같은 짓을 알았지 만 그것을 추측 할 수 없었습니다. 친절한 도움을 주셔서 감사합니다. – RKV

+0

한가지 더 설명해 드리겠습니다. tomcat-start 작업을 실행하면 성공적으로 시작되지만이 tomcat-start 대상 뒤에 다른 targer가 있으면 실행중인 다른 작업이 표시되지 않습니다. 이것에 대한 아이디어와 바람둥이 시작 후 다른 작업을 수행하는 방법은 무엇입니까? – RKV

+0

내가 필요로하는 내용을 설명해달라고한다. 나는 deploy를 호출 한 다음 tomcat-stop을 호출하고 나서 다른 targer에서 순차적으로 시작한다. 즉, stop과 start 모두에서 fork = true를 사용한다. – RKV

관련 문제