Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r518 - trunk: . Libraries Source Source/MSBuild.Community.Tasks Source/MSBuild.Community.Tasks/NuGet Source/MSBuild.Community.Tasks/Tfs

msbuildtasks
Discussion topic

Back to topic list

svn commit: r518 - trunk: . Libraries Source Source/MSBuild.Community.Tasks Source/MSBuild.Community.Tasks/NuGet Source/MSBuild.Community.Tasks/Tfs

Author pwelter34
Full name Paul Welter
Date 2011-11-16 21:12:19 PST
Message Author: pwelter34 Date: 2011-11-16 21:12:19-0800 New Revision: 518 Added: trunk/MSBuildTasks.symbols.nuspec trunk/Source/MSBuild.Community.Tasks/NuGet/ trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetBase.cs (contents, props changed) trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPack.cs (contents, props changed) trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPush.cs (contents, props changed) Removed: trunk/Source/MSBuild.Community.Tasks/NuGet.cs Modified: trunk/Libraries/NuGet.exe trunk/MSBuildTasks.nuspec trunk/Master-helper.proj trunk/Source/MSBuild.Community.Tasks.sln trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.Targets trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.csproj trunk/Source/MSBuild.Community.Tasks/Tfs/TfsClient.cs Log: - added NuGet tasks Modified: trunk/Libraries/NuGet.exe Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Libraries/NuGet.exe?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== Binary files. No diff available. Modified: trunk/MSBuildTasks.nuspec Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/MSBuildTasks.nuspec?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/MSBuildTasks.nuspec (original) +++ trunk/MSBuildTasks.nuspec 2011-11-16 21:12:19-0800 @@ -11,9 +11,9 @@ MSBuild - - - - + + + + \ No newline at end of file Added: trunk/MSBuildTasks.symbols.nuspec Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/MSBuildTasks.symbols.nuspec?view=markup&pathrev=518 ============================================================================== --- (empty file) +++ trunk/MSBuildTasks.symbols.nuspec 2011-11-16 21:12:19-0800 @@ -0,0 +1,19 @@ + + + + MSBuildTasks + 1.3.0 + Paul Welter + The MSBuild Community Tasks project is a collection of open source tasks for MSBuild. + en-US + http://msbuildtasks.tigris.org/ + http://opensource.org/licenses/bsd-license.php + MSBuild + + + + + + + + \ No newline at end of file Modified: trunk/Master-helper.proj Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Master-helper.proj?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/Master-helper.proj (original) +++ trunk/Master-helper.proj 2011-11-16 21:12:19-0800 @@ -91,7 +91,7 @@ - + @@ -116,8 +116,8 @@ @@ -155,6 +155,27 @@ DestinationFiles="MSBuild.Community.Tasks.v$(Major).$(Minor).$(Build).$(Revision).msi" /> + + + + + + + + + + + + + Modified: trunk/Source/MSBuild.Community.Tasks.sln Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks.sln?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/Source/MSBuild.Community.Tasks.sln (original) +++ trunk/Source/MSBuild.Community.Tasks.sln 2011-11-16 21:12:19-0800 @@ -9,6 +9,7 @@ ..\Master.proj = ..\Master.proj ..\MSBuildTasks.nuspec = ..\MSBuildTasks.nuspec ..\MSBuildTasks.proj = ..\MSBuildTasks.proj + ..\MSBuildTasks.symbols.nuspec = ..\MSBuildTasks.symbols.nuspec ..\Documentation\Overview.html = ..\Documentation\Overview.html Settings.SourceAnalysis = Settings.SourceAnalysis ..\Documentation\TaskList.xslt = ..\Documentation\TaskList.xslt Modified: trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.Targets Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.Targets?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.Targets (original) +++ trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.Targets 2011-11-16 21:12:19-0800 @@ -127,7 +127,10 @@ - + + + + Modified: trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.csproj Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.csproj?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.csproj (original) +++ trunk/Source/MSBuild.Community.Tasks/MSBuild.Community.Tasks.csproj 2011-11-16 21:12:19-0800 @@ -118,7 +118,9 @@ - + + + Removed: trunk/Source/MSBuild.Community.Tasks/NuGet.cs Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/NuGet.cs?view=markup&pathrev=517 Added: trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetBase.cs Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetBase.cs?view=markup&pathrev=518 ============================================================================== --- (empty file) +++ trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetBase.cs 2011-11-16 21:12:19-0800 @@ -0,0 +1,91 @@ +#region Copyright © 2011 Paul Welter. All rights reserved. +/* +Copyright © 2005 Paul Welter. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +#endregion + +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using Microsoft.Build.Utilities; + +// $Id$ + +namespace MSBuild.Community.Tasks.NuGet +{ + /// + /// A base class for NuGet tasks. + /// + public abstract class NuGetBase : ToolTask + { + /// + /// Gets or sets the working directory. + /// + /// The working directory. + /// + /// The directory in which to run the executable file, or a null reference (Nothing in Visual Basic) if the executable file should be run in the current directory. + /// + public string WorkingDirectory { get; set; } + + /// + /// Returns the fully qualified path to the executable file. + /// + /// + /// The fully qualified path to the executable file. + /// + protected override string GenerateFullPathToTool() + { + if (string.IsNullOrEmpty(ToolPath)) + return ToolName; + + return Path.Combine(ToolPath, ToolName); + } + + /// + /// Gets the name of the executable file to run. + /// + /// + /// The name of the executable file to run. + protected override string ToolName + { + get { return "NuGet.exe"; } + } + + /// + /// Returns the directory in which to run the executable file. + /// + /// + /// The directory in which to run the executable file, or a null reference (Nothing in Visual Basic) if the executable file should be run in the current directory. + /// + protected override string GetWorkingDirectory() + { + return string.IsNullOrEmpty(WorkingDirectory) + ? base.GetWorkingDirectory() + : WorkingDirectory; + } + } +} Added: trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPack.cs Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPack.cs?view=markup&pathrev=518 ============================================================================== --- (empty file) +++ trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPack.cs 2011-11-16 21:12:19-0800 @@ -0,0 +1,89 @@ +#region Copyright © 2011 Paul Welter. All rights reserved. +/* +Copyright © 2005 Paul Welter. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +#endregion + +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; + +// $Id$ + +namespace MSBuild.Community.Tasks.NuGet +{ + /// + /// Creates a NuGet package based on the specified nuspec or project file. + /// + public class NuGetPack : NuGetBase + { + /// + /// The location of the nuspec or project file to create a package. + /// + [Required] + public ITaskItem File { get; set; } + + /// + /// Specifies the directory for the created NuGet package. + /// + public string OutputDirectory { get; set; } + + /// + /// Overrides the version number from the nuspec file. + /// + public string Version { get; set; } + + /// + /// The base path of the files defined in the nuspec file. + /// + public string BasePath { get; set; } + + /// + /// Shows verbose output for package building. + /// + /// true if verbose; otherwise, false. + public bool Verbose { get; set; } + + /// + /// Returns a string value containing the command line arguments to pass directly to the executable file. + /// + /// + /// A string value containing the command line arguments to pass directly to the executable file. + /// + protected override string GenerateCommandLineCommands() + { + var builder = new CommandLineBuilder(); + builder.AppendSwitch("pack"); + builder.AppendFileNameIfNotNull(File); + builder.AppendSwitchIfNotNull("-OutputDirectory", OutputDirectory); + builder.AppendSwitchIfNotNull("-BasePath", BasePath); + builder.AppendSwitchIfNotNull("-Version", Version); + if (Verbose) + builder.AppendSwitch("-Verbose"); + + return builder.ToString(); + } + } +} \ No newline at end of file Added: trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPush.cs Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPush.cs?view=markup&pathrev=518 ============================================================================== --- (empty file) +++ trunk/Source/MSBuild.Community.Tasks/NuGet/NuGetPush.cs 2011-11-16 21:12:19-0800 @@ -0,0 +1,85 @@ +#region Copyright © 2011 Paul Welter. All rights reserved. +/* +Copyright © 2005 Paul Welter. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +#endregion + +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; + +// $Id$ + +namespace MSBuild.Community.Tasks.NuGet +{ + /// + /// Pushes a package to the server and optionally publishes it. + /// + public class NuGetPush : NuGetBase + { + /// + /// The path to the package to push the package to the server. + /// + [Required] + public ITaskItem File { get; set; } + + /// + /// The API key to use for push to the server. + /// + public string APIKey { get; set; } + + /// + /// Specifies the server URL. + /// + public string Source { get; set; } + + /// + /// Specifies if the package should be created and uploaded to the server but not published to the server. False by default. + /// + /// + /// true if create only; otherwise, false. + /// + public bool CreateOnly { get; set; } + + /// + /// Returns a string value containing the command line arguments to pass directly to the executable file. + /// + /// + /// A string value containing the command line arguments to pass directly to the executable file. + /// + protected override string GenerateCommandLineCommands() + { + var builder = new CommandLineBuilder(); + builder.AppendSwitch("push"); + builder.AppendFileNameIfNotNull(File); + builder.AppendFileNameIfNotNull(APIKey); + builder.AppendSwitchIfNotNull("-Source", Source); + if (CreateOnly) + builder.AppendSwitch("-CreateOnly"); + + return builder.ToString(); + } + } +} \ No newline at end of file Modified: trunk/Source/MSBuild.Community.Tasks/Tfs/TfsClient.cs Url: http://msbuildtasks.tigris.org/source/browse/msbuildtasks/trunk/Source/MSBuild.Community.Tasks/Tfs/TfsClient.cs?view=diff&pathrev=518&r1=517&r2=518 ============================================================================== --- trunk/Source/MSBuild.Community.Tasks/Tfs/TfsClient.cs (original) +++ trunk/Source/MSBuild.Community.Tasks/Tfs/TfsClient.cs 2011-11-16 21:12:19-0800 @@ -1,4 +1,33 @@ -using System; +#region Copyright © 2011 Paul Welter. All rights reserved. +/* +Copyright © 2005 Paul Welter. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +#endregion + +using System; using System.Collections.Generic; using System.IO; using System.Text; @@ -6,6 +35,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +// $Id$ + namespace MSBuild.Community.Tasks.Tfs { public class TfsClient : ToolTask

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r518 - trunk: . Libraries Source Source/MSBuild.Community.Tasks Source/MSBuild.Community.Tasks/NuGet Source/MSBuild.Community.Tasks/Tfs pwelter34 Paul Welter 2011-11-16 21:12:19 PST
Messages per page: