Skip to content

Commit

Permalink
fixed search group deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
koechlm committed Jul 26, 2023
1 parent c2bfcc9 commit e6fff28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Deploy/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("C716965C-8440-4490-A9D8-1A4C2C35D056")]

[assembly: AssemblyVersion("2024.0.0.0")]
[assembly: AssemblyFileVersion("2024.0.0.0")]
[assembly: AssemblyVersion("2024.1.0.1")]
[assembly: AssemblyFileVersion("2024.1.0.1")]
15 changes: 14 additions & 1 deletion Thunderdome/DeploymentController/SavedSearchesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,28 @@ public override void SetMoveOperations(string folder, UtilSettings utilSettings)
string serverName = AutodeskPathUtil.GetServerSettingsFolderName(Connection);
string localSettingFolder = AutodeskPathUtil.GetCurrentVaultCommonFolder(Connection, serverName, VaultName);
string searchesPath = Path.Combine(localSettingFolder, FolderSearches);
string filename = null;
foreach (string searchPath in DirectoryUtil.GetFilesOrEmpty(folder))
{
string filename = Path.GetFileName(searchPath);
filename = Path.GetFileName(searchPath);
utilSettings.FileMoveOperations.Add(new FileMove
{
From = searchPath,
To = Path.Combine(searchesPath, filename)
});
}
//add the group settings file
string searchGroupPath = Path.Combine(localSettingFolder, (FolderSearches + '\\' + SearchesGroups));
string grpfolder = Path.Combine(folder, "Groups");
foreach (string searchPath in DirectoryUtil.GetFilesOrEmpty(grpfolder))
{
filename = Path.GetFileName(searchPath);
utilSettings.FileMoveOperations.Add(new FileMove
{
From = searchPath,
To = Path.Combine(searchGroupPath, filename)
});
}
}
catch
{
Expand Down
4 changes: 2 additions & 2 deletions Thunderdome/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("129EBB30-24B6-4635-AE20-46BF10EF3B12")]

[assembly: AssemblyVersion("2024.1.0.0")]
[assembly: AssemblyFileVersion("2024.1.0.0")]
[assembly: AssemblyVersion("2024.1.0.1")]
[assembly: AssemblyFileVersion("2024.1.0.1")]

0 comments on commit e6fff28

Please sign in to comment.