How to rename a folder using Ant?

后端 未结 4 2132
无人及你
无人及你 2021-02-19 18:58

I want to rename my application folder with a time stamp and then unzip a newer version of my app using the same folder name. Using the Ant (move task), it looks like you can mo

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 19:29

    Just spelling out the answer already given, which is correct...

    
        
        
            
        
    
    

    This moves foo to foo-HHMM.

    For example:

    $ find .
    .
    ./build.xml
    ./foo
    ./foo/bar.txt
    $
    $ ant
    Buildfile: C:\tmp\ant\build.xml
    
    move:
    
    BUILD SUCCESSFUL
    Total time: 0 seconds
    $
    $ find .
    .
    ./build.xml
    ./foo-1145
    ./foo-1145/bar.txt
    $
    

提交回复
热议问题