javadoc 非法包名
javadoc Illegal package name
我正在尝试构建这个项目 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>
如果您查看他们的构建,您会发现他们使用 maven。
他们跳过 javadoc 生成。
并且构建正确。
我正在尝试构建这个项目 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>
如果您查看他们的构建,您会发现他们使用 maven。
他们跳过 javadoc 生成。
并且构建正确。