Skip to content

Commit

Permalink
Merge pull request #12 from Inedo/1.11
Browse files Browse the repository at this point in the history
1.11
  • Loading branch information
rhessinger committed Jun 4, 2021
2 parents 0a5e482 + b46cf3d commit 33523d1
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
namespace Inedo.Extensions.Subversion.Credentials
{
[ScriptAlias("Subversion")]
[DisplayName("Subversion")]
[DisplayName("Subversion (Legacy)")]
[Description("Credentials for Subversion.")]
[PersistFrom("Inedo.BuildMasterExtensions.Subversion.Credentials.SubversionCredentials,Subversion")]
public sealed class SubversionCredentials : ResourceCredentials
[PersistFrom("Inedo.Extensions.Subversion.Credentials.SubversionCredentials,Subversion")]
public sealed class SubversionLegacyCredentials : ResourceCredentials
{
[Required]
[Persistent]
Expand Down
2 changes: 1 addition & 1 deletion Subversion/InedoExtension/ISvnConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static (UsernamePasswordCredentials, SubversionSecureResource) GetCredent
resource = (SubversionSecureResource)SecureResource.TryCreate(config.ResourceName, context);
if (resource == null)
{
var rc = SecureCredentials.TryCreate(config.ResourceName, context) as SubversionCredentials;
var rc = SecureCredentials.TryCreate(config.ResourceName, context) as SubversionLegacyCredentials;
resource = (SubversionSecureResource)rc?.ToSecureResource();
credentials = (UsernamePasswordCredentials)rc?.ToSecureCredentials();
}
Expand Down
121 changes: 15 additions & 106 deletions Subversion/InedoExtension/InedoExtension.csproj
Original file line number Diff line number Diff line change
@@ -1,108 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6BD69568-AA94-449C-AE86-382A4757572B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Inedo.Extensions.Subversion</RootNamespace>
<AssemblyName>Subversion</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RootNamespace>Inedo.Extensions.Subversion</RootNamespace>
<TargetFrameworks>net50;net452</TargetFrameworks>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="Inedo.Agents, Version=46.0.0.0, Culture=neutral, PublicKeyToken=9de986a2f8db80fc, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\Inedo.Agents.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Inedo.Agents.Client, Version=1000.0.0.0, Culture=neutral, PublicKeyToken=9de986a2f8db80fc, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\Inedo.Agents.Client.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Inedo.ExecutionEngine, Version=1000.0.0.0, Culture=neutral, PublicKeyToken=68703f0e52007e75, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\Inedo.ExecutionEngine.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Inedo.SDK, Version=1.7.0.0, Culture=neutral, PublicKeyToken=29fae5dec3001603, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\Inedo.SDK.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="InedoLib, Version=1000.0.0.0, Culture=neutral, PublicKeyToken=112cfb71329714a6, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\InedoLib.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\Newtonsoft.Json.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Inedo.SDK.1.7.0\lib\net452\System.Management.Automation.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Credentials\SubversionSecureResource.cs" />
<Compile Include="Credentials\SubversionCredentials.cs" />
<Compile Include="ISvnConfiguration.cs" />
<Compile Include="Operations\SvnCheckoutOperation.cs" />
<Compile Include="Operations\SvnClient.cs" />
<Compile Include="Operations\SvnDeleteOperation.cs" />
<Compile Include="Operations\SvnCopyOperation.cs" />
<Compile Include="Operations\SvnExportOperation.cs" />
<Compile Include="Operations\SvnOperation.cs" />
<Compile Include="Operations\SvnUpdateOperation.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RemoteMethods.cs" />
<Compile Include="RepositoryMonitors\SvnRepositoryCommit.cs" />
<Compile Include="RepositoryMonitors\SvnRepositoryMonitor.cs" />
<Compile Include="SuggestionProviders\SvnPathBrowser.cs" />
<Compile Include="SvnArgumentBuilder.cs" />
<Compile Include="VariableFunctions\SvnDefaultServerNameVariableFunction.cs" />
<Compile Include="VariableFunctions\SvnExePathVariableFunction.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Licenses\Plink.txt" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<None Include="Licenses\Subversion.txt" />
</ItemGroup>
<ItemGroup>
<Content Include="Resources\plink.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down Expand Up @@ -156,8 +60,13 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>powershell -Command "if ((Test-Path C:\LocalDev\Tools\inedoxpack\inedoxpack.exe) -And (Test-Path C:\LocalDev\BuildMaster\Extensions -PathType Container)) { C:\LocalDev\Tools\inedoxpack\inedoxpack.exe '$(TargetPath)' 'C:\LocalDev\BuildMaster\Extensions\$(TargetName).upack' 0.0.0 }"</PostBuildEvent>
</PropertyGroup>
<ItemGroup >
<PackageReference Include="Inedo.SDK" Version="1.11.0" >
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'net452'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />

</ItemGroup>
</Project>
5 changes: 1 addition & 4 deletions Subversion/InedoExtension/Operations/SvnCheckoutOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Operations;
using Inedo.Extensions.Subversion.SuggestionProviders;
using Inedo.Web;
using Inedo.Web.Plans.ArgumentEditors;

namespace Inedo.Extensions.Subversion.Operations
{
Expand All @@ -27,11 +25,10 @@ public sealed class SvnCheckoutOperation : SvnOperation
[ScriptAlias("SourcePath")]
[DisplayName("Source path")]
[PlaceholderText("Repository root")]
[BrowsablePath(typeof(SvnPathBrowser))]
public string SourcePath { get; set; }
[ScriptAlias("DiskPath")]
[DisplayName("Working copy directory")]
[FilePathEditor]
[FieldEditMode(FieldEditMode.ServerDirectoryPath)]
[PlaceholderText("$WorkingDirectory")]
public string DestinationPath { get; set; }
[Output]
Expand Down
4 changes: 0 additions & 4 deletions Subversion/InedoExtension/Operations/SvnCopyOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Operations;
using Inedo.Extensions.Subversion.SuggestionProviders;
using Inedo.Web;

namespace Inedo.Extensions.Subversion.Operations
{
Expand Down Expand Up @@ -33,12 +31,10 @@ public sealed class SvnCopyOperation : SvnOperation
[Required]
[ScriptAlias("From")]
[DisplayName("From path")]
[BrowsablePath(typeof(SvnPathBrowser))]
public string SourcePath { get; set; }
[Required]
[ScriptAlias("To")]
[DisplayName("To path")]
[BrowsablePath(typeof(SvnPathBrowser))]
public string DestinationPath { get; set; }
[Required]
[ScriptAlias("Message")]
Expand Down
3 changes: 0 additions & 3 deletions Subversion/InedoExtension/Operations/SvnDeleteOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Operations;
using Inedo.Extensions.Subversion.SuggestionProviders;
using Inedo.Web;

namespace Inedo.Extensions.Subversion.Operations
{
Expand All @@ -18,7 +16,6 @@ public sealed class SvnDeleteOperation : SvnOperation
[Required]
[ScriptAlias("Path")]
[DisplayName("File path")]
[BrowsablePath(typeof(SvnPathBrowser))]
public string Path { get; set; }
[Required]
[ScriptAlias("Message")]
Expand Down
6 changes: 2 additions & 4 deletions Subversion/InedoExtension/Operations/SvnExportOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Operations;
using Inedo.Extensions.Subversion.SuggestionProviders;
using Inedo.Web;
using Inedo.Web.Plans.ArgumentEditors;

Expand All @@ -26,12 +25,11 @@ public sealed class SvnExportOperation : SvnOperation
{
[Required]
[ScriptAlias("SourcePath")]
[DisplayName("Source path")]
[BrowsablePath(typeof(SvnPathBrowser))]
[DisplayName("Source path")]
public string SourcePath { get; set; }
[ScriptAlias("DiskPath")]
[DisplayName("Export to directory")]
[FilePathEditor]
[FieldEditMode(FieldEditMode.ServerDirectoryPath)]
[PlaceholderText("$WorkingDirectory")]
public string DestinationPath { get; set; }

Expand Down
3 changes: 2 additions & 1 deletion Subversion/InedoExtension/Operations/SvnUpdateOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Operations;
using Inedo.Web;
using Inedo.Web.Plans.ArgumentEditors;

namespace Inedo.Extensions.Subversion.Operations
Expand All @@ -23,7 +24,7 @@ public sealed class SvnUpdateOperation : SvnOperation
{
[ScriptAlias("DiskPath")]
[DisplayName("Working copy directory")]
[FilePathEditor]
[FieldEditMode(FieldEditMode.ServerDirectoryPath)]
[PlaceholderText("$WorkingDirectory")]
public string DiskPath { get; set; }

Expand Down
86 changes: 0 additions & 86 deletions Subversion/InedoExtension/SuggestionProviders/SvnPathBrowser.cs

This file was deleted.

5 changes: 0 additions & 5 deletions Subversion/InedoExtension/packages.config

This file was deleted.

0 comments on commit 33523d1

Please sign in to comment.