src/java/fr/jayasoft/ivy/repository/ssh/SshRepository.java
/**
     * fetch the needed file information for a given file (size, last modification time)
     * and report it back in a SshResource
     * @param uri ssh uri for the file to get info for
     * @return SshResource filled with the needed informations
	 * @see fr.jayasoft.ivy.repository.Repository#getResource(java.lang.String)
	 */
fetch the needed file information for a given file (size, last modification time)
and report it back in a SshResource
@param uri ssh uri for the file to get info for
@return SshResource filled with the needed informations
@see fr.jayasoft.ivy.repository.Repository#getResource(java.lang.String)
fetch the needed file information for a given file ( size last modification time ) and report it back in a SshResource @param uri ssh uri for the file to get info for @return SshResource filled with the needed informations @see fr . jayasoft . ivy . repository . Repository#getResource ( java . lang . String )
public SshResource resolveResource(String source) {
		Message.debug("SShRepository:resolveResource called: "+source);
		SshResource result = null;
        Session session = null;
		try {
            session = getSession(source);
            Scp myCopy = new Scp(session);
            Scp.FileInfo fileInfo = myCopy.getFileinfo(new URI(source).getPath());
            result = new SshResource(this,
                                     source,
                                     true,
                                     fileInfo.getLength(),
                                     fileInfo.getLastModified());
        } catch (IOException e) {
            if(session != null)
                releaseSession(session,source);
            result = new SshResource();
        } catch (URISyntaxException e) {
             if(session != null)
                 releaseSession(session,source);
             result = new SshResource();
        } catch (RemoteScpException e) {
            result = new SshResource();
        }
        Message.debug("SShRepository:resolveResource end.");
		return result;
	}
public SshResource resolveResource ( String source ) { Message . debug ( "SShRepository:resolveResource called: " + source ) ; SshResource result = null ; Session session = null ; try { session = getSession ( source ) ; Scp myCopy = new Scp ( session ) ; Scp . FileInfo fileInfo = myCopy . getFileinfo ( new URI ( source ) . getPath ( ) ) ; result = new SshResource ( this , source , true , fileInfo . getLength ( ) , fileInfo . getLastModified ( ) ) ; } catch ( IOException e ) { if ( session != null ) releaseSession ( session , source ) ; result = new SshResource ( ) ; } catch ( URISyntaxException e ) { if ( session != null ) releaseSession ( session , source ) ; result = new SshResource ( ) ; } catch ( RemoteScpException e ) { result = new SshResource ( ) ; } Message . debug ( "SShRepository:resolveResource end." ) ; return result ; }
fetch the needed file information for a given file (size, last modification time)
 and report it back in a SshResource
 @param uri ssh uri for the file to get info for
 @return SshResource filled with the needed informations
 @see fr.jayasoft.ivy.repository.Repository#getResource(java.lang.String)
fetch the needed file information for a given file ( size last modification time ) and report it back in a SshResource @param uri ssh uri for the file to get info for @return SshResource filled with the needed informations @see fr . jayasoft . ivy . repository . Repository#getResource ( java . lang . String )