X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMicrosoft.Build.Tasks%2FMicrosoft.Build.Tasks%2FFindUnderPath.cs;h=52221e05c7ceab394703da8a828c36d8aaee40cc;hb=10f86fb5fe2212bb57090376ec04847aeb558b4e;hp=2d1de22c2532f1fb6cfeb645b363dff45ba4f6f6;hpb=9975a45f43793e34318e593ddacd3f332f8d91c0;p=mono.git diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/FindUnderPath.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/FindUnderPath.cs index 2d1de22c253..52221e05c7c 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/FindUnderPath.cs +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/FindUnderPath.cs @@ -25,7 +25,6 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -#if NET_2_0 using System; using System.Collections.Generic; @@ -46,17 +45,12 @@ namespace Microsoft.Build.Tasks { public override bool Execute () { + if (files == null || files.Length == 0) + return true; + List temporaryInPath = new List (); List temporaryOutOfPath = new List (); - if (path == null) { - Log.LogError (null, null, null, BuildEngine.ProjectFileOfTaskNode, - BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode, - BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode, - "Path attribute must be specified", null); - return false; - } - foreach (ITaskItem file in files) { try { string fullPath = path.GetMetadata ("FullPath");; @@ -129,4 +123,3 @@ namespace Microsoft.Build.Tasks { } } -#endif \ No newline at end of file