private void execute ( TransletCommandLine transletCommandLine ) { if ( transletCommandLine . getRequestName ( ) != null ) { try { service . translate ( transletCommandLine , console ) ; } catch ( TransletNotFoundException e ) { console . writeError ( "No command or translet mapped to '" + e . getTransletName ( ) + "'" ) ; } catch ( ConsoleTerminatedException e ) { throw e ; } catch ( Exception e ) { log . error ( "Failed to execute command: " + transletCommandLine . getLineParser ( ) . getCommandLine ( ) , e ) ; } } else { console . writeError ( "No command or translet mapped to '" + transletCommandLine . getLineParser ( ) . getCommandLine ( ) + "'" ) ; } }
Executes a Translet defined in Aspectran .