Use <import> and not <ant>

Peter

On Wed, Mar 5, 2008 at 1:46 PM, Andrew n marshall
<[EMAIL PROTECTED]> wrote:
>
>  Is it possible to define a task in one ant build file, but use it in
>  another?  For example, I want to have a single build file that contains
>  the properties and tasks to download a copy of svnant and define its
>  tasks.  Then I want to call that ant file's define_svn_task target from
>  another file (which works) and call an <svn ../> task, like this:
>
>   <ant antfile="svnant.xml" target="define_svn_task"/><!-- which calls 
> taskdef -->
>   <svn>
>     <checkout url="${cpptasks.svn}" destPath="${cpptasks.dir}" />
>   </svn>
>
>  Thus, I can copy this svnant.xml to several projects and repositories
>  without having to edit out project specific details or dig for svnant
>  attributes like the download URL or install directory.
>
>  When I tried this, the define_svn_task target succeeded, but it "failed
>  to create task or type svn" in the next line.
>
>  Can someone provide an example of how to do this properly?
>
>
>  Anm
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to