How to declare an external task for Ant in IDEA?

I want to declare a task to run TestNG tests. I defined a taskdef tag like this

]]>


I also added testng-4.7beta-jdk15.jar to Global Library. But IDEA shows an error: "Cannot resolve symbol 'testng-4.7beta-jdk15.jar'".

How to fix it? Thanks

0
Avatar
Permanently deleted user

Now I can run it. :)

0

请先登录再写评论。