You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by David Blevins <da...@visi.com> on 2005/11/01 22:54:01 UTC

gbuild: devtools in continuum (was Re: [continuum] BUILD SUCCESSFUL: Geronimo)

On Nov 1, 2005, at 1:33 PM, Sachin Patel wrote:

> Only tricky part is that I depend on Eclipse, and a handful of  
> other Eclipse projects to build.  And I'm usually picking up weekly  
> builds from them to build against.  So is there something that  
> could be set up to be able to upload these external dependencies? I  
> really wish my eclipse dependencies could be downloadable with  
> Maven :)
>

Dunno.  I don't know where they would be uploaded to.  Do you think  
it may be just as easy to download them and install them into the  
maven.local.repo?

I use some goop (a.k.a. jelly) like this in openejb 1 to download  
tomcat into the maven.repo.local.  Something somewhat similar may  
work for you.

     <goal name="setup:tomcat50">
       <j:set var="tomcat.version" value="5.0.28"/>
       <j:set var="tomcat.download" value="http://www.ibiblio.org/pub/ 
mirrors/apache/jakarta/tomcat-5/v${tomcat.version}/bin/jakarta-tomcat- 
${tom\cat.version}.zip"/>
       <attainGoal name="setup:tomcat"/>
     </goal>
     <goal name="setup:tomcat55">
       <j:set var="tomcat.version" value="5.5.9"/>
       <j:set var="tomcat.download" value="http://www.ibiblio.org/pub/ 
mirrors/apache/jakarta/tomcat-5/v${tomcat.version}/bin/jakarta-tomcat- 
${tom\cat.version}.zip"/>
       <attainGoal name="setup:tomcat"/>
     </goal>

     <goal name="setup:tomcat4">
       <j:set var="tomcat.version" value="4.1.31"/>
       <j:set var="tomcat.download" value="http://www.ibiblio.org/pub/ 
mirrors/apache/jakarta/tomcat-4/v4.1.31/bin/jakarta-tomcat-$ 
{tomcat.version\}.zip"/>
       <attainGoal name="setup:tomcat"/>
     </goal>

     <goal name="setup:tomcat">
       <j:set var="targetDir" value="${basedir}/target/"/>

       <j:set var="tomcat.dist" value="${maven.repo.local}/tomcat/ 
distributions/jakarta-tomcat-${tomcat.version}.zip"/>
       <j:set var="tomcat.home" value="${targetDir}/jakarta-tomcat-$ 
{tomcat.version}"/>
       <j:set var="openejb.home" value="${targetDir}/openejb-$ 
{pom.currentVersion}" />

       <!-- Download tomcat if it isn't in the repo -->
       <u:file var="fileAsFile" name="${tomcat.dist}"/>
       <j:if test="${!(fileAsFile.exists())}">
         <mkdir dir="${maven.repo.local}/tomcat/distributions"/>
         <get src="${tomcat.download}" dest="${tomcat.dist}"/>
       </j:if>

       <!-- Unzip if not unzipped -->
       <u:file var="fileAsFile" name="${tomcat.home}"/>
       <j:if test="${!(fileAsFile.exists())}">
         <unjar src="${tomcat.dist}" dest="${targetDir}"/>
         <chmod dir="${tomcat.home}/bin" perm="u+x" includes="**/*.sh"/>
       </j:if>
     </goal>