javadoc非法包名

时间:2015-06-02 05:13:44

标签: ant gs-collections

我正在尝试构建此项目https://github.com/goldmansachs/gs-collections。 使用:ant -buildfile build.xml

构建

但是我收到以下错误:

[javadoc] javadoc: error - Illegal package name: "/home/bionix/Desktop/gs-collections/collections-api/target/generated-sources/java/com/gs/collections/api/block/function/primitive/CharFunction.java.crc"
[javadoc] javadoc: error - Illegal package name: "/home/bionix/Desktop/gs-collections/collections-api/target/generated-sources/java/com/gs/collections/api/block/function/primitive/CharFunction0.java.crc

然后是结果:       [javadoc] 100个错误

javadoc-jar:

BUILD FAILED
/home/bionix/Desktop/gs-collections/build.xml:33: The following error occurred while executing this line:
/home/bionix/Desktop/gs-collections/common-build.xml:280: /home/elmaakoul/Desktop/gs-collections/collections-api/target/javadoc does not exist.

我不知道问题的根源在这里。有人能帮我吗。谢谢

这是common-build.xml

    <target name="javadoc" depends="-deploy-properties, -ivy-init">
    <ivy:cachepath pathid="runtime.classpath" conf="runtime" />

    <javadoc
        destdir="target/javadoc"
        author="true"
        version="true"
        use="true"
        useexternalfile="true"
        windowtitle="${javadoc.title} - ${build.version.full}">

        <sourcefiles>
            <resources refid="all-sources" />
        </sourcefiles>

        <classpath refid="runtime.classpath" />

        <doctitle>${javadoc.title} - ${build.version.full}</doctitle>
        <link href="http://java.sun.com/j2se/1.5.0/docs/api/" />
    </javadoc>
</target>

<target name="javadoc-jar"
    depends="-deploy-properties, javadoc"
    description="Builds the javadoc jar for the application">
    <jar
        jarfile="${javadoc.jar.name}"
        compress="true"
        index="false"
        basedir="target/javadoc" />
</target>

1 个答案:

答案 0 :(得分:2)

如果你看看他们的构建,你会看到他们使用maven。

他们跳过javadoc生成。

enter image description here

它构建正确。