G'day,
I'm using AI 7.7 build 28804
I recently added a second build to my project and was looking for a way to refer to the build-name when constructing the output folder for the generated package. As mentioned in this forum post, the predefined AI_BUILD_NAME property can be used.
First, this property seems to be undocumented. At the time of writing this post (2010.09.02), the AI Custom Properties web-page makes no mention of the AI_BUILD_NAME property.
Second, this property is not fully exposed in the AI application. For example, on the "Media" tab you can specify the folder/path where your package will be created ("Folder" textbox). If you type "[" you can click the "Property" tooltip and then choose from a list of all available properties (both predefined and user defined). The AI_BUILD_NAME property is not listed anywhere in this "Select a property" dialog. What I did was select a different property (e.g. Manufacturer) and then manually change the property name to [|AI_BUILD_NAME]. Please see the following screen-shot:
After this, I can build the project and the AI_BUILD_NAME property is resolved to the name of my build. However, it would be nicer if AI_BUILD_NAME were listed in the "Select a property" dialog. Also, with other properties in the folder path, I can mouse-over and see the resolved value in a tool-tip. This does not work for the AI_BUILD_NAME property.
I noticed that the AI_BUILD_NAME property only exists if there are multiple builds, or if the "DefaultBuild" is renamed. For example, when my project only has the default build, I tried to use [|AI_BUILD_NAME] but got the blue jagged underline warning. I suppose that property is created dynamically by AI if you rename DefaultBuild or create multiple builds.
Thanks,
-Todd
FOLLOW US
Get the latest news in Application Packaging