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 ; }
Reads user - specified information from the project .