~ubuntu-branches/ubuntu/lucid/mono/lucid

« back to all changes in this revision

Viewing changes to mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2009-07-30 19:35:10 UTC
  • mto: (5.2.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090730193510-cdttfvqokq2kmdvh
Tags: upstream-2.4.2.3+dfsg
ImportĀ upstreamĀ versionĀ 2.4.2.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
                [MonoTODO]
130
130
                public BuildPropertyGroup Clone (bool deepClone)
131
131
                {
132
 
                        throw new NotImplementedException ();
 
132
                        BuildPropertyGroup bpg = new BuildPropertyGroup (propertyGroup, parentProject, importedProject, read_only);
 
133
                        if (FromXml) {
 
134
                                foreach (BuildProperty bp in properties) {
 
135
                                        if (deepClone)
 
136
                                                bpg.AddProperty (bp.Clone (true));
 
137
                                        else
 
138
                                                bpg.AddNewProperty (bp.Name, bp.FinalValue);
 
139
                                }
 
140
                        } else {
 
141
                                foreach (BuildProperty bp in propertiesByName.Values) {
 
142
                                        if (deepClone)
 
143
                                                bpg.AddProperty (bp.Clone (true));
 
144
                                        else
 
145
                                                bpg.AddNewProperty (bp.Name, bp.FinalValue);
 
146
                                }
 
147
                        }
 
148
 
 
149
                        return bpg;
133
150
                }
134
151
 
135
152
                public IEnumerator GetEnumerator ()