targetFile = targetFile + File.separatorChar + designFileName + fileExt;
targetFile = targetFile + File.separatorChar + designFileName + fileExt; File file = new File( targetFile ); if ( !file.getParentFile( ).exists( ) ) { file.getParentFile( ).mkdir( ); }
	protected void checkTargetFileName( )	{		String fileExt = "." + format;		if ( "Run".equalsIgnoreCase( mode ) )		{			fileExt = ".rptdocument";		}		File designFile = new File( new File( source ).getAbsolutePath( ) );		String designFileName = designFile.getName( );		int n = designFileName.lastIndexOf( '.' );		if ( n != -1 )		{			designFileName = designFileName.substring( 0, n );		}		if ( targetFile == null )		{			targetFile = designFile.getParent( ) + File.separatorChar					+ designFileName + fileExt;		}		else if ( !targetFile.toLowerCase( ).endsWith( fileExt ) )		{			targetFile = targetFile + File.separatorChar + designFileName					+ fileExt;		}	}