Output several timestamps in ant

前端 未结 5 1436
温柔的废话
温柔的废话 2020-12-15 18:53

The Ant buildfile snippet below is an attempt to simply output the time before and after each sql script is run. I cannot change the structure of the Ant targets (create-ta

5条回答
  •  盖世英雄少女心
    2020-12-15 19:42

    Update: You can use an antcall to invoke a task, and create/echo a new timestamp within the scope of that call.

    This example shows how to pass a message to the call and echo the current timestamp with a message:

    
      
        
      
    
            
    
    
    
      
        
      
    
      
    
      
        
      
    
    

    The output when this is run is:

    test:
    
    timestamp2:
         [echo] hello 09/24/2009 05:33:22 PM
    
    timestamp2:
         [echo] world 09/24/2009 05:33:24 PM
    

提交回复
热议问题