混帐+ Flash Builder的工作流程:我怎么设定,让混帐工程进展顺利? [英] git + Flash Builder workflow: how do I set it up so git works smoothly?

查看:406
本文介绍了混帐+ Flash Builder的工作流程:我怎么设定,让混帐工程进展顺利?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的git跟踪一个项目,我正在开发在Flash Builder,我想知道去联系有关跟踪它,特别是关于Flash Builder中生成的文件的最好方法,编译器生成的文件和源文件不一定是柔性的文件。

I'm using git to track a project I'm developing in Flash Builder, and I'm wondering the best way to go about having it track it, especially regarding Flash Builder generated files, Compiler generated files, and source files that aren't necessarily flex files.

我有它设置为忽略所有的Flash Builder中的.project和放大器;通过的.gitignore调试目录:

I had it set up to ignore all of the flash builder .project & debugging directories via .gitignore:

.actionScriptProperties
.flexProperties
.metadata
.project
.settings
bin-debug

,也可以通过.gitattributes处理任何SWF / SWC文件,二进制文件

and also treating any swf/swc files as binaries via .gitattributes

*.swf -crlf -diff -merge
*.swc -crlf -diff -merge

一个问题与此安装程序检查了这个项目,并使用     它在Flash Builder从头开始:

One issue with this setup is checking out this project and using it in Flash Builder from scratch:

Flash Builder不喜欢的时候它 你有没有一个项目文件夹 。项目文件。仅方式 导入源到Flash Builder是:

Flash Builder doesn't like it when you have a project folder without the .project files. Only way to import the source into Flash Builder is to:

  1. 创建一个新的Flex应用程序

  1. Create a new Flex Application

扼杀模板文件它 创建(specifially APP_NAME.mxml) 有一个Git克隆。

Smother the template files it created (specifially APP_NAME.mxml) with a git clone.

我在哪里可以把库?从Git的角度来看,我想有他们在,所以当有人克隆回购,一切都只是工作回购的lib文件夹,而是从当地文件系统的角度来看,我想保存我的所有图书馆在一个位置,并使用Flash Builder中引用它们,我可能会更新库或下载更高版本。也许我应该把图书馆在自己的回购协议,并加载它们作为一个git的模块?这样我就不需要手动记得更新正在使用他们所有的X项目,我的Y库文件,编辑:他们会简单地更新,当我更新每个项目的子模块。

Where do I put libraries? From a git perspective, I'd like to have them in the lib folder of the repo so when someone clones the repo, everything just works, but from a local file system perspective I'd like to store all my libraries in a single location and use Flash Builder to reference them, as I may update the library or download a later version. Maybe I should put the libraries in their own repo and load them as a git module? This way I don't need to manually remember to update my Y library files in all X projects that are using them, edit: they will simply update when I update each projects' submodules.

又是怎么回事外部的SWF /柔性模块?我一直是坚持在bin-debug文件夹外部​​SWF文件,现在这样的SWFLoader类可以找他们,而是因为我.gitignoring在bin-debug文件夹,他们不来时,它的克隆回购。

And what about external swfs/flex modules? I've was sticking external swf files in the bin-debug folder for now so the SWFLoader class can find them, but because I'm .gitignoring the bin-debug folder, they don't come with the repo when it's cloned.

的最后一个问题是必须保持在文件服务器。难道我让他们在一个单独的回购?我使用PHP的虚拟组织与AMFPHP所以这是很好的能够编辑的PHP文件一起在Flash Builder我的ActionScript文件...但他们不属于该项目的src文件夹。

One final issue is where to keep the files for the server. Do I have them in a separate repo? I'm using php VOs' with AMFPHP so it's good to be able to edit the php files alongside my actionscript files in Flash Builder... but they don't belong in the project src folder.

我使用的是目前的解决方案是:

The current solution I'm using is:

  1. 创建项目根服务器文件夹

  1. Creating a 'server' folder in the project root

指向一个Apache虚拟主机吧

Pointing an apache virtualhost at it

设置运行/调试设置 HTTP://APP%5FNAME.localhost

然后使用服务器文件夹作为替换为箱调试时,文件被导出

Then using the server folder as a replacement for bin-debug when the files get exported

这样做的问题是,我得到了编译器生成的文件的大混乱,与非的源文件在我的服务器文件夹。它只是似乎并不像一个完美的解决方案。

The problem with this is I've got a big mess of compiler generated files, and non-AS source files in my server folder. It just doesn't seem like an elegant solution.

你怎么设置的git使用Flash Builder顺利工作?难道这一切都与多个混帐回购/ Flash Builder中的项目,或者Ant脚本,或者什么来解决?

How do you set up git to work with flash builder smoothly? Could all this be resolved with multiple git repos/Flash Builder projects, or an ANT script or something?

感谢。

推荐答案

我已经找到了一个很好的解决方案这避免了所有具有未跟踪文件,并保持了大规模的.IGNORE清单的恐怖:

I've found a good solution which avoids all of the horror of having untracked files and keeping a massive .ignore list:

清理你的项目,你git的承诺之前。

就这么简单。

无论是通过Flash Builder中或蚂蚁,你应该反正清洁的能力,所以,如果你只是清洁你提交之前,生成的文件的问题就解决了​​。咄。

Whether it be by Flash Builder or by ant, you should have the ability to clean anyway, so if you simply clean before you commit, the problem of generated files is solved. Duh.

事实上,你也许可以将其设置为一个git的钩或什么的。

In fact you could probably set it up as a git hook or something.

这篇关于混帐+ Flash Builder的工作流程:我怎么设定,让混帐工程进展顺利?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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