1 package fr.jayasoft.ivy.resolver; 2 3 import fr.jayasoft.ivy.repository.ssh.SshRepository; 4 5 8 public class SshResolver extends AbstractSshBasedResolver { 9 10 public SshResolver() { 11 setRepository(new SshRepository()); 12 } 13 18 public void setFileSeparator(String sep) { 19 if(sep == null || sep.length() != 1) 20 throw new IllegalArgumentException ("File Separator has to be a single character and not "+sep); 21 ((SshRepository)getRepository()).setFileSeparator(sep.trim().charAt(0)); 22 } 23 24 33 public void setListCommand(String cmd) { 34 ((SshRepository)getRepository()).setListCommand(cmd); 35 } 36 37 46 public void setExistCommand(String cmd) { 47 ((SshRepository)getRepository()).setExistCommand(cmd); 48 } 49 50 58 public void setCreateDirCommand(String cmd) { 59 ((SshRepository)getRepository()).setExistCommand(cmd); 60 } 61 62 public String getTypeName() { 63 return "ssh"; 64 } 65 } 66 | Popular Tags |