2006-06-17 Marek Sieradzki <marek.sieradzki@gmail.com>
authorMarek Sieradzki <msierad@mono-cvs.ximian.com>
Sat, 17 Jun 2006 09:10:32 +0000 (09:10 -0000)
committerMarek Sieradzki <msierad@mono-cvs.ximian.com>
Sat, 17 Jun 2006 09:10:32 +0000 (09:10 -0000)
        * Error.cs: Added null check and changed return value of Execute () to
        false.
        * ResolveProjectBase.cs, AssignTargetPath.cs, CallTarget.cs,
        AspNetCompiler.cs, AssignCulture.cs, AssignProjectConfiguration.cs:
        Added stubs.

svn path=/trunk/mcs/; revision=61822

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AspNetCompiler.cs [new file with mode: 0644]
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignCulture.cs [new file with mode: 0644]
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignProjectConfiguration.cs [new file with mode: 0644]
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignTargetPath.cs [new file with mode: 0644]
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/CallTarget.cs [new file with mode: 0644]
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ChangeLog
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Error.cs
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveProjectBase.cs [new file with mode: 0644]

diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AspNetCompiler.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AspNetCompiler.cs
new file mode 100644 (file)
index 0000000..9a1b36b
--- /dev/null
@@ -0,0 +1,150 @@
+//
+// AspNetCompiler.cs: Task for ASP .NET compiler
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public class AspNetCompiler : ToolTaskExtension {
+       
+               bool    allowPartiallyTrustedCallers;
+               bool    clean;
+               bool    debug;
+               bool    delaySign;
+               bool    fixedNames;
+               bool    force;
+               string  keyContainer;
+               string  keyFile;
+               string  metabasePath;
+               string  physicalPath;
+               string  targetPath;
+               bool    updateable;
+               string  virtualPath;
+       
+               public AspNetCompiler ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               [MonoTODO]
+               protected internal override void AddCommandLineCommands (CommandLineBuilderExtension commandLine)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               protected override string GenerateFullPathToTool ()
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               protected override bool ValidateParameters ()
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public bool AllowPartiallyTrustedCallers {
+                       get { return allowPartiallyTrustedCallers; }
+                       set { allowPartiallyTrustedCallers = value; }
+               }
+               
+               public bool Clean {
+                       get { return clean; }
+                       set { clean = value; }
+               }
+               
+               public bool Debug {
+                       get { return debug; }
+                       set { debug = value; }
+               }
+               
+               public bool DelaySign {
+                       get { return delaySign; }
+                       set { delaySign = value; }
+               }
+               
+               public bool FixedNames {
+                       get { return fixedNames; }
+                       set { fixedNames = value; }
+               }
+               
+               public bool Force {
+                       get { return force; }
+                       set { force = value; }
+               }
+               
+               public string KeyContainer {
+                       get { return keyContainer; }
+                       set { keyContainer = value; }
+               }
+               
+               public string KeyFile {
+                       get { return keyFile; }
+                       set { keyFile = value; }
+               }
+               
+               public string MetabasePath {
+                       get { return metabasePath; }
+                       set { metabasePath = value; }
+               }
+               
+               public string PhysicalPath {
+                       get { return physicalPath; }
+                       set { physicalPath = value; }
+               }
+               
+               public string TargetPath {
+                       get { return targetPath; }
+                       set { targetPath = value; }
+               }
+               
+               public bool Updateable {
+                       get { return updateable; }
+                       set { updateable = value; }
+               }
+               
+               public string VirtualPath {
+                       get { return virtualPath; }
+                       set { virtualPath = value; }
+               }
+               
+               protected override string ToolName {
+                       get { return "aspnet_compiler"; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file
diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignCulture.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignCulture.cs
new file mode 100644 (file)
index 0000000..560cb0f
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// AssignCulture.cs
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public class AssignCulture : TaskExtension {
+       
+               ITaskItem[]     assignedFiles;
+               ITaskItem[]     assignedFilesWithCulture;
+               ITaskItem[]     assignedFilesWithNoCulture;
+               ITaskItem[]     cultureNeutralAssignedFiles;
+               ITaskItem[]     files;
+       
+               public AssignCulture ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               public ITaskItem[] AssignedFiles {
+                       get { return assignedFiles; }
+               }
+               
+               public ITaskItem[] AssignedFilesWithCulture {
+                       get { return assignedFilesWithCulture; }
+               }
+               
+               public ITaskItem[] AssignedFilesWithNoCulture {
+                       get { return assignedFilesWithNoCulture; }
+               }
+               
+               public ITaskItem[] CultureNeutralAssignedFiles {
+                       get { return cultureNeutralAssignedFiles; }
+               }
+               
+               public ITaskItem[] Files {
+                       get { return files; }
+                       set { files = value; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file
diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignProjectConfiguration.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignProjectConfiguration.cs
new file mode 100644 (file)
index 0000000..11c2966
--- /dev/null
@@ -0,0 +1,68 @@
+//
+// AssignProjectConfiguration.cs
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public class AssignProjectConfiguration : ResolveProjectBase {
+       
+               ITaskItem[]     assignedProjects;
+               string          solutionConfigurationContents;
+               ITaskItem[]     unassignedProjects;
+       
+               public AssignProjectConfiguration ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               public ITaskItem[] AssignedProjects {
+                       get { return assignedProjects; }
+                       set { assignedProjects = value; }
+               }
+               
+               public string SolutionConfigurationContents {
+                       get { return solutionConfigurationContents; }
+                       set { solutionConfigurationContents = value; }
+               }
+               
+               public ITaskItem[] UnassignedProjects {
+                       get { return unassignedProjects; }
+                       set { unassignedProjects = value; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file
diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignTargetPath.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssignTargetPath.cs
new file mode 100644 (file)
index 0000000..812fc73
--- /dev/null
@@ -0,0 +1,67 @@
+//
+// AssignTargetPath.cs
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public class AssignTargetPath : TaskExtension {
+       
+               ITaskItem[]     assignedFiles;
+               ITaskItem[]     files;
+               string          rootFolder;
+       
+               public AssignTargetPath ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               public ITaskItem[] AssignedFiles {
+                       get { return assignedFiles; }
+               }
+               
+               public ITaskItem[] Files {
+                       get { return files; }
+                       set { files = value; }
+               }
+               
+               public string RootFolder {
+                       get { return rootFolder; }
+                       set { rootFolder = value; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file
diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/CallTarget.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/CallTarget.cs
new file mode 100644 (file)
index 0000000..e4001ff
--- /dev/null
@@ -0,0 +1,67 @@
+//
+// CallTarget.cs
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public class CallTarget : TaskExtension {
+       
+               bool            runEachTargetSeparately;
+               ITaskItem[]     targetOutputs;
+               string[]        targets;
+       
+               public CallTarget ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               public bool RunEachTargetSeparately {
+                       get { return runEachTargetSeparately; }
+                       set { runEachTargetSeparately = value; }
+               }
+               
+               public ITaskItem[] TargetOutputs {
+                       get { return targetOutputs; }
+               }
+               
+               public string[] Targets {
+                       get { return targets; }
+                       set { targets = value; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file
index 518ce50f95111b7078cf1d2c56138d752570dd9c..4ae850bdb7e8be22a9d155075017ab5f2979e0ff 100644 (file)
@@ -1,3 +1,11 @@
+2006-06-17  Marek Sieradzki  <marek.sieradzki@gmail.com>
+
+       * Error.cs: Added null check and changed return value of Execute () to
+       false.
+       * ResolveProjectBase.cs, AssignTargetPath.cs, CallTarget.cs,
+       AspNetCompiler.cs, AssignCulture.cs, AssignProjectConfiguration.cs:
+       Added stubs.
+
 2006-05-26  Marek Sieradzki  <marek.sieradzki@gmail.com>
 
        * RegisterAssembly.cs, SignFile.cs, GenerateTrustInfo.cs,
index 365f03e479926751463bef4d43c6813f3d5d114b..d270f1843e6733f6ced09525bca0c7449e4dea2a 100644 (file)
@@ -40,11 +40,12 @@ namespace Microsoft.Build.Tasks {
 
                public override bool Execute ()
                {
-                       this.Log.LogError (null, code, helpKeyword, BuildEngine.ProjectFileOfTaskNode,
-                               BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode,
-                               BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode,
-                               text, null);
-                       return true;
+                       if (Log != null)
+                               Log.LogError (null, code, helpKeyword, BuildEngine.ProjectFileOfTaskNode,
+                                       BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode,
+                                       BuildEngine.LineNumberOfTaskNode, BuildEngine.ColumnNumberOfTaskNode,
+                                       text, null);
+                       return false;
                }
 
                public string Code {
diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveProjectBase.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveProjectBase.cs
new file mode 100644 (file)
index 0000000..e162c91
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// ResolveProjectBase.cs
+//
+// Author:
+//   Marek Sieradzki (marek.sieradzki@gmail.com)
+//
+// (C) 2006 Marek Sieradzki
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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.IO;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Tasks {
+       public abstract class ResolveProjectBase : TaskExtension {
+       
+               ITaskItem[] projectReferences;
+       
+               [MonoTODO]
+               protected ResolveProjectBase ()
+               {
+               }
+               
+               [MonoTODO]
+               public override bool Execute ()
+               {
+                       return false;
+               }
+               
+               [MonoTODO]
+               protected string GetProjectItem (ITaskItem projectRef)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public ITaskItem[] ProjectReferences {
+                       get { return projectReferences; }
+                       set { projectReferences = value; }
+               }
+       }
+}
+
+#endif
\ No newline at end of file