0
< 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] ----------

有人可以帮我吗

4

1 回答 1

0

这似乎是为此提交的错误报告也许这对你有帮助。您也可以尝试通过 ant 触发另一个构建,或者查看目录的嵌套。

于 2012-06-21T06:24:15.877 回答