Bug 122110 Template can't publish to the path which is the same as create path
Details: Template can't publish to the path which is the same as create path Setp: 1.Open a report design and set windows-preferences-template-template folder to c:\test. 2.New a template in c:\test 3.Publish template to template folder Actual result: Template folder can't publish, and this error lead to a new report can't be new, except delete the template Expection result: Even if the template folder path and template create path is the same is wrong, can it pop up a error message to notice user it is wrong handle.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishTemplateAction.java
handle.setProperty( ModuleHandle.DESCRIPTION_PROP,
					page.getDescription( ) );
		if ( !page.getPreviewImagePath( ).equals( "" ) ) 
			handle.setIconFile( page.getPreviewImagePath( ) );
		
		
		handle.save( );
		handle.close( );
	}
	private void copyFile( String in, String out ) throws IOException
	{
		FileInputStream fis = new FileInputStream( in );
		FileOutputStream fos = new FileOutputStream( out );
		byte[] buf = new byte[1024];
		int i = 0;
		while ( ( i = fis.read( buf ) ) != -1 )
		{
			fos.write( buf, 0, i );
		}
		fis.close( );
		fos.close( );
	}
}
/**
 * PublishPage
 * 
 * @deprecated change to
 *             org.eclipse.birt.report.designer.internal.ui.wizards.WizardReportSettingPage
 */
class PublishPage extends WizardPage