Hi, just create a lib folder in the SAR-INF and place it there.
For example: /james-xxx/apps/james/SAR-INF/lib/your.jar bye Norman Am Samstag, den 03.06.2006, 10:29 +0200 schrieb Joachim Draeger: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > !EXCUBATOR:1,44814a2c37021649247318!
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil