public void setDestinationPathInRfs(String destinationPathInRfs) {

        String destination;
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(destinationPathInRfs)) {
            destination = null;
        } else {
            destination = destinationPathInRfs.trim();
        }
        if (destination != null) {
            File destinationFolder = new File(destination);
            if (!destinationFolder.exists() || !destinationFolder.isDirectory()) {
                // destination folder does not exist
                throw new CmsIllegalArgumentException(
                    Messages.get().container(Messages.ERR_RFS_DESTINATION_NOT_THERE_1, destination));
            }
            if (!destinationFolder.canWrite()) {
                // destination folder can't be written to
                throw new CmsIllegalArgumentException(
                    Messages.get().container(Messages.ERR_RFS_DESTINATION_NO_WRITE_1, destination));
            }
            destination = destinationFolder.getAbsolutePath();
            if (destination.endsWith(File.separator)) {
                // ensure that the destination folder DOES NOT end with a file separator
                destination = destination.substring(0, destination.length() - 1);
            }
        }
        m_destinationPathInRfs = destination;
    }
public void setDestinationPathInRfs ( String destinationPathInRfs ) { String destination ; if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( destinationPathInRfs ) ) { destination = null ; } else { destination = destinationPathInRfs . trim ( ) ; } if ( destination != null ) { File destinationFolder = new File ( destination ) ; if ( ! destinationFolder . exists ( ) || ! destinationFolder . isDirectory ( ) ) { throw new CmsIllegalArgumentException ( Messages . get ( ) . container ( Messages . ERR_RFS_DESTINATION_NOT_THERE_1 , destination ) ) ; } if ( ! destinationFolder . canWrite ( ) ) { throw new CmsIllegalArgumentException ( Messages . get ( ) . container ( Messages . ERR_RFS_DESTINATION_NO_WRITE_1 , destination ) ) ; } destination = destinationFolder . getAbsolutePath ( ) ; if ( destination . endsWith ( File . separator ) ) { destination = destination . substring ( 0 , destination . length ( ) - 1 ) ; } } m_destinationPathInRfs = destination ; }
Sets the destination path of the synchronization in the "real" file system.<p>

@param destinationPathInRfs the destination path of the synchronization in the "real" file system to set