Has anyone used or written an Ant task to compile (Rhino) JavaScript to Java bytecode?

后端 未结 3 961
北荒
北荒 2020-12-03 00:03

I\'d like to use the Rhino JavaScript compiler to compile some JavaScript to .class bytecode files for use in a project. It seems like this should already exist, since there

3条回答
  •  借酒劲吻你
    2020-12-03 00:56

    Here is a sample build.xml I use for my rhino applications. If you have lots of javascript files you just need to keep adding more tags
    ~:ant compile jar run

    
    
        
        
            
            
            
            
            
            
        
        
            
                
            
        
    
    
        
        
            
            
                
            
        
    
    
        
            
            
        
    
    
    

    ~

提交回复
热议问题