在eclipse中android private libraries中关联javadoc
来源:互联网 发布:软件项目管理案例分析 编辑:程序博客网 时间:2024/05/21 17:10
http://stackoverflow.com/questions/9873152/how-to-attach-javadoc-or-sources-to-jars-in-libs-folder/11579339?noredirect=1#comment29221147_11579339
Step by step guide
In order to link the sources and javadoc to a .jar library that is automatically linked by Eclipse you have to do the following:
- Place the library .jar file in the libs folder, and the associated source .jar and doc .jar files in separate subfolders such as libs/src and libs/docs. You can use a name other than src and docsif you want, but it's important that the .jar files aren't directly in the libs folder.
- Create a
.properties
file in the libs folder with the exact name of the actual library .jar (see example). Make sure you keep the .jar part. - Specify the relative paths to the sources and javadoc .jar in the
.properties
file. - Close and re-open the Eclipse project! Optionally, refresh the project by pressing F5.
- Select an object of the linked library in the source code.
- Open the Javadoc view in Eclipse to check the documentation (see screenshot).
- Open the source code declaration (default shortcut: F3) of the selected object.
Example
The example uses the Gson library.
Directory structure of the libs folder:
libs├── docs│ └── gson-2.2.2-javadoc.jar├── gson-2.2.2.jar├── gson-2.2.2.jar.properties└── src └── gson-2.2.2-sources.jar
Contents of gson-2.2.2.jar.properties
src=src/gson-2.2.2-sources.jardoc=docs/gson-2.2.2-javadoc.jar
0 0
- 在eclipse中android private libraries中关联javadoc
- 在Eclipse中关联Android Private Libraries中文件的源代码
- 在Eclipse中关联Android Private Libraries中文件的源代码
- 在Eclipse中关联Android Private Libraries中文件的源代码
- 转:在Eclipse中关联Android Private Libraries中文件的源代码
- 在Eclipse中关联Android Private Libraries中文件的源代码
- 如何在Eclipse中Android Private Library中关联源码
- Eclipse中如何关联Javadoc
- Eclipse中如何关联Javadoc
- eclipse中删除Android Private libraries后没有自动生成
- 在MyEclipse中关联javadoc
- Eclipse中如何关联Javadoc,source
- Eclipse中关联和生成javadoc文档
- 在Eclipse中导入JavaDoc
- 在eclipse中生成javadoc
- eclipse中android工程的Android Private Libraries误删了怎么办?
- Eclipse中Android项目的Android Private Libraries不自动引入libs下的jar包
- 开发环境配置-在eclipse中关联jar的源码和javadoc-9
- Linux的SOCKET编程详解
- iOS RunLoop 初识
- 《C语言及程序设计》程序阅读——条件编译
- drools的JavaDialect异常
- 正则表达式 获取开头结尾的数字
- 在eclipse中android private libraries中关联javadoc
- 使用Loadrunner VuGen编辑器手动编写脚本
- 第一周
- JVM的内存区域划分
- CXF启动报错org.slf4j.spi.LocationAwareLogger.log
- 统计sql
- 尊重市场,不要打脸
- 一步一步教你做ios推送
- 数据标准化的原因及方法