How to integrate ANT custom task?

Is there a way to pass ANT_HOME to IntelliJ? I have to add a couple of custom tasks and putting their jars under ANT/lib resolves the problem if a script runs from a command line. But from IntelliJ? I know a way to add tasks' jars to a project's property but it's very undesirable in our situation.

3 comments
Comment actions Permalink

IMHO,
In ANT script properties, on tab Additional classpath put your task jar into
classpath entries.

Thanks!

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Roman" <rrytov@entopia.com> wrote in message
news:15584126.1061216580433.JavaMail.itn@is.intellij.net...

Is there a way to pass ANT_HOME to IntelliJ? I have to add a couple of

custom tasks and putting their jars under ANT/lib resolves the problem if a
script runs from a command line. But from IntelliJ? I know a way to add
tasks' jars to a project's property but it's very undesirable in our
situation.


0
Comment actions Permalink

Since jars already are added to ANT_HOME\lib ant itself finds them correctly. Adding to ant scripts a path to the jars implies additional requirements on locations of jars/sources. Adding additional classpath to intellij is not possible since I have about 25 projects.

It seems there is no easy way to resolve the problem.

0

Please sign in to leave a comment.