捆绑包 org.junit 包含哪些功能
我正在重构我的 RCP 应用程序,并且将使用 tycho 作为构建系统。
在此过程中,我必须重写我的目标平台以依赖在线存储库。目前,我的目标类似于:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>
<target name="MyRcpApp" sequenceNumber="12">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0" />
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
</target>
但是,此目标不提供用于 junit 测试的包 (org.junit)...因此我的 eclipse 有很多错误(由于缺少 junit)并且我的构建失败。
有人知道我应该包括哪个单位吗? (或者,更好的是,我如何获取给定存储库中所有可用单元的列表?)
I'm refactoring my RCP app, and I'm going to use tycho as building system.
In the process, I had to rewrite my target platform so to depend on online repositories. Currently, my target is something like:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>
<target name="MyRcpApp" sequenceNumber="12">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0" />
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
</target>
However, this target does not provide the bundle for junit tests (org.junit)... hence my eclipse has a lot of errors (due to the missing junit) and my build fails.
Does somebody know which unit should I include? (or, better, how can I get the list of all the unit available at a given repository?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要 JDT 功能(不幸的是,据我所知,没有更小的功能包括 junit)。
另一个选择是包含单个捆绑 IU(.target 文件格式支持此功能,但目标编辑器 UI 不支持)。在这种情况下,您需要确保还添加传递依赖项。尝试添加
you will need the JDT feature (unfortunately there is no smaller feature I know of which includes junit)
Another option is to include single bundle IUs (the .target file format supports this but the target editor UI does not). In this case you need to make sure that transitive dependencies are also added. Try adding