2011-09-01 2 views
4

나는 다음과 같은 Phing 구성 파일이 있습니다"phing.types.Path는 중첩 텍스트 데이터를 지원하지 않습니다."- 의미는 무엇입니까?

<?xml version="1.0" encoding="UTF-8"?> 
<project name="ru.fractalizer.phpsweetpdo" default="make-phar-packages" basedir=".."> 

    <target name="run-tests-library" description="Running all the tests"> 
     <phpunit> 
      <formatter type="plain" usefile="false"/> 
      <batchtest> 
       <classpath>.</classpath> 
       <fileset dir="tests/Library"> 
        <include name="**/*Test*.php"/> 
       </fileset> 
      </batchtest> 
     </phpunit> 
    </target> 

그러나 Phing이 대상에 구축 실행하는 나에게 오류 제공합니다

Execution of target "run-tests-library" failed for the following reason: Z:\Work\PHP\phpSweetPDO\phing\build.xml:5:17: phing.types.Path doesn't support nested text data.

BUILD FAILED Z:\Work\PHP\phpSweetPDO\phing\build.xml:5:17: phing.types.Path doesn't support nested text data. Total time: 9.0173 seconds

나는이 메시지를 이해하지 못하고 있습니다. 정확히 지원되지 않는 것은 무엇입니까?

5:17은 "<phpunit>" 태그가 쓰여진 행입니다.

<classpath>.</classpath> 

중첩 된 텍스트가 하나의 .입니다 :

+0

아마도이 줄과 관련이 있습니까? : http://www.phing.info/trac/browser/trunk/classes/phing/IntrospectionHelper.php?rev=311#L365 – hakre

+0

@hakre 네, 그렇습니다. 그러나 나는 오류 메시지가 더 명확하고 이해하기 쉬운 것을 선호한다. –

답변

4

문제는 클래스 경로 정의입니다. 경로를 다양한 방법으로 정의 할 수 있습니다.

  • 중첩 된 pathelement 요소입니다.
  • 중첩 된 fileset, dirset 및 기타 리소스 수집 요소
  • path 속성을 사용하는 인라인. 당신의 간단한 예를 들어

는, 아마도

<classpath path="." /> 

갈 방법이 될 것입니다.

Ant 문서의 Path-like Structures 섹션을 참조하십시오.

+0

감사합니다. 솔루션이 효과적이었습니다. 하지만 Phing 오류 메시지가 명확하고 정확하지는 않습니다. –

관련 문제