Beispiel #1
0
 public void config()
 {
     if (!Install_Dir.valid())
     {
         Install_Dir = toolsDir.pathCombine(ToolName);
     }
     if (!Executable.valid() && Executable_Name.valid())
     {
         Executable = Install_Dir.pathCombine(Executable_Name);
     }
     if (!Install_File.valid() && Install_Uri.notNull() && this.Install_Uri.Segments.size() > 0)
     {
         Install_File = Install_Uri.Segments.Last();
     }
 }
Beispiel #2
0
 public bool install_JustDownloadFile_into_TargetDir()
 {
     if (isInstalled())
     {
         return(true);
     }
     if (Executable.valid().isFalse())
     {
         "in install_JustDownloadFile_into_TargetDir for Tool {0} , a valid Executable value must be provided: {1}".error(ToolName, Executable);
         return(false);
     }
     Executable.str().directoryName().createDir();
     Install_Uri.str().download(Executable);
     return(isInstalled());
 }
Beispiel #3
0
 public bool install()
 {
     if (this.isInstalled().isFalse())
     {
         "[API_BlindElephant] Starting Blind Elephant installation process".info();
         Install_Dir.createDir();
         var svnUrl        = Install_Uri.str();
         var targetFolder  = Install_Dir;
         var svnMappedUrls = SvnApi.HttpMode.getSvnMappedUrls(svnUrl, true);
         //return svnMappedUrls;
         foreach (var svnMappedUrl in svnMappedUrls)
         {
             "   * Downloading: {0}".info(WebEncoding.urlDecode(svnMappedUrl.FullPath.Replace(svnUrl, "")));
             SvnApi.HttpMode.download(svnMappedUrl, svnUrl, targetFolder);
         }
         //var fiddlerInstaller = this.installerFile();
     }
     return(BlindElephant_Py.fileExists());
 }