如何使用 google eclipse 插件设置输出目录?

发布于 2024-09-26 01:55:08 字数 506 浏览 0 评论 0原文

我正在使用 Google Eclipse 插件进行 GWT 开发。 要进行配置,有一个包含两个文件的文件夹 .settings com.google.gdt.eclipse.core.prefs 和 com.google.gwt.eclipse.core.prefs。 这些文件是一种属性文件。

现在我尝试为源文件和输出文件设置两个不同的目录。 但我找不到有关这些文件的任何文档。

我到现在得到的就是这个。

eclipse.preferences.version=1
jarsExcludedFromWebInfLib=
lastWarOutDir=myoutputdirectory
warSrcDir=war
warSrcDirIsOutput=false

但是使用这个,在编译时它每次都会在 myoutputdirectory 上打开一个文件选择器对话框,等待确认。

所以我问,是否有解决方案来设置不同的输出目录,或者有人知道我在哪里可以找到有关这些设置文件的使用的更多信息。

I'm using the Google Eclipse Plugin for GWT development.
To do the configuration stuff there's a folder .settings with two files
com.google.gdt.eclipse.core.prefs and com.google.gwt.eclipse.core.prefs.
These files are a kind of propertie-files.

Now I'm trying to set two different directories for source and output files.
But I can't find any documentation about these files.

What I got till now is this.

eclipse.preferences.version=1
jarsExcludedFromWebInfLib=
lastWarOutDir=myoutputdirectory
warSrcDir=war
warSrcDirIsOutput=false

But using this, at compilationtime it opens a filechooser-Dialog on myoutputdirectory every time, waiting for confirmation.

So I ask, is there a solution to setup a different outputdirectory or does anybody know where I can find more Information about the usage of these setting-files.

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

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

发布评论

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

评论(2

怪异←思 2024-10-03 01:55:08

我的该文件版本具有指向 lastWarOutDir 的绝对路径。

也许它一直提示您,因为它找不到 myoutputdirectory (或者您只是出于隐私原因在这里更改了它)。

无论如何,如果您右键单击 project >运行方式>运行配置,转到(x)= Arguments 选项卡,您将看到包含lastWarOutDir 值的-war 参数。

如果您希望收到提示以便更改目录,您可以删除所有参数,强制 Google 插件重新配置。

我希望这有帮助。如果没有,请告诉我们您真正想在这里做什么。

My version of that file has an absolute path to the lastWarOutDir.

Maybe it keeps prompting you because it can't find myoutputdirectory (or maybe you just changed it for privacy's sake here).

In any case, if you right-click on the project > Run As > Run Configurations, go to the (x)= Arguments tab and you will see the -war argument containing the value of lastWarOutDir.

If you want to be prompted so that you can change the directory, you could delete all of the arguments, forcing the Google plugin to reconfigure.

I hope that helps. If not, please let us know what you really want to do here.

残月升风 2024-10-03 01:55:08

也许我误解了你的问题。但是为什么不直接使用 -war-workDir-gen-gen 告诉 GWT 编译器在哪里输出文件>-extra) 命令行选项?同样的事情也适用于 GWT 开发模式...

http://code. google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions

http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode

Maybe I misunderstand your problem. But why don't you just tell the GWT compiler where to output the files using the -war (-workDir, -gen and -extra) command line option? Same thing works for the GWT development mode...

http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions

http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode

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