Hi!
I'm trying to do an antcall in BeanShell as an alternative to
project.executeTarget("X"). This to be able to pass in parameters.
This is the way I tried to do it:
<script language="beanshell"> <![CDATA[
xyz = project.createTask("CallTarget");
xyz.setTarget("apply.patch_file"); //xyz seems to be null here...
xyz.execute();
}
]]> </script>
I was thinking this should work since this works fine:
echo = project.createTask("echo");
echo.setMessage("Message");
But an exception is thrown:
"file:C:/dev/IMAP_DEV/Tests/build.xml:50: com.ibm.bsf.BSFException: The applicati
on script threw an exception: java.lang.NullPointerException BSF info: <ANT> at
line: 0 column: columnNo
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:143)"
Does anyone know about this or might be able to point me in the right direction?
Thanks!
Jan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>