Ant tasks (was: [MOBY-dev] Java packages conversation)

Martin Senger senger at ebi.ac.uk
Tue Mar 22 09:23:53 UTC 2005


> How about some ant tasks that would make registration to the central 
> possible in a build file?
>
   It is surely possible, but Ant is not helpful too much in this case - 
at least I think:
   The registration can be achieved by calling MobyCmdLineClient - and
this can be done perfectly from Ant (Ant task can easily set CLASSPATH and
call a Java application - MobyCmdLineClient is a Java application, of
course). The problem starts with the parameters for this application (and
there may be really *many* parameters for the registration). I have not
find a way how to pass to an Ant target parameters from the Ant's
command-line (let me know please if anybody knows how to do it).  
Therefore, you have to expressed all parameters as Java properties, let
Ant to put them in a file and then feed an application (it can be again a
slightly modified MobyCmdLineClient, here is no problem) from this file. 
So you have to do a lot of writing (setting properties) before you invoke 
Ant - perhaps the same amount but I guess even more than writing a short 
script where you can put all your registration parameters directly.
   That's why I think that Ant is not too helpful for making registration. 
But if people think that it should be there I can make such Ant target.

   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