从Eclipse Juno上传文件? [英] Upload files from Eclipse Juno?

查看:147
本文介绍了从Eclipse Juno上传文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Juno在Ubuntu 12.10中构建一个新的工作区。我已经配置我的项目,导入我的文件,建立了一个本地的Git repo,并将其同步到GitHub上的一个远程。但是,所有我能够将文件(php,html,css和其他网站文件)上传到服务器的努力都失败了。



我有两个远程系统资源管理器RSE)和Aptana Studio 3.虽然我已经成功地建立了与本地主机进行测试的连接和我的现场网络服务器,但我的任何尝试上传都没有成功。



理想情况下,当我在Eclipse中保存任何文件时,它将自动复制到我的本地主机测试服务器的/ var / www。我已经研究了几个同步选项没有成功。



此外,我想要能够使用Ctrl + Shift + U或类似的将当前文件上传到我的公共服务器。



我在过去两天阅读和研究中花费了大量时间,但发现了最少的文档,博客条目是废弃版本。



我没有部署菜单项,Aptana发布菜单项被禁用,如果我从右键菜单中使用Eclipse的导出命令,并选择我的本地连接,我会收到错误无法使用连接。尽管可以浏览RSE窗格中的内容,当我尝试导出到公共服务器时,错误是此操作将删除为MyProjectName设置的以前的团队提供者设置。您确定要这样做吗?


根据我的理解,你想要保存一个文件并通过FTP上传文件,是吗?



你应该看看蚂蚁。您可以将Eclipse配置为在保存或构建项目时运行Ant脚本。



如何使用Ant复制文件



Ants FTP任务



如何使ant在构建项目时运行


I am building a new workspace in Ubuntu 12.10 with Eclipse Juno. I have configured my project, imported my files, established a local Git repo and synced it to a remote on GitHub. However, all my efforts to be able to upload files (php, html, css, and other website files) to servers have failed.

I have both Remote System Explorer (RSE) and Aptana Studio 3. Though I have successfully established connections both to localhost for testing and to my live webserver, none of my attempts to upload have succeeded.

Ideally, when I save any file in Eclipse, it would automatically be copied to my /var/www for my localhost test server. I have researched several sync options without success.

Additionally, I want to be able to use Ctrl+Shift+U or similar to upload the current file to my public server.

I have spent much of the last two days reading and researching, but have found minimal documentation, and blog entries are for obsolete versions.

I have no Deploy menu item, the Aptana Publish menu item is disabled, and if I use Eclipse's Export command from the right-click menu, and choose my localhost connection, I get error "Unable to use connection." This, despite being able to browse the contents in RSE's pane. When I try to export to the public server, the error is "This operation will remove previous team provider settings that were set for MyProjectName. Are you sure you want to do this?"

I am making the change to Eclipse for a more efficient workflow but so far it has cost me many days of frustration and I still can't upload a simple .html file?!

解决方案

Ok, as I understand it, you want to copy a file at save and upload it via FTP, yes?

You should look into Ant. You can configure Eclipse to run an Ant script when you save or build a project.

How to copy files with Ant

Ants FTP task

How to get ant to run when building a project

这篇关于从Eclipse Juno上传文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆