jbackup/src/main/java/org/jbundle/jbackup/destination/FilesystemDestination.java
public void initTransfer(Properties properties)
	{
		super.initTransfer(properties);
		m_strPathname = properties.getProperty(DEST_ROOT_PATHNAME_PARAM);
		if ((m_strPathname == null)
			|| (m_strPathname.length() == 0))
				m_strPathname = "";		// No prefix
		else if ((m_strPathname.lastIndexOf(System.getProperties().getProperty("file.separator")) != m_strPathname.length() - 1)
			&& (m_strPathname.lastIndexOf('/') != m_strPathname.length() - 1))
				m_strPathname += System.getProperties().getProperty("file.separator");	// Must end in a path separator
	}
public void initTransfer(Properties properties)
	{
		super.initTransfer(properties);
		m_strPathname = properties.getProperty(DEST_ROOT_PATHNAME_PARAM);
		if ((m_strPathname == null)
			|| (m_strPathname.length() == 0))
				m_strPathname = "";		// No prefix
		else if ((m_strPathname.lastIndexOf(System.getProperties().getProperty("file.separator")) != m_strPathname.length() - 1)
			&& (m_strPathname.lastIndexOf('/') != m_strPathname.length() - 1))
				m_strPathname += System.getProperties().getProperty("file.separator");	// Must end in a path separator
	}
public void initTransfer ( Properties properties ) { super . initTransfer ( properties ) ; m_strPathname = properties . getProperty ( DEST_ROOT_PATHNAME_PARAM ) ; if ( ( m_strPathname == null ) || ( m_strPathname . length ( ) == 0 ) ) m_strPathname = "" ; // No prefix else if ( ( m_strPathname . lastIndexOf ( System . getProperties ( ) . getProperty ( "file.separator" ) ) != m_strPathname . length ( ) - 1 ) && ( m_strPathname . lastIndexOf ( ' ' ) != m_strPathname . length ( ) - 1 ) ) m_strPathname += System . getProperties ( ) . getProperty ( "file.separator" ) ; // Must end in a path separator }
/*
Set up everything to start processing
/ * Set up everything to start processing