You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Michael Rimov <ri...@centercomp.com> on 2006/05/11 15:14:01 UTC

Maven Jetty Integration

Hi All!

 

Since it didn't look like the maven 1 plugin was supporting Jetty, I tried
adding to the integration plugin.jelly:

 

<j:if test="${context.getVariable('cactus.home.jetty5x') != null}">

     <ant:mkdir dir="${cactus.reports.dir}/jetty5x"/>

   </j:if>

 

And

 

<jetty5x if="cactus.home.jetty5x" port="${cactus.port}"

                        ="${cactus.home.jetty5x}"
output="${cactus.reports.dir}/jetty5x.out"

                        ="${cactus.reports.dir}/jetty5x"

           jvmArgs="${cactus.jetty5x.jvmArgs}">

 

         <j:if test="${context.getVariable('cactus.tmp.dir') != null}">

           <ant:setProperty name="tmpdir" value="${cactus.tmp.dir}"/>

         </j:if>    

         <j:if test="${context.getVariable('cactus.jetty5x.config') !=
null}">

           <ant:setProperty name="serverxml"
value="${cactus.jetty5x.config}"/>

         </j:if> 

         <j:if test="${context.getVariable('cactus.jetty5x.tmpdir') !=
null}">

           <ant:setProperty name="tmpdir" value="${cactus.jetty5x.tmpdir}"/>

         </j:if>             

         <j:if test="${context.getVariable('cactus.jetty5x.conf.dir') !=
null}">

           <conf dir="${cactus.jetty5x.conf.dir}"

             includes="${cactus.jetty5x.conf.includes}"

             excludes="${cactus.jetty5x.conf.excludes}"/>

         </j:if>            

</jetty5x>

 

It still seemed to ignore the <jetty/> tag.  So I'm assuming that Cargo .5
didn't support Jetty 5?

 

So just to see if a hack would work, I tried dropping the latest cargo
uberjar and ant tasks in the same directory as the plugins.  No dice.  

 

So - I then, feeling rather determined to get this working went to check out
the latest source and see if I could get it going.

 

According to
http://jakarta.apache.org/cactus/integration/maven/cvs-usage.html  I tried
their instructions of pressing enter when asked for a password for the CVS
home and anoncvs user.  I get access denied.

 

Would it take extensive rewriting to get the cargo upgraded to the latest
work and then would it be hard to include Jetty integration like I had used
with the plugin.jelly?  And finally, how can I get the CVS code? ;)

 

Thanks in advance!

 
-Mike