ANT4Eclipse package-info已经定义

时间:2011-06-22 06:34:23

标签: eclipse ant4eclipse

< project name="ant-in-eclipse" basedir="."  xmlns:ant4eclipse="antlib:org.ant4eclipse" xmlns:antcontrib="antlib:net.sf.antcontrib" default="compileAndJar">
  < import file="a4e-jdt-macros.xml"/>
  < ant4eclipse:jdtClassPathLibrary
       name="org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v70/was.base.v7">
      <fileset dir="../IBMLib">
        <include name="lib/**/*.jar"/>
        <include name="plugins/**/*.jar"/>
        <include name="feature_packs/jpa/plugins/**/*.jar"/>
        <exclude name="feature_packs/jpa/plugins/**/com.ibm.ws.runtime.jpa.jar"/>
      </fileset>
  </ant4eclipse:jdtClassPathLibrary>
  < ant4eclipse:jdtClassPathLibrary
       name="com.ibm.ast.ws.jaxrs.internal.project.facet.v7.jaxrslibrarycontainer">
      <fileset dir="../IBMLib">
        <include name="web2fep/**/*.jar"/>
        <include name="web2fep/optionalLibraries/jaxrs/*.jar"/>
      </fileset>
  </ant4eclipse:jdtClassPathLibrary>

  <target name="compileAndJar">
    <buildJdtProject workspacedirectory="." projectname="wfn-ws-client">
      <finish>
        <jar destfile="deploy/wfn-ws-client.jar">
          <ant4eclipse:jdtProjectFileSet workspacedirectory="."
              projectname="${buildJdtProject.project.name}"/>
        </jar>
      </finish>
    </buildJdtProject>
  </target>
</project>

我收到一个名为

的错误
[javac] 46. ERROR in /data/temp/ANT/PSFBUILD/wfn-ws-client/src/com/adp/wfn/reporting/myreport/package-info.java (at line 1)
[javac] //
[javac] ^
[javac] The type package-info is already defined
[javac] ----------

任何人都可以帮我这个

1 个答案:

答案 0 :(得分:0)

这似乎是 bug report that has been filed for this也许这对您有所帮助。您也可以尝试通过ant触发另一个构建,或者查看目录的嵌套。