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 "Guillermo Grandes (JIRA)" <se...@james.apache.org> on 2006/09/22 03:17:23 UTC

[jira] Created: (JAMES-633) Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)

Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)
-----------------------------------------------------------------------------

                 Key: JAMES-633
                 URL: http://issues.apache.org/jira/browse/JAMES-633
             Project: James
          Issue Type: New Feature
          Components: Build System, James Core, Matchers/Mailets (bundled), SMTPServer
    Affects Versions: Trunk
         Environment: James 3.0, Eclipse JDT 3.2
            Reporter: Guillermo Grandes
            Priority: Trivial


As I promised here in JAMES-617 ... the gift...

Is a component for James (fully integrated), an automatic compiler of classes, to compile automatically Mailets, SMTPHandlerChains, etc, etc (if mailet/handler/class needs to compile other classes, it will do it so that everything compiles correctly).

I have proven it with these three, but surely he will be worth for more things.

The best thing is than it does not require to change other classes like JamesMailetLoader/MatcherLoader, SMTPHandlerChain,... and if you do not like or you do not use it, you can deactivate just by to change the config.xml

I believe that he is quite useful, since to add to a new Command in SMTPHandlerChain or new Mailet it is as easy as to place the Java sourcecode in a directory, change the config and Restart James, the rest... automatic.

 - Uses Eclipse JDT Core Batch Compiler (3.2) : ecj.jar (1MB)
 - Available at: http://download.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/index.php
 * It can work with the JDTCompiler 3.1.2 that comes bundled with Tomcat 5.5 (jasper-compiler-jdt.jar), but is necessary to change two lines of code in the JDTCompiler.java (line: 350 / 423)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-633) Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)

Posted by "Guillermo Grandes (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-633?page=all ]

Guillermo Grandes updated JAMES-633:
------------------------------------

    Attachment: JamesCompilerClassLoader-src.jar

Attach the source code & ecj.jar (Eclipse JDT Core Batch Compiler 3.2) in case you want to add it to the Trunk.

Configuration (very easy) is documented in JamesCompilerClassLoader.java

SAR-INF/assembly.xml (top of the file, before James or any other "block")

+ <block name="classcompiler" class="org.apache.james.util.JamesCompilerClassLoader" />

  <!-- The James block  -->
  <block name="James" class="org.apache.james.James" >


SAR-INF/config.xml (create this block)

  <classcompiler enabled="true">
    <sourceDir usePlainDir="true">file://dynamic/src</sourceDir>
    <classDir>file://dynamic/classes</classDir>
  </classcompiler>


> Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)
> -----------------------------------------------------------------------------
>
>                 Key: JAMES-633
>                 URL: http://issues.apache.org/jira/browse/JAMES-633
>             Project: James
>          Issue Type: New Feature
>          Components: SMTPServer, James Core, Matchers/Mailets (bundled), Build System
>    Affects Versions: Trunk
>         Environment: James 3.0, Eclipse JDT 3.2
>            Reporter: Guillermo Grandes
>            Priority: Trivial
>         Attachments: JamesCompilerClassLoader-src.jar
>
>
> As I promised here in JAMES-617 ... the gift...
> Is a component for James (fully integrated), an automatic compiler of classes, to compile automatically Mailets, SMTPHandlerChains, etc, etc (if mailet/handler/class needs to compile other classes, it will do it so that everything compiles correctly).
> I have proven it with these three, but surely he will be worth for more things.
> The best thing is than it does not require to change other classes like JamesMailetLoader/MatcherLoader, SMTPHandlerChain,... and if you do not like or you do not use it, you can deactivate just by to change the config.xml
> I believe that he is quite useful, since to add to a new Command in SMTPHandlerChain or new Mailet it is as easy as to place the Java sourcecode in a directory, change the config and Restart James, the rest... automatic.
>  - Uses Eclipse JDT Core Batch Compiler (3.2) : ecj.jar (1MB)
>  - Available at: http://download.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/index.php
>  * It can work with the JDTCompiler 3.1.2 that comes bundled with Tomcat 5.5 (jasper-compiler-jdt.jar), but is necessary to change two lines of code in the JDTCompiler.java (line: 350 / 423)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-633) Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)

Posted by "Guillermo Grandes (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-633?page=all ]

Guillermo Grandes updated JAMES-633:
------------------------------------

    Attachment: ecj.jar

Eclipse JDT Core Batch Compiler (3.2)

> Contrib: James Auto Compiler Component (for Mailets, HandlerChains, etc, etc)
> -----------------------------------------------------------------------------
>
>                 Key: JAMES-633
>                 URL: http://issues.apache.org/jira/browse/JAMES-633
>             Project: James
>          Issue Type: New Feature
>          Components: SMTPServer, James Core, Matchers/Mailets (bundled), Build System
>    Affects Versions: Trunk
>         Environment: James 3.0, Eclipse JDT 3.2
>            Reporter: Guillermo Grandes
>            Priority: Trivial
>         Attachments: ecj.jar, JamesCompilerClassLoader-src.jar
>
>
> As I promised here in JAMES-617 ... the gift...
> Is a component for James (fully integrated), an automatic compiler of classes, to compile automatically Mailets, SMTPHandlerChains, etc, etc (if mailet/handler/class needs to compile other classes, it will do it so that everything compiles correctly).
> I have proven it with these three, but surely he will be worth for more things.
> The best thing is than it does not require to change other classes like JamesMailetLoader/MatcherLoader, SMTPHandlerChain,... and if you do not like or you do not use it, you can deactivate just by to change the config.xml
> I believe that he is quite useful, since to add to a new Command in SMTPHandlerChain or new Mailet it is as easy as to place the Java sourcecode in a directory, change the config and Restart James, the rest... automatic.
>  - Uses Eclipse JDT Core Batch Compiler (3.2) : ecj.jar (1MB)
>  - Available at: http://download.eclipse.org/eclipse/downloads/drops/R-3.2-200606291905/index.php
>  * It can work with the JDTCompiler 3.1.2 that comes bundled with Tomcat 5.5 (jasper-compiler-jdt.jar), but is necessary to change two lines of code in the JDTCompiler.java (line: 350 / 423)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org