Bug 214204 Only document content in document folder should be removed.[0601]
Description: Only document related content in document folder should be removed. Build number:2.3.0.v20080103 Steps to reproduce: 1. Deploy BIRT. 2. Edit web.xml to set BIRT_VIEWER_DOCUMENT_FOLDER to your local path and there are content inside the path. 3. Start server and click View Example to preview sample report. Expected result: Only content created by viewer should be removed in specified document folder. Actual result: All contents are deleted despite whether they are related with BIRT. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
boolean isDesigner = false;
		if ( "true".equalsIgnoreCase( System.getProperty( IBirtConstants.SYS_PROP_BIRT_ISDESIGNER ) ) ) 
			isDesigner = true;
		String workingPath = "${" + IBirtConstants.SYS_PROP_WORKING_PATH + "}/"; 
		
		workingFolder = processWorkingFolder( context, context
				.getInitParameter( INIT_PARAM_WORKING_DIR ) );
		
		String initDocumentFolder = context
				.getInitParameter( INIT_PARAM_DOCUMENT_FOLDER );
		if ( isDesigner && initDocumentFolder == null )
			initDocumentFolder = workingPath
					+ IBirtConstants.DEFAULT_DOCUMENT_FOLDER;
		documentFolder = processRealPath( context, initDocumentFolder,
				IBirtConstants.DEFAULT_DOCUMENT_FOLDER, true );
		
		String initImageFolder = context
				.getInitParameter( ParameterAccessor.INIT_PARAM_IMAGE_DIR );
		if ( isDesigner && initImageFolder == null )
			initImageFolder = workingPath + IBirtConstants.DEFAULT_IMAGE_FOLDER;
		imageFolder = processRealPath( context, initImageFolder,
				IBirtConstants.DEFAULT_IMAGE_FOLDER, true );
		
		String initLogFolder = context
				.getInitParameter( ParameterAccessor.INIT_PARAM_LOG_DIR );
		if ( isDesigner && initLogFolder == null )
			initLogFolder = workingPath + IBirtConstants.DEFAULT_LOGS_FOLDER;
		logFolder = processRealPath( context, initLogFolder,
				IBirtConstants.DEFAULT_LOGS_FOLDER, true );