-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added /PathList operator that allows the user to provide a newline-delimited text file that contains paths of files or directories to process. - Updated build script to use new certificate, perform cleanup similiar to other projects, and automatically create a zip file. - Updated and signed binaries for 1.9.3.0.
- Loading branch information
1 parent
112d6f6
commit e51588b
Showing
30 changed files
with
131 additions
and
42 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "OperationPathList.h" | ||
#include "InputOutput.h" | ||
#include "Functions.h" | ||
|
||
#include <fstream> | ||
#include <iostream> | ||
#include <locale> | ||
#include <codecvt> | ||
|
||
ClassFactory<OperationPathList> * OperationPathList::RegisteredFactory = | ||
new ClassFactory<OperationPathList>(GetCommand()); | ||
|
||
OperationPathList::OperationPathList(std::queue<std::wstring> & oArgList) : Operation(oArgList) | ||
{ | ||
// exit if there are not enough arguments to parse | ||
std::vector<std::wstring> sSubArgs = ProcessAndCheckArgs(1, oArgList, L"\\0"); | ||
|
||
// open the file | ||
std::wifstream fFile(sSubArgs[0].c_str()); | ||
|
||
// adapt the stream to read windows unicode files | ||
fFile.imbue(std::locale(fFile.getloc(), new std::codecvt_utf8<wchar_t, | ||
0x10ffff, std::consume_header>)); | ||
|
||
// read the file line-by-line | ||
std::wstring sLine; | ||
while (std::getline(fFile, sLine)) | ||
{ | ||
// sometimes a carriage return appears in the input stream so adding | ||
// it here ensures it is stripped from the very end | ||
std::vector<std::wstring> oLineItems = SplitArgs(sLine, L"\r"); | ||
if (oLineItems.size() != 1) | ||
{ | ||
wprintf(L"ERROR: Unable to parse string path list file."); | ||
exit(-1); | ||
} | ||
|
||
// store off the argument | ||
InputOutput::ScanPaths().push_back(oLineItems[0]); | ||
} | ||
|
||
// cleanup | ||
fFile.close(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "Operation.h" | ||
|
||
class OperationPathList : public Operation | ||
{ | ||
private: | ||
|
||
// statics used by command registration utility | ||
static std::wstring GetCommand() { return L"PathList"; } | ||
static ClassFactory<OperationPathList> * RegisteredFactory; | ||
|
||
public: | ||
|
||
// constructors | ||
OperationPathList(std::queue<std::wstring> & oArgList); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#pragma once | ||
|
||
#define VERSION_STRING "1.9.1.0" | ||
#define VERSION_STRING "1.9.3.0" | ||
#define VERSION_COMMA 1,9,3,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters