perfsonar-dev - Re: [pS-dev] changes in Ant directory - use of jar repositories
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Roman Lapacz <>
- Cc:
- Subject: Re: [pS-dev] changes in Ant directory - use of jar repositories
- Date: Tue, 08 Aug 2006 16:39:39 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Hi All,
Lookup Service ant scripts on trunk now support jar repository.
Maciej
Roman Lapacz napisaĆ(a):
Hi,
yesterday I made important changes in Ant files. My main goal is to remove jar libraries in lib directory and replace them with Ant script which automatically downloads only those jar files which are needed by the service. RRD MA and SQL MA have stared using this approach and I would like you, developers of other services, to provide similar changes.
In case of SQL MA to download required jars the following command has to be executed:
$PERFSONAR/ant> ant -f libs-download-sqlma.xml libs-sqlma
this will download needed libraries to lib/repository directory.
This is what I had to do for SQL MA (and this is also the instruction which you could use for your services):
- new Ant file libs-download-sqlma.xml in $PERSONAR/ant/ - this file contains references to general targets and service specific targets
- new Ant file sqlma-libs-download-targets.xml in $PERSONAR/ant/sqlma/ - this file contains the list of required libraries (names and versions). Most of required libraries can be downloaded by the Ant script from public server (repository) http://www.ibiblio.org/maven2/ but if needed library is missing there then we can use our library server. I've prepared our library repository on http://wiki.perfsonar.net/services/jar-repository/ and the content of it is also stored in SVN (https://svn.internet2.edu/svn/perfsonar/trunk/jar-repository/). Very important is to use correct names of libraries. They can be found in xml meta files describing libraries, for example:
* in case of Xalan library its config file for version 2.7.0 can be found here:
http://www.ibiblio.org/maven2/xalan/xalan/2.7.0/xalan-2.7.0.pom
value of elements groupId, artifactId and version must be used in Ant script to specify that library
* in case of rrdjtool library its meta file can be found here:
http://wiki.perfsonar.net/services/jar-repository/rrdjtool/rrdjtool/1.0/rrdjtool-1.0.pom
- little different classpath in $PERFSONAR/ant/build-sqlma.xml which now points $PERFSONAR/lib/repository instead of $PERFSONAR/lib
- change of library paths for copy and remove operations while deploying and undeploying the service
I didn't want to harm existing things for your services so I created axis-deploy-targets-2.xml and replaced import statement of axis-deploy-targets with it in $PERFSONAR/ant/build-sqlma.xml. But next week I would like to remove jars from lib directory and old axis-deploy-targets.xml file. Please, prepare your service to use this new library downloading. I hope changes for all services could be completed next week.
If you have any questions please send them to me. I hope Ant files for SQL MA and RRD MA will be good and clear examples for you.
Roman
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
- changes in Ant directory - use of jar repositories, Roman Lapacz, 08/07/2006
- <Possible follow-up(s)>
- changes in Ant directory - use of jar repositories, Roman Lapacz, 08/08/2006
- Re: [pS-dev] changes in Ant directory - use of jar repositories, Maciej Glowiak, 08/08/2006
Archive powered by MHonArc 2.6.16.