FlashBuilder 输出到 SFTP

发布于 2024-10-06 01:00:33 字数 151 浏览 1 评论 0原文

我需要在远程服务器上调试 Flex 项目。该项目有Linux 后端。

我可以通过 WinSCP 访问后端。

是否可以设置 Adob​​e FlashBuilder 来构建到服务器(我应该在 Flex Build Path/Output 文件夹中写入什么)?

I need to debug a Flex project on a remote server. The project has Linux backend.

I have access to the backend via WinSCP.

Is it possible to set up Adobe FlashBuilder to build to the server (what should I write in the Flex Build Path/Output folder)?

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

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

发布评论

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

评论(1

情何以堪。 2024-10-13 01:00:33

完成相同任务的一种方法是将 WinSCP 作为构建器添加到项目的构建步骤中。缺点是这意味着您的项目只能在 Windows 上构建。

如何操作:

  1. 转到项目属性下的“构建器”部分,然后单击“新建”
  2. 选择一个“程序”构建器,然后单击“确定”
  3. 为构建器指定一个描述性名称(例如上传到 your_server_name)
  4. 在“名称”框中 Location: 部分,输入 WinSCP.exe 的路径
  5. 在参数框中,输入要连接的主机的命令行选项以及希望 WinSCP 执行的操作(请参阅 WinSCP 命令行选项 )。例如,我使用:

    <块引用>

    <用户>@<上传到的主机>: /synchronize ${workspace_loc:/bin-debug>} <远程路径>;
    
  6. 好的所有对话框。

现在,每当您构建时,WinSCP 都会在构建后运行以将文件上传到服务器。您可以使用 WinSCP 对话框中的复选框来删除不需要的提示。

直到最近,我一直在使用 Eclipse Target Management 插件 的 SFTP 的 RSE 部分/SCP 从 Flex Builder 内上传。这对我来说是一个更好的解决方案,因为它是多平台的;但是我找不到摆脱最后一个手动步骤的方法,右键单击 RSE 导出预设文件并告诉它导出。此外,由于 RSE 的 SFTP 上传支持很不稳定,超时时间长得离谱,错误消息质量很差,因此它不太适合在我的服务器详细信息经常变化的测试运行环境中使用。

One way to accomplish the same thing is to add WinSCP as a builder in your project's build steps. The downside is that this it means your project will only build on Windows.

How to do it:

  1. Go to the "Builders" section under the project properties, and click on "New"
  2. Choose a "Program" builder and click OK
  3. Give the builder a descriptive name in the Name box (e.g. upload to your_server_name)
  4. In the Location: part, put in the path to your WinSCP.exe
  5. In the arguments box, put in command line options for the host you want to connect to and what you want WinSCP to do ( see WinSCP command line options ). For instance, I use:

    <user>@<host to upload to>:<ssh port> /synchronize ${workspace_loc:</<my project>/bin-debug>} <remote path>
    
  6. Okay all the dialogs.

Now, whenever you build, WinSCP will run after the build to upload your files to the server. You can use the checkboxes in the WinSCP dialogs to remove the prompts that you don't want.

Up until recently, I've been using the RSE part of the Eclipse Target Management plug-in for SFTP/SCP uploads from within Flex Builder. That would be a better solution for me because it's multi-platform; however I can't find a way to get rid of the last manual step, right-clicking on an RSE export preset file and telling it to export. Also, since RSE's SFTP upload support is flaky, with ridiculously long timeouts and poor quality error messages, it's not really suitable for use in my test running environment where the server details change often.

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