Aptana新手,关于部署的两个问题

发布于 2024-12-24 16:09:59 字数 444 浏览 1 评论 0原文

我已经从 DW 迁移到 Aptana(主要是为了获得更好的 Phonegap/Android 集成)。我正在使用集成到 Eclipse 中的 Aptana(即安装了 Eclipse,然后添加了 Aptana)。 我有两个问题。

  1. 当我想要测试时,如何配置 Aptana/Eclipse 将文件复制到本地开发服务器?我可以在 IDE 外部的文件系统中清楚地执行此操作,但希望它在按钮或菜单上。

  2. 如何配置流程以使用(例如,用于 js 和 css 的 Google 闭包工具)作为构建/部署流程的一部分?我想自动缩小 js 和/或能够使用提供的 css 扩展(变量)。

我感觉这一切都应该是可能的,因为 Eclipse 的可配置性很强,但我不知道从哪里开始。 Ant 会为我做这件事吗?如何?

希望得到一些指点。

谢谢阿博

I've moved to Aptana from DW (mainly to get better Phonegap/Android integration). I'm using Aptana integrated into Eclipse (i.e. installed Eclipse and then added Aptana).
I have two questions.

  1. How can I configure Aptana/Eclipse to copy files to my local development server when I want to test? I can clearly do this in the filesystem outside the IDE, but would like it inside on a button or menu.

  2. How can I configure the process to use, for example, the Google closure tools for js and css as part of my build/deployment process? I'd like to automatically minify the js and/or be able to use the css extensions offered (variables).

I get the feeling that all this should be possible since Eclipse is so configurable, but I don't know where to start. Would Ant do this for me? How?

Would appreciate some pointers.

Thanks

Abo

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

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

发布评论

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

评论(2

情话已封尘 2024-12-31 16:09:59

我可以回答你的第一个问题。

如果您安装了 Aptana 插件,右键单击菜单上将有一个名为“部署”的选项。展开部署设置将显示“运行 Web 部署向导...”选项。从这里开始,如果您使用如上所述的 Web 服务器,您可能需要选择 FTP/SFTP/FTPS 选项。在表单中填写您的服务器信息,并确保运行测试以确保一切正常工作。

我总是选中“自动将我的更改与远程站点同步”框,然后选择“自动双向同步”单选按钮。这将在保存时自动将我当前的文件部署到我的网络服务器。

您可能还只想选择“自动从我的计算机同步到远程站点”,我选择这两种方式的原因是因为我有时在不同的计算机上工作,它可以帮助我保持同步。稍微调整一下,它应该可以节省您大量的时间和精力!

[使用 Indigo Release 1 和 Aptana Studio 3]

I can answer your first question.

If you have the Aptana plug-in installed, you will have an option on your right-click menu titled "Deploy". Expanding the deploy setting will reveal the option to "Run Web Deployment Wizard...". From here, if you are using a web server as mentioned, you will probably want to choose the FTP/SFTP/FTPS option. Fill in the form with your servers information and be sure to run a test to make sure things are working properly.

I always check the "Automatically sync my changes with the remote site" box and then select the "Automatically sync in both directions" radio button. This will automatically deploy my current file to my web-server upon a save.

You may also want to only select the "Automatically sync from my machine to remote site", the reason I choose both ways is because I sometimes work from different machines and it helps me keep things in sync. A little tweaking and it should save you a lot of time and effort!

[Using Indigo Release 1, and Aptana Studio 3]

冧九 2024-12-31 16:09:59

Aptana 不支持“Google Closure”,您可以使用“Eclipse”或“WebStorm”。

我希望下面的链接会有所帮助 -

http://www.daveoncode.com/2009/11/23/automatically-compile-javascript-applications-using-google-closure-and-ant/

和此堆栈交换 线 -
Google 闭包编译器使用 WebStorm

Aptana don't include support for "Google Closure", you can instead use "Eclipse" or "WebStorm".

I hope below links will help -

http://www.daveoncode.com/2009/11/23/automatically-compile-javascript-applications-using-google-closure-and-ant/

and this stack exchange thread -
Google closure compiler usage WebStorm

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