/
ChangeLog
1308 lines (933 loc) · 46.3 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2009-08-26 Ankit Jain <jankit@novell.com>
* Expression.cs: Correctly handle a item reference with transform
when allowItems is false. If item ref is ignored, then the transform
will get incorrectly matched as a metadata ref.
* ItemReference.cs (.ctor): Add a @original_string param.
2009-08-26 Ankit Jain <jankit@novell.com>
* Utilities.cs (UnescapeFromXml): New. From md.
* BuildProperty.cs (.ctor): Unescape xml codes from the InnerXml
of the property element.
2009-08-26 Ankit Jain <jankit@novell.com>
* BuildProperty.cs (ConvertToString): New.
(ConvertoToITaskItemArray): New. Parse the property value.
* PropertyReference.cs (ConvertToString): Use BuildProperty's
ConvertToString.
(ConvertoToITaskItemArray): Likewise.
2009-08-21 Ankit Jain <jankit@novell.com>
* Engine.cs (EndProjectBuild): Use the @succeeded argument
instead of hardcoding 'true'.
* Target.cs (Build): Add an overload to return executeOnErrors
value for the target executed. If building dependencies fails,
and executeOnErrors is true, then execute OnError tasks.
Add the new param to ..
(BuildDependencies): this, ..
(DoBuild): and this.
(GetDependencies): Improve error message and variable name.
(ExecuteOnErrors): Honor OnError tag's Condition also.
* TaskBatchingImpl.cs (Run): Correctly set executeOnErrors param.
2009-08-20 Ankit Jain <jankit@novell.com>
Fix bug #532264
* Project.cs (Load): Add support for loading .sln files.
2009-08-20 Ankit Jain <jankit@novell.com>
* BuildTask.cs (Execute): Use task_logger only after the task
has been initialized. Catch and report task loading errors.
* Target.cs (DoBuild): Dont rethrow the exception, and emit
the stacktrace as a low importance message.
2009-08-18 Ankit Jain <jankit@novell.com>
* BatchingImplBase.cs: Make the item name lookups and metadata be case
insensitive.
* TaskDatabase.cs: Likewise.
* TaskEngine.cs: Make property name looks, case insensitive.
2009-08-09 Miguel de Icaza <miguel@novell.com>
* ConsoleLogger.cs: Change the format of the error and warnings
strings to work when invoked inside Emacs by not rendering the
column if available, by using lowercase "error"/"warning" strings
instead of camelcased versions and to not have unnecessary padding.
2009-07-31 Ankit Jain <jankit@novell.com>
* ConsoleLogger.cs: Keep track of all the errors and warnings
and show them at the end.
2009-07-31 Ankit Jain <jankit@novell.com>
* Target.cs (Build): Log a message if a target is skipped.
(LogMessage): New.
* BuildTask.cs (Execute): Log error if task execution fails.
2009-07-30 Ankit Jain <jankit@novell.com>
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
v2.0, this will change when multi-targeting lands.
2009-07-30 Ankit Jain <jankit@novell.com>
* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
'MSBuildProjectName' properties.
2009-07-28 Ankit Jain <jankit@novell.com>
* TaskEngine.cs (Prepare): Fix formatting mistake.
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.
2009-07-23 Ankit Jain <jankit@novell.com>
Fix bug #511370.
* Project.cs (ExtensionsPath): New.
(InitializeProperties): Set "MSBuildExtensionsPath" property.
2009-06-12 Ankit Jain <jankit@novell.com>
Fix bug #512535.
* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
itemref is allowed if the prev/next element is ";".
2009-06-12 Ankit Jain <jankit@novell.com>
* Utilities.cs (FromMSBuildPath): Return null if the path contains
"drive:" only on windows.
2009-06-07 Ankit Jain <jankit@novell.com>
* Target.cs (Outputs): Use ITaskItem[] for conversion, to retain
the metadata.
2009-05-29 Ankit Jain <jankit@novell.com>
Correctly handle global properties. Correctly log
project/build events.
* BuildPropertyGroup.cs (Clone): Implement.
* Engine.cs (globalProperties): Rename to ..
(global_properties): .. this.
(currentlyBuildingProjectsStack): New. Used to correctly
log and raise project/build start/finish events.
(BuildProjectFile): Override any project global properties
with explicitly specified ones, here in the param @globalProperties.
Mark project for reevaluation, which will update the engine's
global properties also.
Reset both engine and project's old global properties at the end.
(UnregisterAllLoggers): Log build finished only if we are currently
building.
(StartBuild): Rename to ..
(StartProjectBuild): .. this. Keeps track of the projects being built
in the new stack, and logs project and build events accordingly.
(EndProjectBuild): New. Uses the stack to keep track of projects
finishing builds, and raises project and build events accordingly.
(LogProjectStarted): Move here from Project.cs
(LogProjectFinished): Likewise.
* Project.cs (Build): Log start of project build.
Set current directory to the project file's dir, and reset at end.
(BuildInternal): Don't log here, its done in Build.
(BuildTarget): Already built targets are keyed by the set of global
properties that they were built with.
(GlobalPropertiesToString): New.
(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
(Evaluate): Remove built targets only if we are currently building and
build settings are None.
Merge project's global properties with those of the parent engine.
Add missing properties from engine's global properties.
(LogTargetSkipped): Fix format string, add the reqd argument.
2009-05-29 Ankit Jain <jankit@novell.com>
* ConditionFunctionExpression.cs: Add 'HasTrailingSlash' function.
(HasTrailingSlash): New.
2009-05-12 Ankit Jain <jankit@novell.com>
* Project.cs (.ctor): Init timeOfLastDirty.
2009-05-05 Miguel de Icaza <miguel@novell.com>
* Contribution from Martin Brenn to fix #498154.
2009-04-27 Ankit Jain <jankit@novell.com>
Fix bug #497839.
* Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
one passed as argument.
2009-04-27 Ankit Jain <jankit@novell.com>
* TaskEngine.cs (Prepare): Emit a useful error message property value
can't be converted to required type.
2009-04-27 Ankit Jain <jankit@novell.com>
* ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
as valid true values for bool, and corresponding for false.
2009-03-27 Jonathan Chambers <joncham@gmail.com>
* BuildWhen.cs: Add basic implementation.
* BuildChoose.cs: Add basic implementation.
* BuildItem.cs (AddEvaluatedItem): Add BuiltItem to
EvaluatedItemsIgnoringCondition.
* GroupingCollection.cs: Add evaluation of BuildChoose items.
2009-03-26 Jonathan Chambers <joncham@gmail.com>
* TaskDatabase.cs (RegisterTask): Search for class by name
if task was not found using GetType (which uses namespace).
2009-02-26 Ankit Jain <jankit@novell.com>
* Target.cs: Handle target with no tasks. Log errors.
2009-02-24 Ankit Jain <jankit@novell.com>
Lazily load UsingTask tasks.
* UsingTask.cs (Evaluate): Register 'this' with task database,
but don't load it yet. Register only if condition evaluates to true.
Move the load logic to ..
(Load): .. here. Register with the specified task database.
* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
in a table keyed by task name, but don't load it yet.
(GetTypeFromClassName): Try to load UsingTask if task is not already
loaded. Move loading logic to ..
(GetTypeFromClassNameInternal): .. here.
(CopyTasks): Copy the usingTasks table also.
2009-02-23 Ankit Jain <jankit@novell.com>
* BuildItem.cs (AddMetadata): Allow overwriting older values.
2009-02-22 Ankit Jain <jankit@novell.com>
* BuildItem.cs: Iterate over XmlElements childnodes with XmlNode
instead of XmlElement. Eg. XmlComment
2009-02-21 Ankit Jain <jankit@novell.com>
* Utilities.cs (FromMSBuildPath): Copy from monodevelop.
* Project.cs (Load): Use FromMSBuildPath on the path.
(InitializeProperties): Set "MSBuildToolsPath" also.
2009-02-20 Ankit Jain <jankit@novell.com>
Fix #449683.
* ConditionTokenizer.cs: Handle unquoted item references (with or w/o
transforms) in conditions.
* ConditionParser.cs: Parse unquoted item, property references.
eg. Condition = " @(Foo->'%(Extension)') == '.exe' "
* Token.cs (Token.ToString): Override.
(TokenType.Transform): Uncomment.
2009-02-12 Jonathan Chambers <joncham@gmail.com>
* BuildProperty.cs: Value corresponds to XmlElement.InnerXml
no XmlElement.InnerText. This allows properties to be additional
xml elements.
2009-02-01 Ankit Jain <jankit@novell.com>
* BuildEngine.cs (BuildProjectFile): Use
BuildSettings.DoNotResetPreviouslyBuiltTargets for building projects.
* Engine.cs (BuiltTargetsOutputByName): New. Table of targets already
built. Move logging of project start/finish to ..
* Project.cs: .. here. Build a target only if hasn't been built already.
Keep track of target outputs, and return those even if an already built
target has been invoked again.
Honor BuildSettings.None and DoNotResetPreviouslyBuiltTargets .
2009-01-31 Ankit Jain <jankit@novell.com>
* BatchingImpl.cs: Split into ..
* BatchingImplBase.cs: .. this,
* TaskBatchingImpl.cs: .. this ..
* TargetBatchingImpl.cs: .. and this. Implement target batching here.
* Target.cs (DoBuild): Use TargetBatchingImpl for building.
(Log*): Move to TargetBatchingImpl .
(BuildTasks): New.
(Engine): New.
2009-01-30 Ankit Jain <jankit@novell.com>
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
arrays.
2009-01-29 Ankit Jain <jankit@novell.com>
* BuildItem.cs (child_items): Change type from BuildItemGroup to
List<BuildItem>.
(HasParent): Rename to ..
(HasParentItem): .. this.
(ParentItemGroup): Add setter.
* BuildItemGroup.cs (.ctor): Add overload with @project param.
(AddNewItem):
(AddItem): Correctly set the ParentItemGroup for new build items.
(ParentProject): Add setter.
* Project.cs: Set the project for new BuildItemGroup instances.
* TaskEngine.cs (PublishItemGroup): Likewise.
2009-01-06 Ankit Jain <jankit@novell.com>
* Project.cs (Build): Honor InitialTargets list.
2009-01-06 Ankit Jain <jankit@novell.com>
* BuildEngine.cs (BuildProjectFile): Use AddProperty method to specify
the property type also.
* MSBuild.cs (Execute): Parse 'Properties' task param to set global
properties.
2009-01-06 Ankit Jain <jankit@novell.com>
* Project.cs (Build): Correctly handle null targetNames argument.
2009-01-06 Ankit Jain <jankit@novell.com>
* Engine.cs (LogProjectStarted): Add a null check.
2009-01-01 Ankit Jain <jankit@novell.com>
* IReference.cs: New. Interface for Item/Metadata/PropertyReference.
* ChangeType (ToBuildItemGroup): Add 'split' param.
Track api changes.
* Expression.cs (Parse): Add a new overload with a 'split' param.
* ExpressionCollection.cs (Add): Add new overload for IReference,
remove the ones for Item/Metadata/PropertyReference.
(ConvertToArray): Implement correctly.
(ConvertToString): Track api changes.
(ConvertToITaskItem): Implement with ConvertToITaskItemArray.
(ConvertToITaskItemArray): Implement support for concat'ing expressions.
(AddItemsToArray): New.
(ConvertToITaskItemArrayFromString): Refactor a bit.
(ThrowCantConcatError): New.
* ItemReference.cs: Update.
* MetadataReference.cs: Update.
* PropertyReference.cs (ConvertToITaskItemArray): Implement.
(GetValue): New.
* BuildPropertyGroup.cs: Track api changes.
* TaskEngine.cs (PublishOutput): Improve exception message.
* Project.cs (DoLoad): Improve exception message. Add a null check.
2008-12-30 Ankit Jain <jankit@novell.com>
* MetadataReference.cs (BuildItemGroupToITaskItems): Return unique
metadata values for unqualified references.
(BuildItemGroupToITaskItemArray): Rename to ..
(BuildItemGroupToITaskItems): .. this.
(HasTaskItem): New.
2008-12-18 Ankit Jain <jankit@novell.com>
* BuildTask.cs (Execute): PublishOutput only if task runs successfully.
2008-12-17 Ankit Jain <jankit@novell.com>
* MetadataReference.cs (ConvertToITaskItemArray): In case of batching,
only one instance of unique metadata value is required.
2008-11-22 Ankit Jain <jankit@novell.com>
* ExpressionCollection.cs (ConvertToITaskItemArray): Add support for
MetadataReference.
* MetadataReference.cs (ConvertToITaskItemArray): New.
* Project.cs (GetAllItemGroups): New.
2008-11-21 Ankit Jain <jankit@novell.com>
* BatchingImpl.cs: Add task batching implementation.
* BuildItem.cs (GetEvaluatedMetadata): Handle built-in metadata names.
* ExpressionCollection.cs (Count): New.
(ConvertToString): Handle MetadataReference.
* ItemReference.cs (ConvertToString):
(ConvertToITaskItemArray): Use the batching api.
(ToString): New.
* MetadataReference.cs (ConvertToString): New.
(ToString): New.
* Project.cs: Add api for accessing batched items and metadata.
* TaskEngine.cs (PublishItemGroup): Don't clear existing values from
item group.
2008-10-01 Ankit Jain <jankit@novell.com>
* BuildEngine.cs (.ctor): Replace 'projectFile' param with 'project'.
(BuildProjectFile): If filename is null (project.LoadXml) then use
engine.BuildProject
* BuildTask.cs (InitializeTask): Track api change.
* Expression.cs (Parse): Skip empty entries in the expression.
2008-09-24 Ankit Jain <jankit@novell.com>
* Engine.cs: Add argument checks.
* Project.cs: Likewise.
2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
* Project.cs (Build): Add outputs to targetOutputs.
2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
* ExpressionCollection.cs (ConvertToArray): Simplify.
2007-03-05 Marek Sieradzki <marek.sieradzki@gmail.com>
* TaskEngine.cs, ChangeType.cs: Moved Collect* to ChangeType and
simplified. It still needs tests and refactoring.
2007-02-22 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildEngine.cs (BuildProjectFile): Don't crash on null
globalProperties.
* Target.cs: Add Outputs property.
2007-02-20 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs (Build): Split to GetDependencies () and BuildDependencies
(). Support condition.
* BatchingImpl.cs (BatchBuildTask): Simplify.
2007-02-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* ExpressionCollection.cs (ConvertToITaskItemArrayFromString):
Simplified.
* ConditionFunctionExpression.cs: Removed warnings.
* BuildTask.cs (Execute): Write exceptions to std err (they should be
logged but it's better than swallowing).
2007-02-03 Marek Sieradzki <marek.sieradzki@gmail.com>
* ConditionTokenizer.cs: Add Putback ().
* ConditionParser.cs: Add parsing of functions.
* ConditionFunctionExpression.cs: Add.
2007-02-03 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup (SetProperty): Throw an exception when trying to
set property in persisted property group.
2007-01-29 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs (Execute): Log errors that happen when invoking ITask
.ctor.
* ConsoleLogger.cs (TargetFinishedHandler)
(TaskFinishedHandler): Increment error count.
2007-01-28 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItem.cs (RemoveMetadata): Remove from XML.
(SetMetadata): Trigger project reevaluation.
2007-01-26 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup.cs (SetProperty): Made it work with persisted
properties.
2007-01-23 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs, ConditionFactorExpression.cs, Target.cs,
TaskEngine.cs, UsingTask.cs, ItemReference.cs, BuildItem.cs,
BatchingImpl.cs, BuildProperty.cs: Track API changes.
* Expression.cs (Parse): Added allowItems parameter and made regexes
static.
* Import.cs (Evaluate): Moved hack from tools/xbuild/Makefile here. It
will try to import a.ext when given a.EXT.
2007-01-21 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs: Store information saying what is the last item
group that contains build item name.
* Project.cs (Build): Pass empty array (build default targets).
2007-01-19 Marek Sieradzki <marek.sieradzki@gmail.com>
* Token.cs: Commented Transform and LiteralSubExpression and added
FunctionName token.
* ConditionParser.cs: Removed redundant casts, rewrote
ParseFactorExpression () and added parsing of '!'.
* ConditionTokenizer.cs: Always skip whitespaces when getting next
token (no IgnoreWhiteSpace property). Don't create a token from '->'.
Moved ReadChar () in front of all ifs.
2007-01-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItem.cs (SetMetadata): Escape when we get virtual item or item
from XML. (not to escape items that have parents twice).
2007-01-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs (AddNewItem): Add XML and mark project as dirty.
(Project): Renamed to ParentProject.
* BuildItem.cs (ctor)
(CopyCustomMetadata): Add null check.
* BuildPropertyGroup.cs (AddNewProperty): Reorganized.
(RemoveProperty): Added null check.
* TargetCollection.cs (RemoveTarget): Added null check.
* Engine.cs (UnloadProject): Added null check.
* GroupingCollection.cs (Remove): Check if removed group belongs to
current project.
* Project.cs (AddNewItem): Implemented.
(RemoveItem): Reorganized.
(SetProjectExtensions): Added null check.
2007-01-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs (Detach): Added.
(RemoveItem)
(RemoveItemAt): Used Detach ().
* BuildItem.cs: Made FromXml and HasParent internal and added
ParentItem and ParentItemGroup properties (internal).
(Detach): Added.
* GroupingCollection.cs (Remove): Used Detach ().
* Project.cs (ctor): Added PreserveWhitespace = false to get formatted
text on Save ().
(GetEvaluatedItemsByNameIgnoringCondition)
(GetEvaluatedItemsByName)
(GetEvaluatedProperty): Reevaluate if needed.
(RemoveItem)
(RemoveAllItemGroups)
(RemoveAllPropertyGroups): Implemented.
(DoLoad): Added closing of TextReader.
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup.cs: Don't trigger reevaluation just after a
change but just mark that it needs it.
* Project.cs: Reevaluate when it needs reevaluation and one of
Evaluated* properties is used.
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs: Throw an exception when <OnError> is not last element in
target.
* BuildPropertyGroup.cs (RemoveProperty): Remove from XML.
* TargetCollection.cs: If a target is already there replace it with
new target.
* BuildProperty.cs: Added XmlElement property.
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* ImportCollection.cs: Don't add imports that are already added.
* BuildItemGroup.cs: MonoTODOs.
* ConditionParser.cs (ParseAndEvaluate): Throw an exception when
condition can't be evaluated to bool.
* BuildPropertyGroup.cs (Evaluate): Simplify.
2007-01-10 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildWhen.cs: Moved BindToXml () code to ctor.
* BuildItemGroup.cs, BuildPropertyGroup.cs: Added XmlElement internal
property needed for removing groups.
* Engine.cs: Added StartBuild () that logs build start when Build ()
was first called.
* GroupingCollection.cs: Added Remove () for item and property groups.
* Project.cs (AddNewImport): Implemented.
(AddNewItemGroup): Implemented.
(AddNewPropertyGroup): Implemented.
(AddNewUsingTaskFromAssemblyFile): Implemented.
(AddNewUsingTaskFromAssemblyName): Implemented.
(RemoveItemGroup): Implemented.
(RemovePropertyGroup): Implemented.
2007-01-10 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs (Clear): Remove from XML.
* BuildPropertyGroup.cs (AddNewProperty): Use right namespace and add
to Project.EvaluatedProperties.
(Clear): Remove from XML.
2007-01-09 Marek Sieradzki <marek.sieradzki@gmail.com>
* Project.cs (InitializeProperties): Added $(MSBuildProjectDirectory)
reserved property.
2007-01-08 Marek Sieradzki <marek.sieradzki@gmail.com>
* GroupingCollection.cs: Use 2 iterators: add_iterator that is used by
Add () calls when processing a project from Import and
evaluate_iterator for evaluation.
2007-01-08 Marek Sieradzki <marek.sieradzki@gmail.com>
* Import.cs (GetFullPath): Avoid exceptions from Path.GetDirectoryName
and prepend relative directory of importing project to full path of
imported project.
2007-01-08 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildWhen.cs, BuildPropertyGroupCollection.cs,
BuildItemGroupCollection.cs, Project.cs: Track API changes.
* GroupingCollection.cs: Now it needs Project reference so added it.
* BuildTask.cs: Formatting.
* InvalidProjectFileException.cs: Use MS' names in GetObjectData ().
* ConditionParser.cs (ParseAndEvaluate): Added.
* BuildItem.cs: Changed exception message.
2007-01-02 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildWhen.cs, BuildPropertyGroupCollection.cs,
BuildItemGroupCollection.cs, Project.cs, GroupingCollection.cs:
GroupingCollection doesn't need Project reference.
* BuildTask.cs, Target.cs, TaskEngine.cs, BatchingImpl.cs: Formatting
* BuildItemGroup.cs: Added new readOnly parameter to ctor.
(Project.EvaluatedItems is a read only item group.)
(ReplaceWith): Added.
* BuildPropertyGroup.cs (IsGlobal): Added. Setting a property in
global property group causes reevaluation of its project.
* Project.cs: ProcessXml () is internal and can be "safely" invoked by
other classes.
* OldExpression.cs: Removed.
* BuildProperty.cs (Evaluate): Simplified.
* ChangeType.cs (TemporaryTransform): Simplified.
* BuildItem.cs: There are now 3 types of build items: from XML, having
parent from XML, virtual. Added SplitParentItem ().
2006-12-20 Marek Sieradzki <marek.sieradzki@gmail.com>
* Utilities.cs: Added Unescape ().
* BuildItemGroup.cs, BuildItem.cs: Pass null project to
BuildItem.Evaluate () to "evaluate" virtual items added to virtual item
groups (at the moment just unescape).
* Expression.cs (CopyToExpressionList): Unescape strings.
2006-12-19 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs (ctor): Added ImportedProject argument and removed
set_IsImported.
(AddNewTask): Implemented.
* TargetCollection.cs (AddNewTarget): Implemented.
* Project.cs: Track API changes.
2006-12-19 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs (Build): Don't throw anything in case of error, just
return false.
* BuildItemGroup.cs (set_Condition): Throw an exception if group is
not from XML.
* BuildItem.cs: More meaningfull messages in RemoveMetadata () and
SetMetadata ().
* BuildProperty.cs (ToString): Throw an exception if property is not
from XML.
(op_Explicit): Added a null check.
* Engine.cs: Better error message.
* BuildItemGroupCollection.cs (CopyTo): Changed ArgumentException to
IndexOutOfRangeException.
* Project.cs (DoLoad, Load): Move try/catch to DoLoad ().
(MarkProjectAsDirty): Set time.
2006-12-18 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs (Clone): Throw exception.
* Project.cs (Load): Throw InvalidProjectFileException if anything
goes wrong.
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ItemReference.cs: Avoid KeyNotFoundException in ConvertToString ()
and ConvertToITaskItemArray ().
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ItemPropertyGroupingBase.cs, TaskEngineAssemblyResolver.cs: Removed
classes that were public in Beta 2 and aren't used.
* Expression.cs: Added replacement for parsing expressions char by
char. It uses regexes to find item/property/metadata references in
given text.
* ExpressionCollection.cs, BuildTask.cs, ConditionFactorExpression.cs,
Target.cs, TaskEngine.cs, BuildItemGroup.cs, UsingTask.cs, Import.cs,
BuildItem.cs, BatchingImpl.cs, BuildProperty.cs: Track API changes.
* ConditionRelationalExpression.cs: Formatting.
* OldExpression.cs: Commented everything.
* MetadataReference.cs, ItemReference.cs, PropertyReference.cs: Moved
parsing to Expression.
* BuildItem.cs: Check if project is from XML in set_Condition and
set_Exclude.
* BuildPropertyGroup.cs, Project.cs: Add ImportedProject to
Project.ctor.
* ConditionNotExpression.cs, ConditionAndExpression.cs: Check if we
can evaluate expression in CanEvaluateToBool ().
2006-12-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemGroup.cs (ctor): Add reference to ImportedProject from
which item group is imported.
* BuildItem.cs, Project.cs: Use new BuildItemGroup.ctor ().
2006-12-11 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildWhen.cs, BuildPropertyGroupCollection.cs,
BuildItemGroupCollection.cs: Little changes related to
GroupingCollection.
* ImportCollection.cs: Use GroupingCollection not an internal list.
* Import.cs (Evaluate): Split to functions and check if
EvaluatedProjectPath is empty.
* GroupingCollection.cs, Project.cs: Move evaluation to
GroupingCollection. Change algorithm to use 2 passes: first for property
groups and imports and second for item groups.
2006-12-11 Marek Sieradzki <marek.sieradzki@gmail.com>
* TaskEngine.cs, ItemReference.cs: Use IDictionary <string,
BuildItemGroup> not IDictionary.
* BuildItemGroup.cs, BuildItem.cs: Evaluate even if condition was
evaluated to false because we want to add every item to
Project.EvaluatedItemsByNameIgnoringCondition.
* Project.cs (Build): Don't throw an exception just return false.
(GetEvaluatedProperty): Avoid NullReferenceException.
(SetProjectExtensions): Implemented.
2006-12-08 Marek Sieradzki <marek.sieradzki@gmail.com>
* TaskElement.cs, Xml.cs, ProcessingPass.cs: Removed.
* Utilities.cs, HostLogger.cs, Target.cs, TaskDatabase.cs,
BuildItemGroup.cs, BuildPropertyGroup.cs, TargetCollection.cs,
Engine.cs, GroupingCollection.cs, Project.cs: Reformatted.
* ImportCollection.cs: Added a note.
2006-12-07 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs: Implemented AddOutputItem () and AddOutputProperty ().
* UsingTaskCollection.cs: Removed [MonoTODO] and used CopyTo in CopyTo
(UsingTask[] array, int index)
* TaskEngine.cs: Reformatted PublishOutput () and added copying of
items to Project.EvaluatedItems in PublishItemGroup ();
* BuildItemGroup.cs: Added [MonoTODO].
* UsingTask.cs: Used expression for AssemblyFile to get around
problems with '\' and '/'.
* BuildItem.cs (ctor): Added null checks.
(GetMetadata): Return unevaluatedMetadata not evaluatedMetadata.
(SetMetadata): Don't escape evaluatedMetadata and escape
unevaluatedMetadata only when treatPropertyValueAsLiteral.
* BuildPropertyGroup.cs (GetEnumerator, Evaluate, RemoveProperty): Use
FromXml () instead of null checks.
(SetProperty): Escape propertyValue when it is literal.
* BuildProperty.cs: Changed exception message.
* Project.cs: Added XmlNamespaceManager and XmlNamespace internal
properties.
(GetProjectExtensions): Implemented.
2006-12-05 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs: Remove [MonoTODO], add exception throwing in
GetParameterValue (), use expressions in ContinueOnError.
* ConditionFactorException.cs: Throw InvalidProjectFileException ()
instead of InvalidOperationException ().
* ImportCollection.cs: Implement CopyTo ().
* Target.cs: Remove redundant variables (XmlAttributes), return
String.Empty in DependsOnTargets, add a null check in RemoveTask ().
* BuildItemGroup.cs, BuildPropertyGroup.cs: Remove [MonoTODO].
* Import.cs: Throw an exception when file does not exist.
* Target.cs: Use StringComparer.InvariantCultureIgnoreCase.
* ConditionTokenizer.cs: Treat '-' as beginning of a number. We'll
need to treat item as a token probably
2006-12-04 Marek Sieradzki <marek.sieradzki@gmail.com>
* Import.cs: Check for project.FullFileName (Path.DirectoryName would
throw an exception).
* BuildItemGroupCollection.cs: Changed exception types.
2006-10-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* Engine.cs: Removed redundant cast.
* BuildWhen.cs:
* UsingTaskCollection.cs:
* ImportCollection:
* BuildChoose.cs:
* BuildItem.cs:
* TargetCollection.cs: Comment unused variable.
* ConditionTokenizer.cs: Simplified checking if current token is a
keyword.
* Target.cs: Removed old code.
2006-10-08 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs: Changed "" to String.Empty.
* TaskEngine.cs: Don't try to convert a parameter to specific type if
string was evaluated to String.Empty.
* InternalLoggerException.cs:
* InvalidProjectFileException.cs: Added LinkDemand before
GetObjectData ().
* ConsoleLogger.cs: Changed "" to String.Empty.
* TargetCollection.cs: Fixed GetEnumerator () (stupid bug introduced
with change to generics).
* Project.cs: Made Build () throw more meaningful exception.
2006-10-06 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs: Reformatted.
* TaskEngine.cs: Removed redundant code.
* BuildPropertyGroup.cs: Fixed Clear () and AddNewProperty ().
* Engine.cs: Made BuildProjectFile () load project file if it's not
loaded yet.
2006-09-21 Marek Sieradzki <marek.sieradzki@gmail.com>
* ConditionRelationalExpression.cs: Change comparers to case
insensitive.
* ImportCollection.cs: Add NotImplementedExceptions.
* BuildPropertyGroup.cs: Reformatted a bit.
* BuildProperty.cs: The same.
* Project.cs: Moved evaluation of imports before evaluation of
properties. This may "work" until importing projects is redesigned but
probably isn't correct.
2006-09-20 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup.cs: Check for XmlNodes that aren't XmlElements
(like comments)
* BuildItemGroup.cs: Change return to continue.
2006-09-20 Marek Sieradzki <marek.sieradzki@gmail.com>
* ConditionParser.cs: Copyright note.
* ExpressionCollection.cs: Fixed arrays passing.
2006-08-06 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs, UsingTaskCollection.cs, ImportCollection.cs,
Target.cs, TaskDatabase.cs, TaskEngine.cs, BuildItemGroup.cs,
BuildChoose.cs, DirectoryScanner.cs, BuildPropertyGroup.cs,
TargetCollection.cs, Engine.cs, Project.cs: Started to use generics.
2006-06-25 Marek Sieradzki <marek.sieradzki@gmail.com>
* Token.cs: Changed names: removed "than".
* ConditionRelationalExpression.cs: Added.
* ConditionFactorExpression.cs: Added.
* BuildItemGroup.cs: Changed Condition property return value to return
String.Empty instead of null.
* ConditionParser.cs: Added support for parsing relational expressions
and factors.
* ConditionExpression.cs: Removed Evaluate (). Added 2 sets of
abstract functions: BoolEvaluate (), NumberEvaluate () and StringEvaluate ()
and CanEvaluateToBool (), CanEvaluateToNumber () and
CanEvaluateToString ().
* ConditionOrExpression.cs, ConditionAndExpression.cs: Changed
appropriately to ConditionExpression base class.
* ConditionTokenizer.cs: Added null check and changed names in enums:
removed "than".
* ConditionNotExpression.cs: Added.
* BatchingImpl.cs: Changed to use BoolEvaluate ().
* Project.cs: Added checks for condition.
2006-06-22 Marek Sieradzki <marek.sieradzki@gmail.com>
* ConditionalTokenizer.cs, ConditionalExpression.cs,
ConditionalParser.cs: Changed name,
removed -al.
* ConditionExpression.cs: Added Evaluate ().
* ConditionOrExpression.cs, ConditionAndExpression.cs: Added.
* BatchingImpl.cs: Added check if task should be executed.
2006-06-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* UsingTask.cs: Changed properties to return null on empty attribute.
* UsingTaskCollection.cs: Added object to SyncRoot.
* BuildPropertyGroup.cs: Added NotImplementedException throwing.
2006-06-02 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItem.cs, BuildProperty.cs, BuildPropertyGroup.cs,
BuildPropertyGroupCollection.cs: Fixed to match the tests.
2006-05-27 Marek Sieradzki <marek.sieradzki@gmail.com>
* Utilities.cs: Implemented Escape ().
* BuildItem.cs: Added null checks.
* BuildPropertyGroup.cs, BuildProperty.cs: Moved FromXml property.
* Project.cs: Commented out redundant Evaluate ().
* BuildChoose.cs: Minor changes.
2006-05-22 Marek Sieradzki <marek.sieradzki@gmail.com>
* Token: Added new few missing tokens.
* Target.cs, Project.cs: Patch from Matthew Metnesky.
* BuildItemGroup.cs, OldExpression.cs, MetadataReference.cs,
ItemReference.cs, PropertyReference.cs, ConditionalTokenizer.cs,
ConditionalParser.cs, Tokenizer.cs, LiteralExpression.cs,
LiteralTokenizer.cs:
Removed literal expression parsing based on tokenizer and
parser. It needs to be done by regex.
Moved tokenizer to ConditionalTokenizer.cs.
2006-05-05 Marek Sieradzki <marek.sieradzki@gmail.com>
* ExpressionCollection.cs, BuildItemGroup.cs, BuildItem.cs,
ItemReference.cs, PropertyReference.cs: Changed name of *Reference
methods converting reference to string from ToString () to
ConvertToString () to avoid mistakes like using ToString () provided
by default.
2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs, TaskEngine.cs, BuildItemGroup.cs, MetadataReference.cs,
Import.cs, ItemReference.cs, BuildItem.cs, BatchingImpl.cs,
PropertyReference.cs, BuildProperty.cs: Changed Expression to
OldExpression and changed To* functions to one ConvertTo ().
* TaskEngine.cs: Fixed PublishOutput ().
* OldExpression.cs: Added. It will be temporarily used before
LiteralExpression will be written using Tokenizer.
* Tokenizer.cs, Token.cs, ExpressionCollection.cs,
ExpressionParseException.cs, LiteralExpression.cs: Added.
2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
* ImportedProject.cs: Removed warning.
* Engine.cs, Project.cs, TaskDatabase.cs: Added registration of
default tasks.
2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
* Project.cs: Removed unnecessary variable.
* Engine.cs: Added fixme.
2006-04-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItem.cs: Moved checking if metadata name is reserved to internal
class (Mono.XBuild.Utilities.ReservedNameUtils).
2006-04-14 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildTask.cs: Removed unnecessary variable.
* Engine.cs: Added logging of the build start.
* Project.cs: Removed unnecessary variable.
2006-04-07 Marek Sieradzki <marek.sieradzki@gmail.com>
* GlobalEngineAccessor.cs, ProjectFileEncoding.cs: Removed.
2006-03-29 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItem.cs, BuildItemGroup.cs: Coding style fixes.
2006-03-29 Crestez Leonard <cdleonard@gmail.com>