MatrixBerryCore
DeploymentMgr.m
Go to the documentation of this file.
1 classdef DeploymentMgr
2  methods
3  function deploy(self,installDir)
4  warning('on','all');
5  %% Set up Java static class path
6  classPathFileName=[installDir,filesep,'javaclasspath.txt'];
7  %
8  javaPathMgr=self.createJavaStaticPathMgr(classPathFileName);
9  javaPathMgr.setUp();
10  %
11  %% Set up Matlab path
12  %
13  repoPath=mxberry.io.PathUtils.rmLastPathParts(installDir,1);
14  rootDirList={repoPath};
15  %
16  mxberry.selfmnt.MatlabPathMgr.setUp(rootDirList);
17  savepath([installDir,filesep,'pathdef.m']);
18  %% Configure logging
20  %% Configure temporary directories
22  end
23  end
24  methods (Access=protected)
25  function javaPathMgr=createJavaStaticPathMgr(~,classPathFileName)
26  javaPathMgr=...
27  mxberry.selfmnt.JavaStaticPathMgr(classPathFileName);
28  end
29  end
30 end
LOG4JCONFIGURATOR simplifies log4j configuration, especially when Parallel Computing Toolbox is used...
function filesep()
TMPDATAMANAGER provides a basic functionality for managing temporary data folders, root folder name is determined automatically.
Definition: TmpDataManager.m:5
static function setRootDir()
static function configureSimply(in logLevel, in varargin)
static function rmLastPathParts(in pathStr, in nPartsToRemove)
RMLASTPATHPARTS removes a specified number of path parts (directory names) starting from the tail...
static function setUp(in rootDirList)