diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2008-11-26 09:09:30 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2008-11-26 09:09:30 +0300 |
commit | a107f078866716d8224a72ef962fe522efecc718 (patch) | |
tree | c9f2c153e9e3bb4c899253651fc3e5d5836695a9 /mcs/nunit24 | |
parent | 7f3021212d3473fc56128d1d7dfa257ca791c67d (diff) |
2008-11-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* DomainManager.cs: avoid the annoying %temp% directories.
svn path=/trunk/mcs/; revision=120056
Diffstat (limited to 'mcs/nunit24')
-rw-r--r-- | mcs/nunit24/ClientUtilities/util/Services/DomainManager.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mcs/nunit24/ClientUtilities/util/Services/DomainManager.cs b/mcs/nunit24/ClientUtilities/util/Services/DomainManager.cs index a3ad033837b..481579d6ee9 100644 --- a/mcs/nunit24/ClientUtilities/util/Services/DomainManager.cs +++ b/mcs/nunit24/ClientUtilities/util/Services/DomainManager.cs @@ -34,6 +34,13 @@ namespace NUnit.Util shadowCopyPath = Path.Combine( Path.GetTempPath(), @"nunit20\ShadowCopyCache" );
else
shadowCopyPath = Environment.ExpandEnvironmentVariables(shadowCopyPath);
+
+ // FIXME: we know that in the config file we have %temp%...
+ if( shadowCopyPath.IndexOf ( "%temp%\\" ) != -1) {
+ shadowCopyPath = shadowCopyPath.Replace( "%temp%\\", Path.GetTempPath() );
+ if ( Path.DirectorySeparatorChar == '/' )
+ shadowCopyPath = shadowCopyPath.Replace ( '\\', '/' );
+ }
}
return shadowCopyPath;
|