Пример #1
0
        public void clear()
        {
            LogUtils.debug("ClearService.clear", "start...");

            DirUtils.del(ClearServicePlugin.DIR_PATH_TMP);

            LogUtils.debug("ClearService.clear", "end...");
        }
Пример #2
0
        public void copy(string strDirPathSolution, List <string> lstNBuildDirName, FileInfo oFileInfoNBuildXML)
        {
            LogUtils.debug("CopyService.copy", "start...");

            foreach (var strNBuildDirName in lstNBuildDirName)
            {
                var strDirPathSrc = CopyServicePlugin.DIR_PATH_NBUILD_DATA(strDirPathSolution, strNBuildDirName);
                var strDirPathDst = CopyServicePlugin.DIR_PATH_DST_PRJ_DATA(oFileInfoNBuildXML, strNBuildDirName);

                DirUtils.del(strDirPathDst);
                FileUtils.xcopy(strDirPathSrc, strDirPathDst);
            }

            LogUtils.debug("CopyService.copy", "end...");
        }
Пример #3
0
        public void copy()
        {
            LogUtils.debug("SuperDocBuilder.CopyService", "start...");

            //1.rmdir
            var strDirPathSrc = CopyServicePlugin.DIR_PATH_SRC;
            var strDirPathDst = CopyServicePlugin.DIR_PATH_DST(MainService.getInstance().m_oConfService.Confs[ConfServicePlugin.PROP_dirPathBase]);

            if (Directory.Exists(strDirPathDst))
            {
                DirUtils.del(strDirPathDst);
            }

            //2.xcopy
            FileUtils.xcopy(strDirPathSrc, strDirPathDst);

            LogUtils.debug("SuperDocBuilder.CopyService", "end...");
        }
Пример #4
0
 public static void test()
 {
     DirUtils.del(@"C:\TestDir");
 }