简体   繁体   English

在PDE Build中导出内置插件的源

[英]Exporting source of built plugins in PDE Build

I have a project that is made up of several features and plugins, and I want to export the source of the projects that have been built using PDE Build. 我有一个由几个功能和插件组成的项目,我想导出使用PDE Build构建的项目的源。

One of the reasons for this is that we have a large common plugin Subversion repository, for plugins common to all projects, that is checked out before the build (the entire common trunk. The problem is that some of the common plugins may not actually be included in the build, so if I would just take all the plugins that have been checked out from the repository I might get plugins that weren't in the actual build. 原因之一是我们有一个大型的通用插件Subversion存储库,用于所有项目通用的插件,在构建之前就已签出(整个通用主干。问题是某些通用插件实际上可能不是包括在构建中,因此,如果我只从存储库中取出所有已检出的插件,则可能会得到不在实际构建中的插件。

Is there a way to tell PDE Build to export the source when a plugin is built? 有没有办法告诉PDE Build在构建插件时导出源?

for each plugin you can edit the build.properties file... it should be contained within your project folder: (you can also simply double-click on the plugin.xml file): 对于每个插件,您都可以编辑build.properties文件...它应该包含在项目文件夹中:(您也可以简单地双击plugin.xml文件):

在此处输入图片说明

then you have to make checkboxes on the source code and include all within your build... 那么您必须在源代码上打勾,并将所有内容都包含在您的构建中...

在此处输入图片说明

Remember: the build.properties files will be used by the pde-build! 请记住:pde-build将使用build.properties文件!

you might also want to add these lines to your build.properties file (the build file for the build, not for the plugins) 您可能还想将这些行添加到build.properties文件(用于构建而不是用于插件的构建文件)中

############## SOURCE BUNDLE CONTROL ################
# Set this property to have source bundles created and output into build repository.
# This does NOT put them in the build output (e.g., product) itself.
# Valid values are: not set, built, all.
#       built = only source for bundles that are actually built/compiled in this run are output
#       all = all available source is collected and output
sourceBundleMode=all
individualSourceBundles=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM