是否可以使用 run-jetty-run 的 eclipse 插件来调试这个应用程序?

发布于 2025-01-05 06:10:05 字数 1342 浏览 2 评论 0原文

大约有 20 个 diff ant 文件组成了构建。我不确定如何配置 run-jetty-runs eclipse 插件来使用此信息。任何人都可以向我指出教程或一些文档:

<target name="run-jetty" depends="build" description="Runs application in included Jetty container">
    <property file="credentials.properties" />
    <property name="jetty.port" value="8080" />
    <java jar="${jetty.dir}/start.jar" fork="true" dir="${basedir}" maxmemory="512M">
        <arg value="${jetty.conf.dir}/jetty.xml" />
        <arg value="${jetty.conf.dir}/jetty-jndi.xml" />
        <sysproperty key="jetty.port" value="${jetty.port}" />
        <jvmarg value="-XX:MaxPermSize=128m" />
        <jvmarg value="-Dfile.encoding=UTF-8" />
        <jvmarg value="-Djetty.home=${jetty.dir}" />
        <jvmarg value="-Djetty.datasource.lanter.username=${jetty.datasource.lanter.username}" />
        <jvmarg value="-Djetty.datasource.lanter.password=${jetty.datasource.lanter.password}" />
        <jvmarg value="-Djetty.datasource.vs.username=${jetty.datasource.us.username}" />
        <jvmarg value="-Djetty.datasource.vs.password=${jetty.datasource.us.password}" />
        <jvmarg value="-DSTOP.PORT=${jetty.stop.port}" />
        <jvmarg value="-DSTOP.KEY=${jetty.stop.key}" />
    </java>
</target>

Theres about 20 diff ant files, that make up the build. Im not sure how to configure run-jetty-runs eclipse plugin to use this information. Can anyone point me towards a tutorial or some documentation:

<target name="run-jetty" depends="build" description="Runs application in included Jetty container">
    <property file="credentials.properties" />
    <property name="jetty.port" value="8080" />
    <java jar="${jetty.dir}/start.jar" fork="true" dir="${basedir}" maxmemory="512M">
        <arg value="${jetty.conf.dir}/jetty.xml" />
        <arg value="${jetty.conf.dir}/jetty-jndi.xml" />
        <sysproperty key="jetty.port" value="${jetty.port}" />
        <jvmarg value="-XX:MaxPermSize=128m" />
        <jvmarg value="-Dfile.encoding=UTF-8" />
        <jvmarg value="-Djetty.home=${jetty.dir}" />
        <jvmarg value="-Djetty.datasource.lanter.username=${jetty.datasource.lanter.username}" />
        <jvmarg value="-Djetty.datasource.lanter.password=${jetty.datasource.lanter.password}" />
        <jvmarg value="-Djetty.datasource.vs.username=${jetty.datasource.us.username}" />
        <jvmarg value="-Djetty.datasource.vs.password=${jetty.datasource.us.password}" />
        <jvmarg value="-DSTOP.PORT=${jetty.stop.port}" />
        <jvmarg value="-DSTOP.KEY=${jetty.stop.key}" />
    </java>
</target>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

演多会厌 2025-01-12 06:10:05

您有两个选择:

  1. 使用 run-jetty-run 插件启动应用程序;这将为您提供调试菜单中的一个条目,这意味着如果您选择它,Jetty(和应用程序)将在调试器中启动。

  2. 使用上面代码块中的信息创建您自己的运行配置。类路径应该已经是正确的;您只需要选择正确的主类(在 start.jar 中打开 META-INF/MANIFEST.MF 即可找到)。将所有属性替换为其值,并将每个属性放入运行配置的参数文本字段中的新行中。

在“Common”选项卡上,您可以设置文件名并将启动配置保存为项目中的文件,以便每个使用它的人都可以获取它。

You have two options:

  1. Start the app using the run-jetty-run plugin; this will give you an entry in the debug menu which means that Jetty (and the app) will be launched in the debugger if you select it.

  2. Use the information in the code block above to create your own run configuration. The classpath should already be correct; you just need to select the correct main class (open META-INF/MANIFEST.MF in start.jar to find that out). Replace all the properties with their values and put each into a new line into the argument text fields of the run configuration.

On the tab "Common", you can set a file name and save the launch config as a file in your project, so everyone working on it will get it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文