ant task to remove files from a jar

后端 未结 6 577
自闭症患者
自闭症患者 2020-12-13 13:45

How to write an ant task that removes files from a previously compiled JAR?

Let\'s say the files in my JAR are:

aaa/bbb/ccc/Class1
aaa/bbb/ccc/Class2         


        
6条回答
  •  悲哀的现实
    2020-12-13 14:16

    Have you tried using the zipfileset task?

    
        
    
    

    For example:

    
    
    
    
    
    
        Removing superfluous files from Java archive.
    
        
            
        
    
        
        
    
    

提交回复
热议问题