Changeset 7573 for lang/powershell
- Timestamp:
- 03/06/08 19:27:52 (9 months ago)
- Location:
- lang/powershell/PSCustomProviders/trunk
- Files:
-
- 10 added
- 11 modified
-
buildfile/Dotnet.Commons.build (modified) (1 diff)
-
buildfile/Dotnet.PowerShell.PS2ch.build (modified) (2 diffs)
-
buildfile/Dotnet.PowerShell.PSTodo.build (modified) (2 diffs)
-
buildfile/Dotnet.PowerShell.PSWeb.build (modified) (2 diffs)
-
src/Dotnet.PowerShell.PS2ch.Test/Dotnet.PowerShell.PS2ch.Test.2005.csproj (modified) (3 diffs)
-
src/Dotnet.PowerShell.PS2ch.Test/Dotnet.PowerShell.PS2ch.Test.2005.csproj.user (modified) (1 diff)
-
src/Dotnet.PowerShell.PS2ch.Test/PS2ch/PS2chProvider_Test.cs (added)
-
src/Dotnet.PowerShell.PSTodo.Test/Dotnet.PowerShell.PSTodo.Test.2005.csproj (modified) (4 diffs)
-
src/Dotnet.PowerShell.PSTodo.Test/Dotnet.PowerShell.PSTodo.Test.2005.csproj.user (modified) (1 diff)
-
src/Dotnet.PowerShell.PSTodo.Test/PSTodo/PSTodoProvider_Test.cs (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-2 (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-2/100 (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-2/200 (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-2/300 (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-3 (added)
-
src/Dotnet.PowerShell.PSTodo.Test/TestData/case-3/100 (added)
-
src/Dotnet.PowerShell.PSTodo/PSTodo/PSTodoProvider.cs (modified) (4 diffs)
-
src/Dotnet.PowerShell.PSWeb.Test/Dotnet.PowerShell.PSWeb.Test.2005.csproj (modified) (3 diffs)
-
src/Dotnet.PowerShell.PSWeb.Test/Dotnet.PowerShell.PSWeb.Test.2005.csproj.user (modified) (1 diff)
-
src/Dotnet.PowerShell.PSWeb.Test/PSWeb/PSWebProvider_Test.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/powershell/PSCustomProviders/trunk/buildfile/Dotnet.Commons.build
r7518 r7573 71 71 72 72 <target name="uninstall" description="���W���[������C���X�g�[�����܂�"> 73 <exec program="${ installutil}" commandline='/u /AssemblyName ${assembly.name}'/>73 <exec program="${gacutil}" commandline="/u ${project::get-name()}" /> 74 74 </target> 75 75 -
lang/powershell/PSCustomProviders/trunk/buildfile/Dotnet.PowerShell.PS2ch.build
r7518 r7573 20 20 --> 21 21 <project xmlns="http://nant.sf.net/release/0.85/nant.xsd" 22 name="Dotnet.PowerShell.PS2ch" default="build" basedir=". ./">22 name="Dotnet.PowerShell.PS2ch" default="build" basedir="."> 23 23 24 24 <!-- �t���[�����[�N�̃o�[�W���� --> … … 28 28 29 29 <!-- �\�[�X�f�B���N�g�� --> 30 <property name="src.dir" value=" src/${project.name}/" />30 <property name="src.dir" value="../src/${project.name}/" /> 31 31 <!-- �r���h�̎� --> 32 32 <property name="configuration" value="Release" /> 33 33 34 34 <!-- �o�̓t�@�C�� --> 35 <property name="out.file" value="bin/${framework.ver}/${project.name}.dll" /> 35 <property name="out.file" value="${project::get-base-directory()}/../bin/${framework.ver}/${project.name}.dll" /> 36 <!-- �A�Z���u���̃o�[�W���� --> 37 <property name="assembly.ver" 38 value="${assemblyname::get-version(assemblyname::get-assembly-name(out.file))}" 39 /> 36 40 <!-- �A�Z���u���̊��S�����> 37 41 <property name="assembly.name" 38 value='"${project.name}, culture=neutral, publicKeyToken=200752680b8732ac, version= 0.1.0.0"'42 value='"${project.name}, culture=neutral, publicKeyToken=200752680b8732ac, version=${assembly.ver}"' 39 43 /> 40 44 -
lang/powershell/PSCustomProviders/trunk/buildfile/Dotnet.PowerShell.PSTodo.build
r7518 r7573 20 20 --> 21 21 <project xmlns="http://nant.sf.net/release/0.85/nant.xsd" 22 name="Dotnet.PowerShell.PSTodo" default="build" basedir=". ./">22 name="Dotnet.PowerShell.PSTodo" default="build" basedir="."> 23 23 24 24 <!-- �t���[�����[�N�̃o�[�W���� --> … … 28 28 29 29 <!-- �\�[�X�f�B���N�g�� --> 30 <property name="src.dir" value=" src/${project.name}/" />30 <property name="src.dir" value="../src/${project.name}/" /> 31 31 <!-- �r���h�̎� --> 32 32 <property name="configuration" value="Release" /> 33 33 34 34 <!-- �o�̓t�@�C�� --> 35 <property name="out.file" value="bin/${framework.ver}/${project.name}.dll" /> 35 <property name="out.file" value="${project::get-base-directory()}/../bin/${framework.ver}/${project.name}.dll" /> 36 <!-- �A�Z���u���̃o�[�W���� --> 37 <property name="assembly.ver" 38 value="${assemblyname::get-version(assemblyname::get-assembly-name(out.file))}" 39 /> 36 40 <!-- �A�Z���u���̊��S�����> 37 41 <property name="assembly.name" 38 value='"${project.name}, culture=neutral, publicKeyToken=00e182375cf5cfbd, version= 0.1.0.0"'42 value='"${project.name}, culture=neutral, publicKeyToken=00e182375cf5cfbd, version=${assembly.ver}"' 39 43 /> 40 44 -
lang/powershell/PSCustomProviders/trunk/buildfile/Dotnet.PowerShell.PSWeb.build
r7518 r7573 20 20 --> 21 21 <project xmlns="http://nant.sf.net/release/0.85/nant.xsd" 22 name="Dotnet.PowerShell.PSWeb" default="build" basedir=". ./">22 name="Dotnet.PowerShell.PSWeb" default="build" basedir="."> 23 23 24 24 <!-- �t���[�����[�N�̃o�[�W���� --> … … 28 28 29 29 <!-- �\�[�X�f�B���N�g�� --> 30 <property name="src.dir" value=" src/${project.name}/" />30 <property name="src.dir" value="../src/${project.name}/" /> 31 31 <!-- �r���h�̎� --> 32 32 <property name="configuration" value="Release" /> 33 33 34 34 <!-- �o�̓t�@�C�� --> 35 <property name="out.file" value="bin/${framework.ver}/${project.name}.dll" /> 35 <property name="out.file" value="${project::get-base-directory()}/../bin/${framework.ver}/${project.name}.dll" /> 36 <!-- �A�Z���u���̃o�[�W���� --> 37 <property name="assembly.ver" 38 value="${assemblyname::get-version(assemblyname::get-assembly-name(out.file))}" 39 /> 36 40 <!-- �A�Z���u���̊��S�����> 37 41 <property name="assembly.name" 38 value='"${project.name}, culture=neutral, publicKeyToken=bc1dc95732bd0319, version= 0.1.0.0"'42 value='"${project.name}, culture=neutral, publicKeyToken=bc1dc95732bd0319, version=${assembly.ver}"' 39 43 /> 40 44 41 45 <!-- MSBuild�c�[���̃p�X�iVS2005�p�j --> 42 46 <property name="msbuild" value="${environment::get-variable('windir')}\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe" /> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PS2ch.Test/Dotnet.PowerShell.PS2ch.Test.2005.csproj
r7503 r7573 19 19 <ErrorReport>prompt</ErrorReport> 20 20 <WarningLevel>4</WarningLevel> 21 <UseVSHostingProcess>false</UseVSHostingProcess> 21 22 </PropertyGroup> 22 23 <ItemGroup> … … 26 27 </Reference> 27 28 <Reference Include="System" /> 29 <Reference Include="System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> 30 <SpecificVersion>False</SpecificVersion> 31 <HintPath>..\..\lib\net-2.0\System.Management.Automation.dll</HintPath> 32 </Reference> 28 33 </ItemGroup> 29 34 <ItemGroup> 30 35 <Compile Include="AssemblyInfo.cs" /> 36 <Compile Include="PS2ch\PS2chProvider_Test.cs" /> 31 37 </ItemGroup> 32 38 <ItemGroup> … … 41 47 <ItemGroup> 42 48 <Folder Include="Properties\" /> 43 <Folder Include="PS2ch\" />44 49 </ItemGroup> 45 50 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PS2ch.Test/Dotnet.PowerShell.PS2ch.Test.2005.csproj.user
r7503 r7573 1 1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 2 2 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 3 <StartAction>Program</StartAction> 4 <StartProgram>C:\user\local\src\CodeRepos\PSCustomProviders\lib\net-2.0\nunit\nunit.exe</StartProgram> 5 <StartArguments>Dotnet.PowerShell.PS2ch.Test.dll</StartArguments> 3 <StartAction>Project</StartAction> 4 <StartProgram> 5 </StartProgram> 6 <StartArguments> 7 </StartArguments> 6 8 </PropertyGroup> 7 9 <PropertyGroup> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PSTodo.Test/Dotnet.PowerShell.PSTodo.Test.2005.csproj
r7503 r7573 19 19 <ErrorReport>prompt</ErrorReport> 20 20 <WarningLevel>4</WarningLevel> 21 <UseVSHostingProcess>false</UseVSHostingProcess> 21 22 </PropertyGroup> 22 23 <ItemGroup> … … 33 34 <ItemGroup> 34 35 <Compile Include="AssemblyInfo.cs" /> 36 <Compile Include="PSTodo\PSTodoProvider_Test.cs" /> 35 37 </ItemGroup> 36 38 <ItemGroup> 39 <None Include="TestData\case-2\100" /> 40 <None Include="TestData\case-2\200" /> 41 <None Include="TestData\case-2\300" /> 42 <None Include="TestData\case-3\100" /> 37 43 <None Include="UnitTest.2005.nunit" /> 38 44 </ItemGroup> … … 45 51 <ItemGroup> 46 52 <Folder Include="Properties\" /> 47 <Folder Include=" PSTodo\" />53 <Folder Include="TestData\case-1\" /> 48 54 </ItemGroup> 49 55 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> … … 55 61 </Target> 56 62 --> 63 <PropertyGroup> 64 <PreBuildEvent>rmdir /S /Q "$(TargetDir)TestData" 65 66 mkdir "$(TargetDir)TestData" 67 xcopy /E /Y /Q "$(ProjectDir)TestData" "$(TargetDir)TestData"</PreBuildEvent> 68 </PropertyGroup> 57 69 </Project> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PSTodo.Test/Dotnet.PowerShell.PSTodo.Test.2005.csproj.user
r7503 r7573 1 1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 2 2 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 3 <StartAction>Program</StartAction> 4 <StartProgram>C:\user\local\src\CodeRepos\PSCustomProviders\lib\net-2.0\nunit\nunit.exe</StartProgram> 5 <StartArguments>Dotnet.PowerShell.PSTodo.Test.dll</StartArguments> 3 <StartAction>Project</StartAction> 4 <StartProgram> 5 </StartProgram> 6 <StartArguments> 7 </StartArguments> 6 8 </PropertyGroup> 7 9 <PropertyGroup> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PSTodo/PSTodo/PSTodoProvider.cs
r7503 r7573 91 91 protected override Collection<PSDriveInfo> InitializeDefaultDrives() { 92 92 string rootPath = Path.Combine( 93 Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), " Dotnet.PowerShell.PSTodo"93 Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "PSTodo" 94 94 ); 95 Directory.CreateDirectory(rootPath);96 97 95 Collection<PSDriveInfo> driveInfos = new Collection<PSDriveInfo>(); 98 96 driveInfos.Add( … … 100 98 ); 101 99 return driveInfos; 100 } 101 102 /// <summary> 103 /// <see cref="DriveCmdletProvider.NewDrive(PSDriveInfo)"/> 104 /// </summary> 105 /// <param name="drive"></param> 106 /// <returns></returns> 107 protected override PSDriveInfo NewDrive(PSDriveInfo drive) { 108 Directory.CreateDirectory(drive.Root); 109 110 return base.NewDrive(drive); 102 111 } 103 112 … … 109 118 protected override void GetChildItems(string path, bool recurse) { 110 119 foreach(string fileName in Directory.GetFiles(path)) { 120 if(base.Stopping) return; 121 111 122 WriteItemObject( 112 123 Deserialize(fileName), fileName, false … … 130 141 /// <returns></returns> 131 142 protected override bool ItemExists(string path) { 132 return true;143 return File.Exists(path); 133 144 } 134 145 -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PSWeb.Test/Dotnet.PowerShell.PSWeb.Test.2005.csproj
r7503 r7573 19 19 <ErrorReport>prompt</ErrorReport> 20 20 <WarningLevel>4</WarningLevel> 21 <UseVSHostingProcess>false</UseVSHostingProcess> 21 22 </PropertyGroup> 22 23 <ItemGroup> … … 26 27 </Reference> 27 28 <Reference Include="System" /> 29 <Reference Include="System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> 30 <SpecificVersion>False</SpecificVersion> 31 <HintPath>..\..\lib\net-2.0\System.Management.Automation.dll</HintPath> 32 </Reference> 28 33 </ItemGroup> 29 34 <ItemGroup> 30 35 <Compile Include="AssemblyInfo.cs" /> 36 <Compile Include="PSWeb\PSWebProvider_Test.cs" /> 31 37 </ItemGroup> 32 38 <ItemGroup> … … 41 47 <ItemGroup> 42 48 <Folder Include="Properties\" /> 43 <Folder Include="PSWeb\" />44 49 </ItemGroup> 45 50 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
lang/powershell/PSCustomProviders/trunk/src/Dotnet.PowerShell.PSWeb.Test/Dotnet.PowerShell.PSWeb.Test.2005.csproj.user
r7503 r7573 1 1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 2 2 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 3 <StartAction>Program</StartAction> 4 <StartProgram>C:\user\local\src\CodeRepos\PSCustomProviders\lib\net-2.0\nunit\nunit.exe</StartProgram> 5 <StartArguments>Dotnet.PowerShell.PSWeb.Test.dll</StartArguments> 3 <StartAction>Project</StartAction> 4 <StartProgram> 5 </StartProgram> 6 <StartArguments> 7 </StartArguments> 6 8 </PropertyGroup> 7 9 <PropertyGroup>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)