generate jars with source code using Ant

前端 未结 2 1980
深忆病人
深忆病人 2020-12-24 05:27

I use ant for creating .jar files in Eclipse.

I need to generate jar for my project which also contains source code along with the class file. How do w

2条回答
  •  孤独总比滥情好
    2020-12-24 06:02

    Simply copy the source files into the directory you're using for your jar creation. I've done it like this (notice the copy inside compile):

    
    
    
        
            
            
            
                
            
        
    
        
            
        
    
    

提交回复
热议问题