Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
caleblanchard committed Dec 5, 2019
1 parent 1f9b7eb commit 62576e9
Show file tree
Hide file tree
Showing 30 changed files with 4,644 additions and 0 deletions.
45 changes: 45 additions & 0 deletions AXModulesBuild.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
<PropertyGroup>
<MetadataDirectory>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dynamics\AX\7.0\SDK@MetadataPath)</MetadataDirectory>
<DynamicsSDK>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dynamics\AX\7.0\SDK@DynamicsSDK)</DynamicsSDK>
<PackagesPath>$(AGENT_BUILDDIRECTORY)\Packages</PackagesPath>
<TestResultsPath>$(AGENT_BUILDDIRECTORY)\TestResults</TestResultsPath>
<ArtifactsPath>$(AGENT_BUILDDIRECTORY)\Artifacts</ArtifactsPath>
</PropertyGroup>

<!-- Instrument that build has started -->
<Target Name="InstrumentBuildStart" Condition="Exists('$(DynamicsSDK)\DevALMInstrumentor.ps1')">
<Exec Command="powershell.exe -NonInteractive -ExecutionPolicy RemoteSigned -Command &quot;&amp; {$(DynamicsSDK)\DevALMInstrumentor.ps1 -TaskBuildStart}&quot;" ContinueOnError="WarnAndContinue" />
</Target>

<!-- Clean output from previous build -->
<Target Name="Clean" AfterTargets="InstrumentBuildStart">
<RemoveDir Directories="$(OutputPath)" Condition="Exists('$(OutputPath)')" />
<RemoveDir Directories="$(LogPath)" Condition="Exists('$(LogPath)')" />
<RemoveDir Directories="$(PackagesPath)" Condition="Exists('$(PackagesPath)')" />
<RemoveDir Directories="$(TestResultsPath)" Condition="Exists('$(TestResultsPath)')" />
<RemoveDir Directories="$(ArtifactsPath)" Condition="Exists('$(ArtifactsPath)')" />
</Target>

<!-- Generate Metadata.proj -->
<Target Name="GenerateProjFiles" AfterTargets="InstrumentBuildStart" Condition="Exists('$(DynamicsSDK)\GenerateProjFiles.ps1')">
<Exec Command="powershell.exe -NonInteractive -ExecutionPolicy RemoteSigned -Command &quot;&amp; {$(DynamicsSDK)\GenerateProjFiles.ps1 -MetadataPath '$(MSBuildProjectDirectory)\Metadata' -ProjectMetadataDependencyXml '$(DependencyXml)' -ErrorLogPath '$(LogPath)\GenerateProjErrors.log' -Verbose}&quot;" ContinueOnError="ErrorAndStop" />
<Error Condition="Exists('$(LogPath)\GenerateProjErrors.log')" Text="Failed to generate project files. Please check GenerateProjErrors.log in the additional logs for details." />
</Target>

<!-- Build generated projects -->
<Target Name="ExecuteMetadata_Project_BuildProj" AfterTargets="GenerateProjFiles" Condition="Exists('Metadata_Project_Build.proj')">
<MSBuild Projects="Metadata_Project_Build.proj" ContinueOnError="ErrorAndStop" StopOnFirstFailure="true"/>
</Target>

<!-- Ensure that the output path exists as it is passed to the Generate Packages and Execute Tests steps -->
<Target Name="CreateOutputPath" AfterTargets="ExecuteMetadata_Project_BuildProj">
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
</Target>

<!-- Instrument that build has ended -->
<Target Name="InstrumentBuildEnd" AfterTargets="CreateOutputPath" Condition="Exists('$(DynamicsSDK)\DevALMInstrumentor.ps1')">
<Exec Command="powershell.exe -NonInteractive -ExecutionPolicy RemoteSigned -Command &quot;&amp; {$(DynamicsSDK)\DevALMInstrumentor.ps1 -TaskBuildEnd}&quot;" ContinueOnError="WarnAndContinue" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>ARBAOTObjectPopulateController</Name>
<SourceCode>
<Declaration><![CDATA[
/// <summary>
/// Controller for generating setup data for parameter comparison
/// </summary>
class ARBAOTObjectPopulateController extends SysOperationserviceController
{
}
]]></Declaration>
<Methods>
<Method>
<Name>new</Name>
<Source><![CDATA[
/// <summary>
/// Constructor for ACMAOTObjectPopulateController class
/// </summary>
/// <param name = "_className">The name of the class</param>
/// <param name = "_methodName">The method name</param>
/// <param name = "_executionMode">The execution mode</param>
protected void new(IdentifierName _className = '', IdentifierName _methodName = '', SysOperationExecutionMode _executionMode = SysOperationExecutionMode::Synchronous)
{
super(classStr(ARBAOTObjectPopulateService), methodStr(ARBAOTObjectPopulateService, populateAOTObjects), _executionMode);
}
]]></Source>
</Method>
<Method>
<Name>construct</Name>
<Source><![CDATA[
/// <summary>
/// Construct method for ACMAOTObjectPopulateController
/// </summary>
/// <returns>The new ACMAOTObjectPopulateController</returns>
public static ARBAOTObjectPopulateController construct()
{
return new ARBAOTObjectPopulateController();
}
]]></Source>
</Method>
<Method>
<Name>caption</Name>
<Source><![CDATA[
/// <summary>
/// The caption for the controller
/// </summary>
/// <returns>The caption</returns>
public ClassDescription caption()
{
return "@AOTBrowser:PopulateAOTObjectTable";
}
]]></Source>
</Method>
<Method>
<Name>parmDialogCaption</Name>
<Source><![CDATA[
/// <summary>
/// The dialog caption
/// </summary>
/// <param name = "_dialogCaption">The new dialog caption</param>
/// <returns>The dialog caption</returns>
public LabelType parmDialogCaption(LabelType _dialogCaption = dialogCaption)
{
LabelType ret;
ret = "@AOTBrowser:PopulateAOTObjectTable";
return ret;
}
]]></Source>
</Method>
<Method>
<Name>main</Name>
<Source><![CDATA[
/// <summary>
/// The main method
/// </summary>
/// <param name = "_args">The arguments</param>
public static void main(Args _args)
{
ARBAOTObjectPopulateController controller = ARBAOTObjectPopulateController::construct();
controller.startOperation();
}
]]></Source>
</Method>
</Methods>
</SourceCode>
</AxClass>
Loading

0 comments on commit 62576e9

Please sign in to comment.