gpt4 book ai didi

java - 如何将JHawk(插件)安装到Eclipse中

转载 作者:行者123 更新时间:2023-12-01 19:35:16 27 4
gpt4 key购买 nike

我需要将 JHawk 安装到我的电脑上,以便它可以与 eclipse 一起使用。但我似乎没有明确的安装方法。我没有安装 Eclipse 插件的经验,我想知道我缺少什么。 Folder of JHawk

最佳答案

这是在您所在的 Docs 目录中找到的 PDF 文件中的内容:

After you have unzipped the JHawk Distribution into a directory you will find a sub-folder named „plugins‟. Close down your Eclipse application if it is already running. Copy the jar in the plugins directory into the plugins directory of your eclipse folder. Copy the jhawk.properties file in the plugins directory to the root directory of your Eclipse installation (this is the directory where you find eclipse.exe). When you restart Eclipse JHawk will be ready for use.
The Eclipse plugin has been tested used in Eclipse 4.4 (Luna), 4.5 (Mars) and 4.6 (Neon) and will probably work in other versions. As part of the distribution you will notice the following properties files –

  • jhawkbase.properties
  • jhawkfull.properties
  • jhawkbasepluscustom.properties
  • reviewfactor.properties

    jhawkbase.properties is a version of the properties file with the base level set of metrics that are initially enabled for JHawk. This is the same as the jhawk.properties file that comes with the JHawk Eclipse plugin distribution. jhawkfull.properties is a version of the properties file with the full set of metrics available to JHawk enabled. jhawkbasepluscustom.properties is a version of the properties file with the base level set of metrics that are initially enabled for JHawk plus the sample metric found in the CustomMetrics.jar that comes with the distribution. For more details about this metric see the „JHawk5CreateMetric‟ document. You can use any of these sets of metrics by copying them to the jhawk.properties file and starting as normal or by using the –p flag and the property file name (JHawk Command Line only). Properties loaded from these files can be amended in the usual way – see „Preferences‟ section in the documentation.
    reviewfactor.properties – this file contains properties used by the class and package Review Factor metrics. You can find out more about how to use these properties in the „Using the Review Factor Metric‟ section of the JHawk6UsingMetrics document supplied with the distribution.

如果您实际打开 JHawkDemo_6.1.0.jar 存档,您会在里面找到 JHawkDemo.jar,它似乎是实际的插件存档。这些说明似乎建议您将其放入位于 Eclipse 工作区目录中的插件文件夹中。然后启动 Eclipse,您应该会看到它工作了。

然而,完成此操作后,我在 Eclipse (2019-9) 中看不到 JHawk 的迹象。将存档移至 dropins 文件夹也不会产生任何结果。 Help > About Eclipse IDE > Installed Software 应该会列出所有已安装的插件,并且没有 JHawk。如图所示,没有 JHawk 选项卡,并且“帮助”>“首选项”也没有显示 JHawk 的迹象。

JHawk 的最新版本已经过时三年了,而且该文档似乎与实际提供的内容不太相符。我无法安装这个插件,但我想为了后代我应该留下这些信息,这样我就不会觉得自己花了 30 分钟却一无所获。

关于java - 如何将JHawk(插件)安装到Eclipse中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59227921/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com