Added environment variable expansion to the command line handling of desktop actions, plus the special '%AlfrescoDir%' token for the

current working directory path (from the client side).
Updated sample commandline test action to use '%SystemRoot%\Notepad.exe'.
Added lock check to check out action code to give more meaningful error message.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3689 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-09-05 10:04:44 +00:00
parent c905a09f4b
commit c8ed7691e0
6 changed files with 211 additions and 39 deletions

View File

@@ -30,14 +30,14 @@
using namespace Alfresco;
// CCAlfrescoAppApp:
// CAlfrescoApp:
// See CAlfrescoApp.cpp for the implementation of this class
//
class CCAlfrescoAppApp : public CWinApp
class CAlfrescoApp : public CWinApp
{
public:
CCAlfrescoAppApp();
CAlfrescoApp();
// Overrides
public:
@@ -59,6 +59,11 @@ private:
// Run the action
bool runAction( AlfrescoInterface& alfresco, StringList& pathList, AlfrescoActionInfo& actionInfo);
// Post-process actions, command line launch and browse to URL
bool doCommandLine( AlfrescoInterface& alfresco, const String& cmdLine);
bool doURL( AlfrescoInterface& alfresco, const String& url);
};
extern CCAlfrescoAppApp theApp;
extern CAlfrescoApp theApp;