private String readCustomInformation( File applicationDirectory, String prefix, String suffix )
	throws IOException {

		// Prepare the file name
		StringBuilder sb = new StringBuilder();
		sb.append( prefix );
		if( this.locale != null )
			sb.append( "_" + this.locale );

		sb.append( suffix );
		sb.insert( 0, "/" ); //$NON-NLS-1$
		sb.insert( 0, DocConstants.DOC_DIR );

		// Handle usual (doc) and Maven (src/main/doc) cases
		File f = new File( applicationDirectory, sb.toString());
		if( ! f.exists())
			f = new File( f.getParentFile().getParentFile(), sb.toString());

		String result = ""; //$NON-NLS-1$
		if( f.exists())
			result = Utils.readFileContent( f );

		return result;
	}
private String readCustomInformation ( File applicationDirectory , String prefix , String suffix ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; sb . append ( prefix ) ; if ( this . locale != null ) sb . append ( "_" + this . locale ) ; sb . append ( suffix ) ; sb . insert ( 0 , "/" ) ; sb . insert ( 0 , DocConstants . DOC_DIR ) ; File f = new File ( applicationDirectory , sb . toString ( ) ) ; if ( ! f . exists ( ) ) f = new File ( f . getParentFile ( ) . getParentFile ( ) , sb . toString ( ) ) ; String result = "" ; if ( f . exists ( ) ) result = Utils . readFileContent ( f ) ; return result ; }
Reads user-specified information from the project.
@param applicationDirectory the application's directory
@param prefix the prefix name
@param suffix the file's suffix (see the DocConstants interface)
@return the read information, as a string (never null)
@throws IOException if the file could not be read