Jérôme Leroux created EASYANT-65:
------------------------------------
Summary: Error when calling antcall task in module.ant file
Key: EASYANT-65
URL: https://issues.apache.org/jira/browse/EASYANT-65
Project: EasyAnt
Issue Type: Bug
Components: Core
Affects Versions: 0.9
Environment: Linux
Reporter: Jérôme Leroux
Priority: Minor
An error is raised when antcall task is called within the module.ant file
defined above the module.ivy file.
A workaround is to execute the target in another ant context:
* Extract the target that calls antcall in another ant script
* Call this script from module.ant with ant task
Example:
{code:xml}
<target name="testAntCall#build"
extensionOf="abstract-compile:compile-ready">
<echo message="Before AntCall"/>
<antcall target="testAntCall#target"/>
<echo message="After AntCall"/>
</target>
{code}
Error:
{noformat}
testAntCall#build:
[echo] Before AntCall
BUILD FAILED
Dr Myrmex found an error when building TestJavaSimple
* Where
File :
/home/jleroux/Documents/projects/easyant/workspace/tests/build-java/module.ant
Line : 24 column : 41
* Dr Myrmex diagnostic
Error : The following error occurred while executing this line:
Cause : Error :
Cause : easyant.ivy.instance is not a valid ivy instance
{noformat}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)