Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #330947 +++ Current the ApiFileGenerationTask will short-circuit if the bundle it is run on does not have the API tools nature. We should investigate some level of support for generating an .api_description file for bundles without the API tools nature. The benefit of this is that a build process could make use of the other API tasks without having to explicitly modify all of the bundles to be API tools enabled. +++ Users can set alloNonApiProject=true to run the task on Since users often access this task using PDE Build support, we should allow this setting to be accessed through PDE Build. We will probably need to modify ModelBuildScriptGenerator#generateAPIToolsTarget and #generateAPIToolsCall and set a default value for the property in ModelBuildScriptGenerator#generatePrologue. We might be able to get away without a default as not setting the property is equivalent to setting it to false.
Created attachment 190214 [details] Possible Fix
Andrew, can you look at this patch and see if I'm doing anything blatantly wrong? Peter, can you test this and see if it will work for you? The code change is very minimal because it is an optional boolean property. If the allowNonApiProject parameter is passed to PDE build, it will be set as the attribute on the generation task. The value must be 'true' for anything to change. If the parameter is not added to the parameters given to PDE build, the attribute should never be set on the task.
Andrew, please review my fix for M6 if at all possible. Sorry it's so late in the milestone!
(In reply to comment #2) > Andrew, can you look at this patch and see if I'm doing anything blatantly > wrong? > > Peter, can you test this and see if it will work for you? > > The code change is very minimal because it is an optional boolean property. If > the allowNonApiProject parameter is passed to PDE build, it will be set as the > attribute on the generation task. The value must be 'true' for anything to > change. If the parameter is not added to the parameters given to PDE build, > the attribute should never be set on the task. Thanks Curtis, this sounds like exactly what we need. I'll test it out once it is available in a build.
The attached patch has been released.
I tested the fix in IES build I20110314-1108 and it worked fine. Thank you.