OK, I gave this a go but I'm not sure what I'm doing wrong (defined tag not 
being executed).  btw if you hadn't guessed I'm no xml expert :)

cheers Nathan

<project
   xmlns:j="jelly:core"
   xmlns:maven="jelly:org.apache.maven.jelly.tags.project.MavenTagLibrary"
   xmlns:define="jelly:define">

<!-- define a new tag -->
<define:taglib uri="myLib">
     <define:tag name="makeJar">
         <echo message="compiling ${includes}"/>
        <javac
             destdir="${maven.build.dest}"
             includes="${includes}"
             excludes="${excludes}"
             debug="${maven.compile.debug}"
             deprecation="${maven.compile.deprecation}"
             optimize="${maven.compile.optimize}">
         <classpath>
             <path refid="maven.dependency.classpath"/>
             <pathelement path="${maven.build.dest}"/>
         </classpath>
         <!--jar
             jarfile="${jarfile}"
             basedir="${maven.build.dest}"
         </jar-->
     </javac>
     </define:tag>
</define:taglib>



   <goal name="jws:compile"
         description="Compile the project">
        
     <attainGoal name="java:prepare-filesystem"/>

<makeJar includes="**/commmon/*.java"
jarfile="${maven.build.dest}/foo.jar"/>

<makeJar includes="**/registry/*.java"
jarfile="${maven.build.dest}/xyz.jar"/>

<makeJar includes="**/server/*.java"
jarfile="${maven.build.dest}/bing.jar"/>

...........


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to