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); }
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) { } }
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()); }