problems with ant

i've come across an annoying ant bug

everything works fine if ant is invoked with build filename specified without full path

C:\prj\myproject\>"C:\program files\Java\jdk1.6.0_16\bin\java" -Dant.home=C:\prj\tools\apache-ant-1.7.1 -classpath "c:\prj\tools\apache-ant-1.7.1\bin\..\lib\ant-launcher.jar" -buildfile build.xml

but build fails if invoking with full path to build file

C:\prj\myproject\>"C:\program files\Java\jdk1.6.0_16\bin\java" -Dant.home=C:\prj\tools\apache-ant-1.7.1 -classpath "c:\prj\tools\apache-ant-1.7.1\bin\..\lib\ant-launcher.jar" -buildfile "C:\prj\myproject\build.xml"

the problem is quite hard to explain (it's when build.xml imports sec.xml and the sec.xml in it's turn imports the build.xml and then in sec.xml variables from the build.xml are no longer being substituted)

unfortunately, IDEA gives ant full path to build.xml
so, the question is how to tell IDEA to pass filename to ant without path?

Please sign in to leave a comment.