on 11/27/2000 1:12 PM, "Daniel Rall" <[EMAIL PROTECTED]> wrote:
> I would prefer that it was just downloaded by Ant the first time it
> is needed.
>
> Daniel Rall
Hi Daniel,
Until we have a CPAN'ish jar distribution system I don't think that that is
really easily possible.
Here is what I proposed on the ant list to make a system for allowing this
to happen...maybe someone here would like to take on this project?
-------------------------------------------------------------------
What I think would be cool to do is to have a system on jakarta.apache.org
where we allow people to download the .jar files.
I envision something like this:
<http://jakarta.apache.org/jars/allfiles.xml>
Then, in that file is a list of URL's to the .jar files...it could look
something like this (not well thought out):
<product name="Ant" permissionToDistribute="true">
<version="1.2" latest="true">
<file url="http://jakarta.apache.org/jars/files/ant-1.2.jar">
<depends product="Xerces" version="1.2.1"/>
</file>
</version>
<version="1.1" latest="false">
<file url="http://jakarta.apache.org/jars/files/ant-1.1.jar">
<depends product="Xerces" version="1.1"/>
</file>
</version>
</product>
<product name="Xerces" permissionToDistribute="true">
<version="1.2.1" latest="true">
<file url="http://jakarta.apache.org/jars/files/xerces-1.2.1.jar"/>
</version>
<version="1.1" latest="false">
<file url="http://jakarta.apache.org/jars/files/xerces-1.1.jar"/>
</version>
</product>
<product name="JMX" permissionToDistribute="false">
<permission>
Sorry, we do not have permission to distribute this product. You can
download it from here: <insert url> instead.
</permission>
</product>
Then, we could write a simple Ant Task that would grab the file and then
download the appropriate .jar files as needed.
<jpan url="http://jakarta.apache.org/jars/allfiles.xml" product="Ant"
version="latest">
It would then download ant-1.2.jar and xerces-1.2.1.jar.
We could put whatever .jar files we got permission to distribute up there.
If we didn't have permission, then we could have a permission error message
that would tell people where they could download the file from instead.
Note that Ant is a bad example above since there is a catch-22. You can't
download Ant with <jpan> (!CPAN) unless you already have Ant. :-)
So, who volunteers to build such a system? It really shouldn't be that hard
and I think it would be immensely useful.
-jon
--------------------------------------------------------------------
Others also responded. I suggest that you take a look at the archives of the
Ant list for more information.
thanks,
-jon
--
twice of not very much is still a lot more than not very much
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]