You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by cristal <da...@jpmorgan.com> on 2006/05/25 18:20:05 UTC

migrating jelly script from m1 to m2

Hi folks, we have some jelly scripts in maven1's maven.xml. Now we are moving
to maven2. The question is how we are going replicate this customized
behavior in maven2 by knowing that m2 will not use jelly any more?

Please advise. Thanks in advance.

<?xml version="1.0"?>
<project default="cristal:build" 
    xmlns:j="jelly:core"
    xmlns:ant="jelly:ant"
    xmlns:maven="jelly:maven"
    xmlns:x="jelly:xml"
	xmlns:define="jelly:define"
    xmlns:doc="doc"
    xmlns:util="jelly:util"
    xmlns:velocity="jelly:velocity">


  <preGoal name="war:war">
  <j:forEach var="lib" items="${pom.artifacts}">
  <j:set var="dep" value="${lib.dependency}"/>
  <j:if test="${dep.getProperty('jnlp.dependency')=='true'}">
    <j:set var="jarfile" value="${lib.path}"/>
    <j:set var="targetfile"
value="${jnlpbuilder.destJnlpDir}/${dep.artifactId}__Vlatest.jar"/>
    <ant:echo>Signing jar for JNLP ${jarfile}</ant:echo>
    <ant:echo>into ${targetfile}</ant:echo>

    <ant:signjar
         jar="${jarfile}"
         signedjar="${targetfile}"
         alias="${jnlpbuilder.signjar.alias}"
         storepass="${jnlpbuilder.signjar.storepass}"
         keystore="${jnlpbuilder.destJnlpDir}/${jnlpbuilder.signjar.store}"    
         keypass="${jnlpbuilder.signjar.keypass}"
        />    
  </j:if>
  </j:forEach>
  <attainGoal name="jnlpbuilder"/>
  </preGoal>
  
  <goal name="cristal:build" prereqs="war:install"/>
</project>

--
View this message in context: http://www.nabble.com/migrating+jelly+script+from+m1+to+m2-t1681592.html#a4560544
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org