コード例 #1
0
        static QDirectory copyDllsAndJars(int systemId, bool debug)
        {
            var dirName = "" + systemId;
            var mainDir = DLL_CACHE.directory(new[] { dirName });
            var i       = 0;

            while (mainDir.exists())
            {
                mainDir = DLL_CACHE.directory(new[] { dirName + "-" + i++ });
            }
            copyDirectory(mainDir, Systematic.JAVA_LIB_PARTS, debug);
            copyDirectory(mainDir, Systematic.QRUN_PARTS, debug);
            return(mainDir);
        }
コード例 #2
0
ファイル: PortfolioDaily.cs プロジェクト: TzarIvan/ratel
        static string dateDirectory(QDirectory portfolioDir, DateTime end)
        {
            var result = portfolioDir.directory(new [] { "" + Dates.asLong(jDate(end)), "curves" });

            result.createIfMissing();
            return(result.path());
        }
コード例 #3
0
        static void copyDirectory(QDirectory destination, string[] parts, bool debug)
        {
            var fromParts = new string[parts.Length];

            zeroTo(parts.Length, i => fromParts[i] = debug ? parts[i].Replace("Release", "Debug") : parts[i]);
            var fromDir = Systematic.mainDir().directory(fromParts);
            var toDir   = destination.directory(parts);

            toDir.destroyIfExists();
            fromDir.copy(toDir);
        }