Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Project Management    [ Add a report in this area ]  
Report #:  105105   Status: Open
Build Events don't save in option sets.
Project:  Delphi Build #:  17.0.4625.53395
Version:    17.0 Submitted By:   CAS Developers
Report Type:  Crash / Data loss / Total failure Date Reported:  4/23/2012 6:50:02 AM
Severity:    Commonly encountered problem Last Updated: 9/6/2012 11:39:52 AM
Platform:    All versions Internal Tracking #:   28244
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 10
Description
When you edit an option set and change the build events, that information seems to be stored. If you close the IDE and reopen it, the information is gone.

Even if you add a tag like this to the option set file:
<PostBuildEvent>ExecuteSomething</PostBuildEvent>

the IDE will load that correctly, but remove it when the option set is saved.
Steps to Reproduce:
1. From the menu bar, choose File, New, VCL Forms Application - Delphi.
2. In Project Manager, right-click Build Configurations and select New Option Set...
3. Choose a name for the new option set.
4. In Project Manager, right-click the option set and choose Edit.
5. For use as a control, navigate to Delphi Compiler\Compiling and set Code inlining control to On.
5. Navigate to Build Events, and set a command for Post-build events.
6. Click OK.
7. Click Save All and close the project (not the IDE).

At this point, open the option set file in a text editor and you should see something like this:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">


<PropertyGroup>



<DCC_Inlining>on</DCC_Inlining>


</PropertyGroup>


<ProjectExtensions>



<Borland.Personality>Delphi.Personality.12</Borland.Personality>



<Borland.ProjectType>OptionSet</Borland.ProjectType>



<BorlandProject>




<Delphi.Personality/>



</BorlandProject>



<ProjectFileVersion>12</ProjectFileVersion>


</ProjectExtensions>

</Project>

Notice that the inlining control has been saved, but not the build event.

8. Reopen the project, right-click the option set and choose Edit.
9. Navigate to Build Events and notice that the value is still filled in, as if it had been saved.
10. Close Delphi and reopen.
11. Reopen the project, right-click the option set and choose Edit.
12. Navigate to Build Events and notice that the value is now empty.
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 5/17/2012 7:30:11 PM -
This report was opened with valid Internal Tracking Number.
Thanks.

CAS Developers at 9/6/2012 11:34:23 AM -
Still not working on XE3 :-(

Server Response from: ETNACODE01