Hello
I was trying to use gradle to import an ant build, but it fails to set
properties correct because the ant buildfile has a different basedir than
default.
I used this buildfiles:
<home>/ant/app/test.xml.
<home>/build.gradle
test.xml:
<project name="test" default="test" basedir="../..">
<property name="foo" value="${basedir}/foo"/>
<target name="test">
<echo message="${basedir}"/>
<echo message="${foo}"/>
</target>
</project>
build.gradle:
ant.importBuild 'ant/app/test.xml'
When i run 'grade test' i get this output:
[ant:echo] <home>/ant/app
[ant:echo] <home>/ant/app/foo
Instead of the expected
[ant:echo] <home>
[ant:echo] <home>/foo
I think this is is because org.gradle.api.internal.project.DefaultAntBuilder
assumes that basedir is the directory where the ant-build file is intsead of
reading it.
Regards
Johan Erlands
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email