@ Cmd public String prompt ( final String configKey , final String message ) { System . out . print ( resolveProperty ( message ) + " " ) ; //NOSONAR BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ; try { String value = StringUtils . trim ( in . readLine ( ) ) ; config . put ( configKey , value ) ; return value ; // Stream nicht schliessen } catch ( IOException ex ) { throw new IllegalStateException ( ex ) ; } }
Prompts for closure - line input . the input is stored in the configuration under the specified key .