You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Joachim Draeger <jd...@joachim-draeger.de> on 2006/06/03 10:29:02 UTC
Re: [jira] Commented: (JAMES-461) Javamail Store based MailRepository
support
Hi!
"There should be a more convenient way. Is there?"
Is there? :-) How to add a Jar to the core of James without going so deep? Maybe
just as easy as placing a custom Mailet into the ext folder.
Joachim
Joachim Draeger (JIRA) schrieb:
> To setup a Javamail store MailRepository you have to make sure the corresponding Javamail implementation, e.g. javamaildir-0.6.2.jar, is added at the SAR-INF/lib directory of the james.sar. To check this, you can open james.sar with your favorite ZIP packer.
>
> 1. possibility: put the jar in the lib directory of the trunk and modify include.properties and build.xml
>
> Index: B:/java/jamesws/JamesSecondTrunk/build.xml
> ===================================================================
> --- B:/java/jamesws/JamesSecondTrunk/build.xml (revision 409878)
> +++ B:/java/jamesws/JamesSecondTrunk/build.xml (working copy)
> @@ -503,6 +503,7 @@
> <include name="${excalibur-datasource.jar}"/>
> <include name="${javax-activation.jar}"/>
> <include name="${javax-mail.jar}"/>
> + <include name="${javamaildir.jar}"/>
> <include name="${commons-dbcp.jar}"/>
> <include name="${commons-pool.jar}"/>
> <include name="${bcmail.jar}"/>
>
> Index: B:/java/jamesws/JamesSecondTrunk/include.properties
> ===================================================================
> --- B:/java/jamesws/JamesSecondTrunk/include.properties (revision 409878)
> +++ B:/java/jamesws/JamesSecondTrunk/include.properties (working copy)
> @@ -42,6 +42,9 @@
> # ----- Activation -----
> javax-activation.jar=${activation.id}.jar
>
> +# ----- javamaildir
> +javamaildir.jar=javamaildir-0.6.2.jar
> +
> # ----- DNS -----
> dns.jar=dnsjava-2.0.1.jar
>
> then run ant.
>
> 2. possibility: open james.sar with you favorite zip packer and inject the jar directly into the SAR-INF/lib directory.
>
> I don't like both methods. There should be a more convenient way. Is there?
>
> Of course you have to add JavamailStoreMailRepository code, too. You can do this by putting source files directly into the src/java directory of the trunk. Another way, that has the advantage of not touching your working copy, is to build a jar of the code first and add it like the javamail store implementation explained above.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org