[ 
https://issues.apache.org/jira/browse/MTOMCAT-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gaurav Vishnoi updated MTOMCAT-137:
-----------------------------------

    Attachment: patch.txt

Added the code to include the static context.
The usage in pom is:

<plugin>
                                <groupId>org.apache.tomcat.maven</groupId>
                                <artifactId>tomcat6-maven-plugin</artifactId>
                                <version>2.0-SNAPSHOT</version>
                                <configuration>
                                        <path>/commerce2</path>
                                        
<staticContextDocbase>path_to_css_or_js_or_static_files</staticContextDocbase>
                                </configuration>
                        </plugin>
                
> Adding a static context to tomcat for static files like images, js, html etc.
> -----------------------------------------------------------------------------
>
>                 Key: MTOMCAT-137
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-137
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Improvement
>          Components: tomcat6
>    Affects Versions: 2.0-beta-1
>         Environment: Eclipse on windows platform with internal tomcat server.
>            Reporter: Gaurav Vishnoi
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Minor
>             Fix For: 2.0-beta-1
>
>         Attachments: patch.txt
>
>
> There is no configuration available in the current tomcat maven plugin to add 
> a static context. If you want to include static context you would need an 
> external Apache server hosting your static files. Instead of setting the 
> Apache I wanted to include the static context in my pom.xml. So, I modified 
> the tomcat maven plugin to include the configurations for static context. 
> I have created a patch and will attach it here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to