Echoing out ant fileset to screen for Debugging

前端 未结 3 1478
無奈伤痛
無奈伤痛 2021-02-01 01:59

I have this:

    
        
            
           


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 02:46

    To debug what files are include in your fileset you can use this example, which prints the contents of a fileset in a readable format:

    
    
    
    
    
        
            
        
    
        
        
        
        ${echo.path.compile}
    
    
    
    

    Output of this is:

    Buildfile: D:\Workspaces\IvyTutorial\de.foo.ant\prettyPrintPath.xml
    print-path-manually:
     [echo] D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-antlr.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bcel.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bsf.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-log4j.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-oro.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-regexp.jar
     [echo] |   |-- D:\Programme\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-resolver.jar
    ....
    

提交回复
热议问题