Skip to Content.
Sympa Menu

perfsonar-dev - Re: [Fwd: [pS-dev] changes in Ant directory - use of jar repositories]

Subject: perfsonar development work

List archive

Re: [Fwd: [pS-dev] changes in Ant directory - use of jar repositories]


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Loukik Kudarimoti <>, "Jeff W. Boote" <>, ulisses <>, Uros Juvan <>
  • Cc:
  • Subject: Re: [Fwd: [pS-dev] changes in Ant directory - use of jar repositories]
  • Date: Thu, 10 Aug 2006 10:47:32 +0200



Hi, I've made small change which, in case of SQL MA, is removing libs-download-sqlma.xml file and moving its content to build-sqlma.xml file (two import commands). Now to download the libraries required by SQL MA the following command must be executed (-f parameter has changed)

$PERFSONAR/ant> ant -f build-sqlma.xml libs-sqlma

I've made described changes for SQL MA, RRD MA and LS.

Roman



-------- Original Message --------
Subject: [pS-dev] changes in Ant directory - use of jar repositories
Date: Tue, 08 Aug 2006 14:02:07 +0200
From: Roman Lapacz
<>
To:




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










--

// PSNC, Poland
// phone: (+48 61) 858 20 24
// http://www.man.poznan.pl




Archive powered by MHonArc 2.6.16.

Top of Page