2012-08-09 7 views
5

그래서 cruisecontrol에서 사용되는 ant 빌드 파일을 작성하여 이상한 문제가 발생했습니다. 나는 문제를 봤지만 어떤 구체적인 해결책도 발견하지 못했기 때문에 여기에 질문을 올릴 것이라고 생각했습니다.CruiseControl - PHP lint check는 ANT를 통해 작동하지만 CruiseControl은 사용하지 않습니다.

나는 다음과 같은 개미 작업이 있습니다

<target name="module.lint"> 
    <apply executable="/usr/bin/php" failonerror="true"> 
     <arg value="-l" /> 
     <fileset dir="/path/to/my/elite/code" includes="**/*.php" /> 
    </apply> 
</target> 

을 내가 실행할 때 사용하여 :

ant -buildfile /path/to/my/elite/buildfiles/project/elite/build.xml module.lint 

그것은 잘 실행,하지만 난 CruiseControl을 GUI를 통해 프로젝트를 빌드 할 때, 내가 할 다음 오류 :

[cc]Aug-09 15:51:04 ScriptRunner - fileset: Setup scanner in dir /path/to/my/elite/code with patternSet{ includes: [**/*.php] excludes: [] } 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] Executing '/usr/bin/php' with arguments: 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] '-l' 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] '/path/to/my/elite/code/Script.php' 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] The ' characters around the executable and arguments are 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] not part of the command. 
[cc]Aug-09 15:51:04 ScriptRunner - Execute:Java13CommandLauncher: Executing '/usr/bin/php' with arguments: 
[cc]Aug-09 15:51:04 ScriptRunner - '-l' 
[cc]Aug-09 15:51:04 ScriptRunner - '/path/to/my/elite/code/Script.php' 
[cc]Aug-09 15:51:04 ScriptRunner - 
[cc]Aug-09 15:51:04 ScriptRunner - The ' characters around the executable and arguments are 
[cc]Aug-09 15:51:04 ScriptRunner - not part of the command. 
[cc]Aug-09 15:51:04 ScriptRunner -  [apply] No syntax errors detected in /path/to/my/elite/code/Script.php 

"문자를 가져 오는 이유는 무엇입니까? ... 통신의 일부가 아닙니다. 및 "lint 검사가 실제로 실행 된 것처럼 보일지라도 오류가 발생합니다.

"문자 ... 명령의 일부가 아닙니다"오류를 수정하려면 어떻게해야합니까?

답변

1

이 메시지는 CruiseControl에서 빌드를 실행할 때 Ant가 상세 모드 또는 디버그 모드로 실행 중임을 나타냅니다. (-v 옵션을 사용하여 명령 줄에서 실행 해보십시오.

빌드에 대한 CC 구성을 확인하십시오. usedebug 또는 그 유사 항목이 설정되어 있는지 확인하십시오. 또는 디버그 수준에서 기록하는 일종의 사용자 지정 로깅을 사용할 수 있습니다.

+0

나는 그것을 조사하고보고 할 것이다. 그러나 자세한 내용을 토글해도 빌드 파일의 내용이 올바르게 작성되면 순항 제어가 오류를보고하는 이유는 무엇입니까? –

+0

답변을 수락 한 것으로 표시하려고합니다. 크루즈 컨트롤 코드가 "디버그"모드로 실행되는지 확인하기위한 시간이 없었습니다. 그렇더라도 빌드 파일의 형식이 올바르지 않은 경우 오류가 발생하는 이유는 아직 이해가되지 않습니다. –

+0

이것들은 오류가 아니며 Ant 로그가 자세한 정보 모드로/exec 명령을 적용하는 방식의 일부분 일뿐입니다. –