How to execute the JAXB compiler from ANT

前端 未结 3 1619
滥情空心
滥情空心 2020-12-16 13:45

I am using JAXB on a project. the attraction of JAXB is that it is bundled with the JDK, I have been to use xjc.exe on the command line to generate the .java files from a sc

3条回答
  •  旧时难觅i
    2020-12-16 14:00

    Here is a helpful link:

    • https://jaxb.java.net/nonav/2.0.2/docs/xjcTask.html

    Java SE 6 does not ship the Ant task (see 7.1.3):

    • https://jaxb.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html

    Essentially they do the following:

    
        
            
            
            
            
            
        
    
    

提交回复
热议问题