test/java/fr/jayasoft/ivy/repository/vfs/VfsURI.java
/**
	 * Create a set of valid VFS URIs for the file access protocol
	 * 
	 * @param resourcePath relative path (from the base repo) to the resource to be accessed
	 * @return
	 */
Create a set of valid VFS URIs for the file access protocol

@param resourcePath relative path (from the base repo) to the resource to be accessed
@return
Create a set of valid VFS URIs for the file access protocol @param resourcePath relative path ( from the base repo ) to the resource to be accessed @return
static public VfsURI vfsURIFactory(String scheme, String resource, Ivy ivy) {
		VfsURI vfsURI = null;
		if (scheme.equals(SCHEME_CIFS)) {
			vfsURI = new VfsURI(SCHEME_CIFS, 
					        ivy.getVariable(VfsTestHelper.PROP_VFS_USER_ID), 
					        ivy.getVariable(VfsTestHelper.PROP_VFS_USER_PASSWD),
					        ivy.getVariable(VfsTestHelper.PROP_VFS_HOST),
					        ivy.getVariable(VfsTestHelper.PROP_VFS_SAMBA_REPO) + "/" + resource);
		} else if (scheme.equals(SCHEME_FILE)) {
			vfsURI = new VfsURI(SCHEME_FILE, 
					         null, 
					         null, 
					         null, 
					         VfsTestHelper.CWD + "/" + VfsTestHelper.TEST_REPO_DIR + "/" + resource);
		}  else if (scheme.equals(SCHEME_FTP)) {
			vfsURI = new VfsURI(SCHEME_FTP, 
			        		 ivy.getVariable(VfsTestHelper.PROP_VFS_USER_ID), 
			        		 ivy.getVariable(VfsTestHelper.PROP_VFS_USER_PASSWD),
					         ivy.getVariable(VfsTestHelper.PROP_VFS_HOST),
					         VfsTestHelper.CWD + "/" + VfsTestHelper.TEST_REPO_DIR + "/" + resource);
		} else if (scheme.equals(SCHEME_SFTP)) {			
			vfsURI = new VfsURI(SCHEME_SFTP, 
					      ivy.getVariable(VfsTestHelper.PROP_VFS_USER_ID),
					      ivy.getVariable(VfsTestHelper.PROP_VFS_USER_PASSWD),
					      ivy.getVariable(VfsTestHelper.PROP_VFS_HOST),
					      VfsTestHelper.CWD + "/" + VfsTestHelper.TEST_REPO_DIR + "/" + resource) ;
		}
		return vfsURI;
	}
static public VfsURI vfsURIFactory ( String scheme , String resource , Ivy ivy ) { VfsURI vfsURI = null ; if ( scheme . equals ( SCHEME_CIFS ) ) { vfsURI = new VfsURI ( SCHEME_CIFS , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_ID ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_PASSWD ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_HOST ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_SAMBA_REPO ) + "/" + resource ) ; } else if ( scheme . equals ( SCHEME_FILE ) ) { vfsURI = new VfsURI ( SCHEME_FILE , null , null , null , VfsTestHelper . CWD + "/" + VfsTestHelper . TEST_REPO_DIR + "/" + resource ) ; } else if ( scheme . equals ( SCHEME_FTP ) ) { vfsURI = new VfsURI ( SCHEME_FTP , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_ID ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_PASSWD ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_HOST ) , VfsTestHelper . CWD + "/" + VfsTestHelper . TEST_REPO_DIR + "/" + resource ) ; } else if ( scheme . equals ( SCHEME_SFTP ) ) { vfsURI = new VfsURI ( SCHEME_SFTP , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_ID ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_USER_PASSWD ) , ivy . getVariable ( VfsTestHelper . PROP_VFS_HOST ) , VfsTestHelper . CWD + "/" + VfsTestHelper . TEST_REPO_DIR + "/" + resource ) ; } return vfsURI ; }
Create a set of valid VFS URIs for the file access protocol
Create a set of valid VFS URIs for the file access protocol