Build project using command line

Hi.
When using “BR.AS.Build.exe” with the option “-buildRUCPackage” is it then possible to have the RUC package include a directory to be copied to USER partition?
So it works like the option “Copy directory to USER partition” when creating RUC from AS.

Hope someone can answer this.

Hi @jensenj

I never try it but I believe that if the configuration you build have the info about copy USER partition, it could do it.
You can check in file : Physical\{CONFIG_NAME}\{CPU_NAME}\Cpu.pkg

<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio FileVersion="4.9"?>
<Cpu xmlns="http://br-automation.co.at/AS/Cpu">
  <Objects>
    <Object Type="File" Description="Software configuration">Cpu.sw</Object>
    <Object Type="File" Description="Permanent variables">Cpu.per</Object>
    <Object Type="File" Description="I/O mapping">IoMap.iom</Object>
    <Object Type="File" Description="Variable mapping">PvMap.vvm</Object>
    <Object Type="Package">Connectivity</Object>
    <Object Type="Package">TextSystem</Object>
    <Object Type="Package">UnitSystem</Object>
    <Object Type="Package">AccessAndSecurity</Object>
    <Object Type="Package">mappView</Object>
    <Object Type="Package">mappServices</Object>
  </Objects>
  <Configuration ModuleId="PC_any">
    <AutomationRuntime Version="6.1.0" />
    <Build GccVersion="11.3.0" />
    <DefaultTargetMemory Tasks="UserROM" />
    <Transfer AddToUserPart="True" AdditionalUserDir="C:\Temp" AllowDowngrade="False" AllowInitialTransfer="False" AllowPartitioning="False" ExecuteInitExitProgram="True" ForceInitialTransfer="False" IdentificationTypeValue="" IgnoreVersion="True" KeepNonVolatileMemory="False" PreserveVariableValues="False" ProjectConsistent="True" RebootDuringTransfer="False" SavedOfflineInstallationFolder="" SavedPipDestinationFolder="" SavedRuntimeUtilityCenterPackagePath="" TargetIdentificationType="Always" TryToBootInRunMode="False" UserFilesIgnoreDifference="False" />
    <Vc FirmwareVersion="6.0.0" />
  </Configuration>
</Cpu>

In nodeTransfer you can see AddToUserPart and AdditionUserDir, maybe there is more like the Overwrite existing file like in the dialog on AS.
EDIT: There is UserFilesIgnoreDifference for the Overwrite existing file, pretty sure.

For info option -buildRUCPackage is like a boolean.

I think you can try and keep us in touch !

Hope it help !

Regards,
Florent