tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Vishnoi (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MTOMCAT-137) Adding a static context to tomcat for static files like images, js, html etc.
Date Tue, 10 Apr 2012 17:55:13 GMT

     [ 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message