ant: failed to create task or type

前端 未结 3 1015
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 03:37

(Yes, I\'ve read and played around based on answers to similar questions in this forum and in many others such as JavaRanch--to no avail yet.)

I\'ve created a custom

3条回答
  •  被撕碎了的回忆
    2021-01-04 04:11

    I've struggled with this for two days now. The answer I appear to be getting is implied by http://ant.apache.org/manual/tutorial-writing-tasks.html:

    The <taskdef name="sqlscriptpreprocessor" ...> element must be placed down inside the target that uses it, in this case, mysql-preprocess. I was not doing this. Now, I have:

    
        
        
    
    

    I don't understand why my custom task must be defined in the target element that consumes it, but this is fine by me. I'm not certain this is couched as gracefully as it could be, but it works now.

    I'm sorry for answering my own question; it's happened before once or twice and it seems pretty lame of me. I just hope it helps someone else.

    Thanks for all the replies surrounding this topic in all the forums and posts I read over the last two days.

提交回复
热议问题