我尝试使用Ant生成Javadoc,但不生成任何文件。显示如下文本的源代码错误。这些不应该显示,因为源代码没有任何问题。可以使用Eclipse和Ant编译它而不会出现问题。我怎样才能让Javadoc与Ant一起工作?
[javadoc] Loading source file C:\Users\eyvind\workspaceLuna\Group_1_Memory\Memory Group\src\memory\FileManager.java...
[javadoc] C:\Users\eyvind\workspaceLuna\Group_1_Memory\Memory Group\src\memory\FileManager.java:65: '{' expected
[javadoc] try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(path))){
[javadoc] ^
[javadoc] C:\Users\eyvind\workspaceLuna\Group_1_Memory\Memory Group\src\memory\FileManager.java:65: ')' expected
[javadoc] try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(path))){
[javadoc] ^
[javadoc] C:\Users\eyvind\workspaceLuna\Group_1_Memory\Memory Group\src\memory\FileManager.java:65: ';' expected
[javadoc] try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(path))){
[javadoc] ^