What's the difference between a nested path and fileset?

后端 未结 2 516
南笙
南笙 2021-02-08 11:58

I have been googling for the \"Differences between fileset and path\" article for some time, but have found nothing useful. For example, what is the difference between the follo

2条回答
  •  离开以前
    2021-02-08 12:50

    They are used in different situations.

    fileset is used to specify a group of files. You can use selectors and patternsets to get only the files you want.

    classpath is used to specify classpath references. classpath can be specified with a single jar (location="..."), a ; or : separated list of jars (path="...") or with nested resource collections (like fileset).

    Also if you want to debug them, it is different:

    
    

    vs

    
    
    

    As for your scripts,

    
        
    
    

    I did not test it but according to the documentation path= expects a ; or : separated list of jars. This is not the same as your second example.

提交回复
热议问题