dirkv 2004/10/17 07:10:31 Modified: commons-build commons-site.jsl Log: if a component doesn't have a project.css then use the default one from the main jakarta-commons site Revision Changes Path 1.12 +19 -7 jakarta-commons/commons-build/commons-site.jsl Index: commons-site.jsl =================================================================== RCS file: /home/cvs/jakarta-commons/commons-build/commons-site.jsl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- commons-site.jsl 17 Aug 2004 13:29:01 -0000 1.11 +++ commons-site.jsl 17 Oct 2004 14:10:31 -0000 1.12 @@ -57,13 +57,25 @@ <title>${pom.name} - ${docTitle}</title> </x:if> - <style type="text/css" media="all"> - <![CDATA[ @import url("${relativePath}/style/tigris.css");]]> - <[EMAIL PROTECTED] url("${relativePath}/style/maven.css");]]> - <![CDATA[ @import url("${relativePath}/style/project.css");]]> - </style> - - <link rel="stylesheet" type="text/css" href="${relativePath}/style/print.css" media="print"/> + <util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/> + <j:if test="${projectCssFile.exists()}"> + <style type="text/css" media="all"> + <![CDATA[ @import url("${relativePath}/style/tigris.css");]]> + <![CDATA[ @import url("${relativePath}/style/maven.css");]]> + <![CDATA[ @import url("${relativePath}/style/project.css");]]> + </style> + <link rel="stylesheet" type="text/css" href="${relativePath}/style/print.css" media="print"/> + </j:if> + + <j:if test="${!projectCssFile.exists()}"> + <style type="text/css"><![CDATA[ + @import url("http://jakarta.apache.org/commons/style/tigris.css"); + @import url("http://jakarta.apache.org/commons/style/maven.css"); + @import url("http://jakarta.apache.org/commons/style/project.css"); + ]]></style> + <link rel="stylesheet" type="text/css" href="http://jakarta.apache.org/commons/style/print.css" media="print"/> + </j:if> + <meta http-equiv="Content-Type" content="text/html; charset=${outputencoding}"/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]