[Lazarus] Package and project file format
Lubos Pintes
lubos.pintes at gmail.com
Sat Mar 3 12:43:28 CET 2018
Hi,
+1 for this. And really it looks stupid to me to have a different tag
for every item like Item1 or Unit1.
Dňa 03.03.2018 o 11:15 Michael Van Canneyt via Lazarus napísal(a):
>
> Hello,
>
> The package .lpk andproject .lpi file use the following format :
>
> <Units Count="241">
> <Unit0>
> <Filename Value="lazarus.pp"/>
> <IsPartOfProject Value="True"/>
> <UnitName Value="Lazarus"/>
> </Unit0>
> <Unit1>
> <Filename Value="frames/oi_options.pas"/>
> <IsPartOfProject Value="True"/>
> <ComponentName Value="OIOptionsFrame"/>
> <HasResources Value="True"/>
> <ResourceBaseClass Value="Frame"/>
> </Unit1>
>
>
> And similarly
> <RequiredPackages Count="7">
> <Item1>
> <PackageName Value="LazDebuggerGdbmi"/>
> </Item1>
> <Item2>
> <PackageName Value="LCLBase"/>
> <MinVersion Major="1" Release="1" Valid="True"/>
> </Item2>
>
>
> Is it possible to get rid of the counts ?
>
> Reason: if 2 people add files to a package/project, it always creates
> conflicts when updating from the VCS. And if you're in bad luck, you
> need to change a lot of items.
>
> On the other hand, if you do
> <RequiredPackages>
> <Package name="LazDebuggerGdbmi"/>
> <Package name="LCLBase">
> <MinVersion Major="1" Release="1" Valid="True"/>
> </Package>
>
> The chance of conflicts becomes less, and the resolution easier.
>
> Michael.
More information about the Lazarus
mailing list