configure ant for scala

后端 未结 1 1049
执念已碎
执念已碎 2020-12-14 02:49

How do I install the antlib.xml for scala to get ant working?

Right now I encounter the following error when I run ant on a build.xml file that contains

1条回答
  •  暖寄归人
    2020-12-14 03:05

    The antlib.xml is contained in the scala-compiler.jar. You have to put it into your classpath. To define the scalacant task, put the following definition into your ant build file (this is taken form http://www.scala-lang.org/node/98):

    
      
      
        
        
        
      
      
        
          
          
          
          
        
      
    
    

    To use the scalac task, add the attribute depends="init" to your task, e.g.

    
      
    
      
              
        
      
    
    

    I hope, that helps.

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