ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Solonchuk <>
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 name="test">
     <echo message="target 'test' in import-test progect" />

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

I have output
Buildfile: import.xml
     [echo] In main
     [echo] target 'test' in import-test progect
     [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:
For additional commands, e-mail:

View raw message