@ Override public void execute ( ) throws BuildException { try { String moo = executor . execute ( ) ; if ( this . property != null && this . property . length ( ) > 0 ) { getProject ( ) . setProperty ( this . property , moo ) ; } else { System . out . println ( moo ) ; } } catch ( IllegalStateException ex ) { throw new BuildException ( ex . getMessage ( ) , ex ) ; } }
Run cowsay with the provided attributes .