You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2012/04/11 02:39:21 UTC
[jira] [Commented] (MTOMCAT-137) Adding a static context to tomcat
for static files like images, js, html etc.
[ https://issues.apache.org/jira/browse/MTOMCAT-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251208#comment-13251208 ]
Hudson commented on MTOMCAT-137:
--------------------------------
Integrated in TomcatMavenPlugin-mvn3.x #125 (See [https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/125/])
[MTOMCAT-137] Adding a static context to tomcat for static files like images, js, html etc.
Submitted by Gaurav Vishnoi
feature added for tomcat7 mojo too. (Revision 1312036)
Result = SUCCESS
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1312036
Files :
* /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
* /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
> 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
>
> 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