ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Solonchuk <s...@ibis.ua>
Subject import question
Date Mon, 21 Feb 2005 16:23:12 GMT

Hi I've tested <import> for using in my build file and don't
understood some thing

if i have
<project name="import-test" default="main" basedir=".">
  <import file="imported.xml"/>
  <target name="main">
    <echo message="In main"/>
    <antcall target="imported"/>
  </target>
  <target name="test">
     <echo message="target 'test' in import-test progect" />
  </target>
</project>

<project name="imported-test" default="imported" basedir=".">
  <target name="imported" depends="test" >
    <echo message="In imported target" />
  </target>
  <target name="test">
     <echo message="target 'test' in imported-test progect" />
  </target>
</project>

I have output
Buildfile: import.xml
main:
     [echo] In main
test:
     [echo] target 'test' in import-test progect
imported:
     [echo] In imported target


But I need if target name="imported" depends="test" to be executed
"test" from file where demends where declared,... not having
overloading target.

How to do that? or import is simply include and not more?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message