[MOBY-dev] Re: Ant tasks

Martin Senger senger at ebi.ac.uk
Tue Mar 22 11:40:03 UTC 2005


> Something like could exit in an ant build file:
>
   Thanks for your example. I apologize but I strongly oppose it. And I am
sorry that I perhaps have not expressed things clearly. There are two
arguments why your example should not be put, as it was suggested, into
Ant's build.xml (and I am talking about the build.xml distributed in jMoby
CVS; if you talk about your own build.xml somewhere in your local copy of
jMoby, your example is perfectly fine):

   1) The build.xml is a general file that is used by anybody building
jMoby and using jMoby. So it cannot have specific things dealing with a
particular service, such as
<serviceName>PhytoprotGetByAGICode</serviceName>. One *can* have such 
things in an Ant's build.xml if it is defined as a property - and one is 
free to define his/her own properties either on Ant command line, or in a 
local build.properties file. So your example would be something like:

<serviceName>${service.name}</serviceName>

and you have to put into your build.properties file a line:

service.name = PhytoprotGetByAGICode

or you would invoke jMoby Ant by typing:

./build-dev.sh -Dservice.name=PhytoprotGetByAGICode register

But considering how many properties one needs to set, it would be a lot of 
writing - that's what I was talkeing about in my previous mail.

   2) This is not a strong argument - and there may be other opinions on
that - but I feel like this: In jMoby (and AFAIK it is the same within the
perl moby libraries), you are encouraged not to use directly XML requested 
by Moby registry but rather to use an API to access such registry. In 
jMoby case it is a Java API defined in Central.java. Using this, you are 
shared by potential changes in the native (XML-based) Moby API. Therefore, 
I would not recommed to register your services by defining XML at all (not 
only as a part of an Ant's build.xml).

   Cheers,
   Martin

-- 
Martin Senger

EMBL Outstation - Hinxton                Senger at EBI.ac.uk     
European Bioinformatics Institute        Phone: (+44) 1223 494636      
Wellcome Trust Genome Campus             (Switchboard:     494444)
Hinxton                                  Fax  : (+44) 1223 494468
Cambridge CB10 1SD
United Kingdom                           http://industry.ebi.ac.uk/~senger





More information about the MOBY-dev mailing list