如何在构建时排除文件被复制到 bin-debug
使用 Adobe Flex Builder Pro 独立版,如何在构建过程中过滤或排除项目源文件夹中的某些文件被复制到 bin-debug 文件夹中? Flex Builder 基于 Eclipse 平台 IDE,这既是关于 Eclipse 的问题,也是关于 Flex Builder 的问题。
Using Adobe Flex Builder Pro stand-alone, how do I filter or exclude some files in my project source folder from being copied into the bin-debug folder during a build? Flex Builder is based on the Eclipse platform IDE, this could be as much of a question about Eclipse as it is Flex Builder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Eclipse 允许您在 Java 构建路径上指定包含和排除模式。 下面描述了如何从 Java 路径中排除文件,Flex 构建路径属性页面上可能有等效的内容。
更新:这就是 Java 中的实现方式,我想 Flex Build Path 会以类似的方式实现它(如果有的话)。 由于有人善意地投票否决了我所说的可以通过这种方式完成的事情,看来 Flex 中不支持这种方式。
Eclipse allows you to specify include and exclude patterns on the Java build path. The following describes how to exclude files from the Java path, there may be an equivalent on the Flex Build Path properties page.
Update: This is how it is done in Java, I imagine that the Flex Build Path would implement it in a similar way if at all. As someone has kindly voted me down for saying that it might be done this way it appears that this is not supported in Flex.
如果您想排除特定资源但仍包含非嵌入文件,您可以添加资源过滤器。
此过程还可用于创建“仅包含”资源过滤器,本质上是白名单而不是黑名单。
If you want to exclude specific resources but still include non-embedded files you can add a Resource Filter.
This process can also be used to create an "Include Only" resource filter, essentially white-listing instead of black-listing.
您可以阻止 Flex 复制所有额外文件,如下所示:
确定”如果您想包含一些但不包含其他文件,那么您可以使用自定义 Ant 构建脚本来进行构建并复制您想要复制的有限文件。
You can prevent Flex from copying all extra files like this:
If you want to include some but not others, then you can use a custom Ant build script to do the build and copy the limited files you want to copy.