Logo Search packages:      
Sourcecode: gant version File versions

Object org::codehaus::gant::GantMetaClass::processClosure ( final Closure  closure  )  [inline, private]

Execute a Closure only if it hasn't been executed previously. Record the execution if it is executed. Only used for processing a depends call.

closure The Closure to potentially call.
the result of the Closure call, or null if the closure was not called.

Definition at line 71 of file GantMetaClass.java.

References methodsInvoked.

Referenced by processArgument().

    if ( ! methodsInvoked.contains ( closure ) ) {
      methodsInvoked.add ( closure ) ;
      return closure.call ( ) ;
    return null ;

Generated by  Doxygen 1.6.0   Back to index