2012-10-08 3 views
2

Enunicate를 통합하여 기존 API의 REST 문서를 생성하려고합니다.개미를 사용하여 REST API 문서 생성을 알리기

"경고 : 알 수없는 이슈 'docs'가 표시됩니다. 이슈가 내보내기되지 않습니다." 개미 작업이 실행될 때.

설정에 누락 된 것이 있습니까?

enunicate.xml은 다음과 같습니다

<?xml version="1.0"?> 
<enunciate label="Empath REST api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.23.xsd"> 
<modules> 
    <!-- Docs --> 
    <docs splashPackage="com.parc.perceptum.common" title="Empath REST API" 
     copyright="PARC">  <download name="License" file="LICENSE.txt" description="The license file governing the use of this API." /> 
    </docs> 
</modules> 
</enunciate> 

그리고 관련 개미 조각되어

<path id="enunciate.classpath"> 
    <fileset refid="project.libs"/> 
    <fileset dir="${java.home}"> 
      <include name="lib/tools.jar"/> 
    </fileset> 
    <pathelement path="${servlet-lib}" /> 
    <pathelement path="${mysql-lib}" /> 
</path> 

<taskdef name="enunciate" classname="org.codehaus.enunciate.main.EnunciateTask"> 
    <classpath refid="enunciate.classpath"/> 
</taskdef> 

<target name="new-rest-api-doc"> 
    <enunciate basedir="src/com/parc/perceptum/"> 
     <include name="**/*.java"/> 
     <classpath refid="enunciate.classpath"/> 
     <export artifactId="docs" destination="restapi"/> 
    </enunciate> 
</target> 

감사

Venu는 담아서 라이브러리가 없을 수 있습니다처럼

답변

0

가 보이는 네 classpath에. 따라서 Enunciate는 모듈 ('문서'유물을 제공하는 문서 모듈 포함) 중 하나를 선택하지 않습니다.

+0

감사합니다. Ryan. 빌드를 완료 한 항아리를 복사했습니다. 아마도 Doc 모듈 jar 파일을 놓친 것 같습니다. – venu

0

artifactId 값은 'war.file'이어야합니다.