You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Nicola Ken Barozzi <ni...@apache.org> on 2002/05/25 19:14:32 UTC

Re: would be nice

From: "Hal Hildebrand (web)" <Ha...@hellblazer.com>

> I would love to have <import>.  If nothing else, xml includes really
> suck.

I second this.

Would any committer -1 this (+explanation, please)?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: would be nice

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Nicola Ken Barozzi" <ni...@apache.org>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Saturday, May 25, 2002 11:39 AM
Subject: Re: <import> would be nice

> > xml imports do suck, because they happen too early, you cant go
> >
> > <import-typedefs srcFile="${project.base}/typedefs.xml"/>
>
> Wow wow, this is a "projectlib" kinda thing, it really gets wanting it
even
> more :-D
>
> > I dunno if the syntax of hal is right, but the ability to have
cross-file
> > dependencies is one of the ant2.0 plans.
>
> Now is better ;-)
>
> Any hints on how this can be implemented?
> Calling a special ProjectHelper?

well, importing datatypes and thingys from a subproject would work, we do
need a better alternative than XML includes (one that identifies errors
properly), but avoids crossing over into the 'this is a subroutine call'
drift towards proceduralism.

Ant2.0 actually has more of a vision of cross target dependencies; dunno how
that would look at all, maybe something like (to make up a schema as I go
along):


<target name="deploy">
 <dependencies>
    <depends target="init">
    <depends target="build" file="buildfile3.xml">
 </dependencies>
 </target>


to tell the system that deploy depends on [init, buildfile3.xml::build]

Actually, that double colon notation looks kind of familiar...





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: would be nice

Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: "Steve Loughran" <st...@iseran.com>

> ----- Original Message -----
> From: "Nicola Ken Barozzi" <ni...@apache.org>
> To: "Ant Users List" <an...@jakarta.apache.org>
> Cc: "Ant Developers List" <an...@jakarta.apache.org>
> Sent: Saturday, May 25, 2002 10:14 AM
> Subject: Re: <import> would be nice
>
>
> > From: "Hal Hildebrand (web)" <Ha...@hellblazer.com>
> >
> > > I would love to have <import>.  If nothing else, xml includes really
> > > suck.
> >
> > I second this.
> >
> > Would any committer -1 this (+explanation, please)?
>
> I dont think anyone will; it is after all, one of the ant 2.0 required
> features is to work much better in big multi-file projects. Ant is good in
> that you can do much more in a single file than make, bad in that because
> the need is less, it has done multi-file stuff less well.
>
> xml imports do suck, because they happen too early, you cant go
>
> <import-typedefs srcFile="${project.base}/typedefs.xml"/>

Wow wow, this is a "projectlib" kinda thing, it really gets wanting it even
more :-D

> I dunno if the syntax of hal is right, but the ability to have cross-file
> dependencies is one of the ant2.0 plans.

Now is better ;-)

Any hints on how this can be implemented?
Calling a special ProjectHelper?

It would be tops if it could be done in a task, so that no core changes
would be needed by Ant.

--
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: would be nice

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Nicola Ken Barozzi" <ni...@apache.org>
To: "Ant Users List" <an...@jakarta.apache.org>
Cc: "Ant Developers List" <an...@jakarta.apache.org>
Sent: Saturday, May 25, 2002 10:14 AM
Subject: Re: <import> would be nice


> From: "Hal Hildebrand (web)" <Ha...@hellblazer.com>
>
> > I would love to have <import>.  If nothing else, xml includes really
> > suck.
>
> I second this.
>
> Would any committer -1 this (+explanation, please)?

I dont think anyone will; it is after all, one of the ant 2.0 required
features is to work much better in big multi-file projects. Ant is good in
that you can do much more in a single file than make, bad in that because
the need is less, it has done multi-file stuff less well.

xml imports do suck, because they happen too early, you cant go

<import-typedefs srcFile="${project.base}/typedefs.xml"/>

I dunno if the syntax of hal is right, but the ability to have cross-file
dependencies is one of the ant2.0 plans.

-steve


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>