jbackup/src/main/java/org/jbundle/jbackup/destination/DebugDestination.java
public void initTransfer(Properties properties)
	{
		super.initTransfer(properties);
		String strPathname = properties.getProperty(LOG_FILENAME_PARAM);
		if (strPathname != null)
			if (strPathname.length() > 0)
			{
				try {
					FileOutputStream fileOut = new FileOutputStream(strPathname);
					streamOut = new PrintStream(fileOut);
				} catch (FileNotFoundException e) {
					e.printStackTrace();
				}
			}
		if (streamOut == null)
			streamOut = System.out;
		
		String strSelected = properties.getProperty(CALC_FILE_LENGTH_PARAM);
		if (FALSE.equalsIgnoreCase(strSelected))
			getFileLength = false;
		else
			getFileLength = true;
	}
public void initTransfer(Properties properties)
	{
		super.initTransfer(properties);
		String strPathname = properties.getProperty(LOG_FILENAME_PARAM);
		if (strPathname != null)
			if (strPathname.length() > 0)
			{
				try {
					FileOutputStream fileOut = new FileOutputStream(strPathname);
					streamOut = new PrintStream(fileOut);
				} catch (FileNotFoundException e) {
					e.printStackTrace();
				}
			}
		if (streamOut == null)
			streamOut = System.out;
		
		String strSelected = properties.getProperty(CALC_FILE_LENGTH_PARAM);
		if (FALSE.equalsIgnoreCase(strSelected))
			getFileLength = false;
		else
			getFileLength = true;
	}
public void initTransfer ( Properties properties ) { super . initTransfer ( properties ) ; String strPathname = properties . getProperty ( LOG_FILENAME_PARAM ) ; if ( strPathname != null ) if ( strPathname . length ( ) > 0 ) { try { FileOutputStream fileOut = new FileOutputStream ( strPathname ) ; streamOut = new PrintStream ( fileOut ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } } if ( streamOut == null ) streamOut = System . out ; String strSelected = properties . getProperty ( CALC_FILE_LENGTH_PARAM ) ; if ( FALSE . equalsIgnoreCase ( strSelected ) ) getFileLength = false ; else getFileLength = true ; }
/*
Set up everything to start processing
/ * Set up everything to start processing