You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@james.apache.org by si...@james.apache.org on 2004/03/07 00:58:52 UTC

[Apache James Wiki] Updated: CustomMailetPackages

   Date: 2004-03-06T15:58:52
   Editor: NoelBergman <no...@devtech.com>
   Wiki: Apache James Wiki
   Page: CustomMailetPackages
   URL: http://wiki.apache.org/james/CustomMailetPackages

   Fixed broken {{{ }}}

Change Log:

------------------------------------------------------------------------------
@@ -12,16 +12,18 @@
 
 For this example, ours are in tld.domain.james.transport.mailets (do not use this name in a real package). 
 
-{{{   <mailetpackages> }}}
-{{{      <mailetpackage>org.apache.james.transport.mailets</mailetpackage> }}}
-{{{      <mailetpackage>tld.domain.james.transport.mailets</mailetpackage> }}}
-{{{   </mailetpackages> }}}
+{{{
+      <mailetpackages>
+         <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
+         <mailetpackage>tld.domain.james.transport.mailets</mailetpackage>
+      </mailetpackages>
 
 
-{{{   <matcherpackages> }}}
-{{{      <matcherpackage>org.apache.james.transport.matchers</matcherpackage> }}}
-{{{      <matcherpackage>tld.domain.james.transport.matchers</matcherpackage> }}}
-{{{   </matcherpackages> }}}
+      <matcherpackages>
+         <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
+         <matcherpackage>tld.domain.james.transport.matchers</matcherpackage>
+      </matcherpackages>
+}}}
 
 = Mailet Developers Please Note =
 
@@ -45,65 +47,60 @@
 Here's the ant xml snippet which requires James 2.1.x (doesn't work for James 2.0.x)
 and Ant version that supports  <jar ... update='true' />
 
-{{{    <!-- }}}
-{{{       |  src.sar.file = The james.sar (WATCH IT:  SAR FILE not JAR FILE)  }}}
-{{{       |                 from James 2.1.x }}}
-{{{       | }}}
-{{{       |  update.sar.file = The orignal james.sar + your custom mailets .   }}}
-{{{     --> }}}
-{{{    <property name="src.sar.file"               value="./james.sar" /> }}}
-{{{    <property name="updated.sar.file"           location="./customSAR/james.sar" /> }}}
+{{{
+    <!--
+          |  src.sar.file = The james.sar (WATCH IT:  SAR FILE not JAR FILE)
+          |                 from James 2.1.x
+          |
+          |  update.sar.file = The orignal james.sar + your custom mailets .
+        -->
+       <property name="src.sar.file"               value="./james.sar" />
+       <property name="updated.sar.file"           location="./customSAR/james.sar" />
 
 
-{{{    <!-- }}}
-{{{       |  This is where ant will do its work  }}}
-{{{       | }}}
-{{{     --> }}}
-{{{    <property name='sar.work.dir'               location='./sarWorkDir'/> }}}
+       <!--
+          |  This is where ant will do its work
+          |
+        -->
+       <property name='sar.work.dir'               location='./sarWorkDir'/>
 
-{{{  }}}
+   
 
-{{{    <!-- }}}
-{{{       |  This is where your custom mailet classes should reside  }}}
-{{{       |  They will be merged into james.jar  }}}
-{{{     --> }}}
-{{{    <property name='compiled.dir'               location='./myCompiledMailet' /> }}}
+       <!--
+          |  This is where your custom mailet classes should reside
+          |  They will be merged into james.jar
+        -->
+       <property name='compiled.dir'               location='./myCompiledMailet' />
 
 
 
-{{{    <!-- here's where all the work is being done --> }}}
-{{{   }}}
-{{{    <target name="assemble" description="Assembling SAR + Adding Custom Mailet"> }}}
+       <!-- here's where all the work is being done -->
+    
+       <target name="assemble" description="Assembling SAR + Adding Custom Mailet">
 
-{{{        <echo>removing and re-creating work directory [${sar.work.dir}]</echo>  }}}
-{{{        <delete dir="${sar.work.dir}" verbose="no" />  }}}
-{{{        <mkdir  dir="${sar.work.dir}/" />  }}}
+           <echo>removing and re-creating work directory [${sar.work.dir}]</echo>
+           <delete dir="${sar.work.dir}" verbose="no" />
+           <mkdir  dir="${sar.work.dir}/" />
 
-{{{        <delete dir="./customSAR" verbose="no" />  }}}
-{{{        <mkdir  dir="./customSAR" />  }}}
+           <delete dir="./customSAR" verbose="no" />
+           <mkdir  dir="./customSAR" />
 
 
 
-{{{        <!-- Unjar'ing the SAR file to get at the James.jar file --> }}}
-
-{{{        <echo>Unjaring sar file [${src.sar.file}] to work directory [${sar.work.dir}]</echo>  }}}
-{{{        <unjar src="${src.sar.file}" dest="${sar.work.dir}" />  }}}
-
-
-
-{{{        <echo>Updating [${sar.work.dir}/SARINF/lib/james.jar] by adding our custom mailet classes from [${compiled.dir}] </echo>  }}}
-{{{        <jar jarfile="${sar.work.dir}/SARINF/lib/james.jar" basedir="${compiled.dir}" update="true" />  }}}
-
-{{{        <echo>Re-adding [${sar.work.dir}/SARINF/lib/james.jar] into [${updated.sar.file}]</echo>  }}}
-
-{{{        <copy file="${src.sar.file}" todir="${dist}" />  }}}
-
-{{{        <jar jarfile="${updated.sar.file}" basedir="${sar.work.dir}" update="true" />  }}}
-{{{    </target> }}}
+           <!-- Unjar'ing the SAR file to get at the James.jar file -->
 
+           <echo>Unjaring sar file [${src.sar.file}] to work directory [${sar.work.dir}]</echo>
+           <unjar src="${src.sar.file}" dest="${sar.work.dir}" />
 
 
 
+           <echo>Updating [${sar.work.dir}/SARINF/lib/james.jar] by adding our custom mailet classes from [${compiled.dir}] </echo>
+           <jar jarfile="${sar.work.dir}/SARINF/lib/james.jar" basedir="${compiled.dir}" update="true" />
 
+           <echo>Re-adding [${sar.work.dir}/SARINF/lib/james.jar] into [${updated.sar.file}]</echo>
 
+           <copy file="${src.sar.file}" todir="${dist}" />
 
+           <jar jarfile="${updated.sar.file}" basedir="${sar.work.dir}" update="true" />
+       </target>
+}}}