ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <>
Subject Re: Importing files
Date Fri, 09 Jun 2006 13:05:45 GMT
This is a test I did:

---- jdoc.xm ----
    <target name = "test-echo" depends = "prepare">
        <echo message = "in test-echo"/>

--- build.xml ---
<project  default = "test" xmlns:jplate="">
    <import file = "jdoc.xml"/>

    <target name = "test"  depends = "test-echo">
        <echo  message = "In test"/>

    <target name = "prepare">
        <echo  message = "In prepare"/>

It worked fine for me.  When running against build.xml:

     [echo] In prepare

     [echo] in test-echo

     [echo] In test

Maybe try to use my example in your IDE and see if it works?  I ran my 
test from the command you may want to try to run your 
build.xml from the command line to see if this is some issue with your IDE?


M V Chetan wrote:
> My main project build file(build.xml) is here(shot_1.jpg)
> The other project file is here(shot_2.jpg),
> In the second file where the javadoc doc says it depends on prepare
> eclipse keeps telling me 
> "Target prepare doesn't exist in this project"
> Actually this is just a snippet,in this case javadoc doesn't really have to
> depend on prepare target since prepare is more or less a dummy target i am
> using(at this moment)
> Pls let me know if you find anything wrong with this and how to set it
> right.
> --
> View this message in context:
> Sent from the Ant - Users forum at

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate
Chief Architect JavaPIM

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message