TongchengOpenSource/smart-doc

When the content of package-info.java is empty, it is not possible to generate interface documentation.

muker-cmd opened this issue · 1 comments

Your Environment(您的使用环境)

  • smart-doc version:2.7.0
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin):smart-doc-maven-plugin
  • build tool version(maven or gradle):maven
  • jdk version:1.8

Expected Behavior(您期望的结果)

Normally generate interface documentation.
正常生成接口文档

Current Behavior(当前结果)

When there is a package-info.java in the directory and its content is empty, it is not possible to generate an interface.

当目录下有package-info.java,且内容为空时,无法生成接口

Possible Solution(bug解决建议)

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)

1.目录结构
image

2.package-info.java内容全部注释掉
image
结果
image

3.package-info.java内容存在(或者删除package-info.java文件)
image
结果
image

Context(Bug影响描述)

当需要用到package-info.java生成东西时,与smart-doc冲突,导致两者有一个无法使用

@muker-cmd The package-info.java file must contain a valid package name.
java的package-info.java必须要有一个有效的package设置