How can I exclude sources in a javac task in ant?

后端 未结 6 1073
予麋鹿
予麋鹿 2021-01-01 18:26

I have the following in my build.xml:


   
            


        
6条回答
  •  误落风尘
    2021-01-01 19:00

    A couple of people suggested using . This didn't work with the way my task was specified. trashgod's answer linked to the sixth example on this page which gave me an idea of how to restructure my task specification.

    It looks like my problem was related to the way I was specifying the source files. Rather than using elements in a , like this:

    
       
       
    
    

    I switched to using a single with a path and then a set of elements, like this:

    
    
    
    

    This appears to be functionally identical, but is compatible with the use of :

    
    

    (Actually, I'm surprised that what was there in the first place worked at all.)

提交回复
热议问题