Exemple #1
0
        private static string CreateTeamDirectory(SystemSettings sysSettings, string teamName, Assignment assignment)
        {
            MoCS.BuildService.Business.FileSystemWrapper fileSystem = new Business.FileSystemWrapper();

            string resultBasePath = ConfigurationManager.AppSettings["ResultBasePath"];

            if (!resultBasePath.EndsWith(@"\"))
            {
                resultBasePath += @"\";
            }


            //prepare processing
            //create a new directory for the basepath
            fileSystem.CreateDirectoryIfNotExists(resultBasePath);

            //create a directory for the assignment
            fileSystem.CreateDirectoryIfNotExists(resultBasePath + assignment.Name);

            string teamDirName       = teamName + "_" + DateTime.Now.ToString("ddMMyyyy_HHmmss");
            string teamSubmitDirName = resultBasePath + assignment.Name + @"\" + teamDirName;

            //create a new directory for the teamsubmit
            fileSystem.CreateDirectory(teamSubmitDirName);

            return(teamSubmitDirName);
        }
Exemple #2
0
        private static string CreateTeamDirectory(SystemSettings sysSettings, string teamName, Assignment assignment)
        {
            MoCS.BuildService.Business.FileSystemWrapper fileSystem = new Business.FileSystemWrapper();

            string resultBasePath = ConfigurationManager.AppSettings["ResultBasePath"];
            if (!resultBasePath.EndsWith(@"\"))
            {
                resultBasePath += @"\";
            }

            //prepare processing
            //create a new directory for the basepath
            fileSystem.CreateDirectoryIfNotExists(resultBasePath);

            //create a directory for the assignment
            fileSystem.CreateDirectoryIfNotExists(resultBasePath + assignment.Name);

            string teamDirName = teamName + "_" + DateTime.Now.ToString("ddMMyyyy_HHmmss");
            string teamSubmitDirName = resultBasePath + assignment.Name + @"\" + teamDirName;
            //create a new directory for the teamsubmit
            fileSystem.CreateDirectory(teamSubmitDirName);

            return teamSubmitDirName;
        }