ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Bailliez" <sbaill...@apache.org>
Subject Re: [PATCH] Path creation with elements specifed in an external file
Date Sat, 09 Feb 2002 18:10:34 GMT
----- Original Message -----
From: "Jason van Zyl" <jvanzyl@apache.org>

Hi Jason, nice to see you around :-)

> -> Localize JAR dependencies to a single location. Right now this is a
> simple text file that I generate from the Gump project descriptors but
> eventually I would like to use the project descriptors in a more direct
> way.

Same. What I have at work is a system similar to yours but less elaborated.

I have a lib.properties that is included by each project in its build file.
and that gives property names to third party. so that no one really knows
where are the thirdparty but the basedir, something like:
<property name="lib.dir" location="the-path-where-is-lib.properties"/>
<property file="${lib.dir}/lib.properties"/>

and in the lib.properties:
xalan.jar=${lib.dir}/xalan/xalanj/xalan2/lib/xaland11..jar

so that no ones know what is the real name and location of xalan, it makes
it very easy to upgrade it, all I have to do is change the lib.properties
people won't notice in the next label.

I have a gump descriptor per third party or project in its directory
(previously it was set up in a central place like Sam does but it does not
work well since we have to maintain both buildfile and gump descriptor in
different places and it is a pain to label each of them.)
However the system I have does not manage dependencies and is maintain by
hand so I duplicate the path in the lib.properties and gump.xml descriptor,
I thought about generating the lib.properties, so I'm glad you're into it
:-)

>    <path
>      id="classpath"
>      dir="${lib.repo}"
>      pathlist="deps.list"
>    />

mm.. I understand your point but the couple dir/pathlist is bothering me a
little bit, but I guess we don't have much choice.
I would not like people to confuse 'dir' with a directory path as with
'location'

And it has to be available in a pathelement too, something like:
<path id="classpath">
    <pathlelement basedir="" pathlistfile=""/>
</path>

basedir being optional and overriding the project basedir to resolve files.
but again I have to use a 'file' name...damn, confusing. maybe
'pathlistfile', or creating a new element for these kind of use, I'm curious
to see how we can a path to plug gump descriptors directly and we probably
have to think about that or use
a new datatype

Thoughts ?

Stephane


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message