Esempio n. 1
0
        public static string readVersion(GroupDocsComponent component)
        {
            string localPath = getLibaryDownloadPath() + component.get_name() + ".ver";
            string line      = string.Empty;

            try
            {
                return(System.IO.File.ReadAllText(localPath));
            }
            catch (Exception) { }
            return(line);
        }
Esempio n. 2
0
        public static void storeVersion(GroupDocsComponent component)
        {
            string localPath = getLibaryDownloadPath() + component.get_name() + ".ver";

            try
            {
                System.IO.File.WriteAllText(localPath, component.get_latestVersion());
            }
            catch (FileNotFoundException e)
            {
            }
            catch (Exception e)
            {
            }
        }
Esempio n. 3
0
        public void storeReleaseNotes(GroupDocsComponent component)
        {
            string localPath = getLibaryDownloadPath() + component.get_name() + ".htm";

            try
            {
                System.IO.File.WriteAllText(localPath, component.get_changeLog());
            }
            catch (FileNotFoundException e)
            {
            }
            catch (Exception e)
            {
            }
        }
 public static string getLocalRepositoryPath(GroupDocsComponent component)
 {
     return(GroupDocsComponentsManager.getGroupDocsHomePath() + "gitrepos" + "/" + component.get_name());
 }