Getting directory listing from SVN for use in ANT dropdown

前端 未结 1 640
南笙
南笙 2020-12-19 18:12

I\'ve done some Googling on this but I can\'t seem to find anything along the lines of what I\'m needing.

I\'m using ANTForms for the GUI on our deployment. Develope

1条回答
  •  情歌与酒
    2020-12-19 18:42

    Rather than trying to build something in Java why not generate your ANTForm configuration file using XLST, based on the XML output produced by the standard subversion client:

    svn list --xml http://svn.apache.org/repos/asf/ant/ivy/core/tags > releases.xml
    

    Produces the following releases.xml file (I've edited it for clarity):

    
    
      
        
          1.4.1
          ..
        
        
          2.0.0
          ..
        
      
    
    

    Example

    Example is comprised of two files

    • genGUI.xml
    • genGUI.xsl

    Run as follows:

    ant -f genGUI.xml
    

    genGUI.xml

    
    
        
        
        
        
        
    
        
            
        
    
        
            
                
            
        
    
        
            
        
    
        
            
        
    
        
            
        
    
    
    

    genGUI.xsl

    
    
        
    
        ${env.ANTFORM_HOME}
    
        
            
    
                
    
                
                    
                
    
                
                    
    
                    
                        
                        
                    
                
    
            
        
    
        
            

    0 讨论(0)
提交回复
热议问题