K2BTools includes a MSBuild task that can be used to perform the same operation as the K2BTools -> Generate Intent Based Navigation objects and K2BTools -> Install intent based navigation module menu actions. These options are used during the installation process and after changing the module configuration (such as which work withs and entity managers are exposed as intent resolvers).
These tasks can be used to execute this actions in a continuous integration setup.
The tasks are defined in the <GX_Install_Dir>\Packages\K2BToolsBuild.Tasks.targets file.
Both tasks do not accept parameters, they perform the operation on the active KB.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(GX_PROGRAM_DIR)\GeneXus.Tasks.targets" />
<Import Project="$(GX_PROGRAM_DIR)\Packages\K2BToolsBuild.Tasks.targets" />
<Target Name="Build" DependsOnTargets="OpenKnowledgeBase;">
<InstallIntentBasedNavigationModule />
<GenerateIntentBasedNavigationObjects />
</Target>
<Target Name="OpenKnowledgeBase">
<OpenKnowledgeBase Directory="C:\Models\<KbName>" />
</Target>
</Project>
|