我有一个名为Foo的项目,具有以下结构,但我应该从版本控制中排除哪些文件?我用FlashDevelop构建它。
├── bin <-- already in
│ └── Foo.swf <-- .gitignore
├── css.xml
├── lib
│ └── as3corelib.swc
├── locales
│ ├── de_DE
│ │ └── ...
│ └── en_US
│ └── ...
├── obj <-- what
│ ├── FooConfig.old <-- about
│ └── FooConfig.xml <-- these?
├── src
│ ├── com
│ │ └── ...
│ └── printf.as
├── Foo.as3proj
└── Foo.report <-- and this one?
我注意到obj/
和report
文件下的文件在每次构建时都会发生更改。所以我想我可以排除他们吗?
食品报告(10146行)
<report>
<scripts>
<script name="/home/max/Projects/flash-compiler/apache-flex-sdk/frameworks/libs/framework.swc(mx.graphics:GradientStroke)" mod="1422002215000" size="3188" optimizedsize="1400">
<def id="mx.graphics:GradientStroke" />
<pre id="mx.graphics:GradientBase" />
<pre id="mx.graphics:IStroke" />
<dep id="flash.display:GraphicsGradientFill" />
<dep id="flash.display:Graphics" />
<dep id="flash.display:CapsStyle" />
<dep id="AS3" />
<dep id="flash.display:GraphicsStroke" />
<dep id="flash.geom:Rectangle" />
<dep id="mx.core:mx_internal" />
<dep id="flash.geom:Point" />
<dep id="flash.display:JointStyle" />
</script>
<!-- more scripts are following here -->
</scripts>
<external-defs>
<ext id="flash.events:AsyncErrorEvent" />
<ext id="RegExp" />
<!-- more exts are following here -->
</external-defs>
</report>
obj/FooConfig.old以…开头。。。
<?xml version="1.0" encoding="utf-8"?>
<!--This Adobe Flex compiler configuration file was generated by a tool.-->
<!--Any modifications you make may be lost.-->
<flex-config>
<target-player>11.2</target-player>
<benchmark>false</benchmark>
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
<compiler>
<define append="true">
<name>CONFIG::debug</name>
obj/FooConfig.xml以…开头。。。
<?xml version="1.0" encoding="utf-8"?>
<!--This Adobe Flex compiler configuration file was generated by a tool.-->
<!--Any modifications you make may be lost.-->
<flex-config>
<target-player>11.2</target-player>
<benchmark>false</benchmark>
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
<compiler>
<define append="true">
<name>CONFIG::debug</name>
将您的.as
、.swc
、.xml
、.as3proj
和所有其他资源(图像、声音等)置于源代码管理之下。bin
或obj
文件夹下的任何内容都可以被忽略——这些都是编译器在构建过程中生成的。
我不知道.report
文件是什么——我在FlashDevelop中还没有。我认为这是一个用于详细构建的编译器报告文件,但我不确定。如果您还没有创建它,那么源代码管理就不太可能需要它。