You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ma...@apache.org on 2005/08/24 14:38:56 UTC

svn commit: r239637 - in /webservices/jaxme/branches/MAVEN/common-build: maven.xml site.jsl

Author: mac
Date: Wed Aug 24 05:38:52 2005
New Revision: 239637

URL: http://svn.apache.org/viewcvs?rev=239637&view=rev
Log:
Changed jsl to allow tabbed browsing when building multiproject site

Modified:
    webservices/jaxme/branches/MAVEN/common-build/maven.xml
    webservices/jaxme/branches/MAVEN/common-build/site.jsl

Modified: webservices/jaxme/branches/MAVEN/common-build/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/common-build/maven.xml?rev=239637&r1=239636&r2=239637&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/common-build/maven.xml (original)
+++ webservices/jaxme/branches/MAVEN/common-build/maven.xml Wed Aug 24 05:38:52 2005
@@ -18,17 +18,29 @@
 -->
 <project 
   xmlns:ant="jelly:ant"
+  xmlns:j="jelly:core"
   xmlns:artifact="artifact">
+
 <goal name="build">
-	<ant:property name="version" value="${pom.currentVersion}"/>
+
+	<!-- if multiprojectBasedir is set, then we are building the whole project.
+		generate resources to the top level project build directory and make the subprojects
+		use a tab-enabled stylesheet -->
+	<j:if test="${multiprojectBasedir != null}">
+		<j:set var="maven.docs.dest" value="${multiprojectBasedir}/${maven.multiproject.aggregateDir}${pom.artifactId}" />
+		<j:set var="maven.xdoc.theme.url" value="${multiprojectCSS}"/>
+	</j:if>
+	
 	<attainGoal name="clean"/>
 <!--
-	<attainGoal name="site"/>
+
 	<attainGoal name="fo:fo"/>	
 	<attainGoal name="pdf:pdf"/>
--->	
 	<attainGoal name="jar:install"/>
+
+-->		
 	<attainGoal name="site"/>
+
 </goal>
 
 </project>

Modified: webservices/jaxme/branches/MAVEN/common-build/site.jsl
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/MAVEN/common-build/site.jsl?rev=239637&r1=239636&r2=239637&view=diff
==============================================================================
--- webservices/jaxme/branches/MAVEN/common-build/site.jsl (original)
+++ webservices/jaxme/branches/MAVEN/common-build/site.jsl Wed Aug 24 05:38:52 2005
@@ -226,6 +226,45 @@
           <div class="clear"><hr /></div>
         </div>
 
+
+<!-- TABS if multiprojects != null -->
+<j:if test="${multiprojects != null}">
+<div class="myTabs" style="width:50px; overflow:visible;">
+	<table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+	<j:forEach items="${multiprojects}" var="reactorProject">		
+		<maven:rootRelativePath rootdir="${multiprojectBasedir}" path="${outDir}" var="rootRel"/>
+		<j:set var="relAggregateDir" value="${rootRel}/${maven.multiproject.aggregateDir}${reactorProject.artifactId}/index.html"/>
+			
+		<td width="6"><img alt="" height="8" width="6" src="skin/images/spacer.gif"/></td>
+		<td valign="bottom" align="center">
+			<j:if test="${reactorProject.artifactId == pom.artifactId}">		        
+			<table class="selectedTab" summary="selected tab" style="height: 1.8em" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="../../images/spacer.gif"/></td>
+					<td align="center" valign="middle"><b><a class="base-selected" href="${relAggregateDir}"><font color="white">${reactorProject.name}</font></a></b></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="../../images/spacer.gif"/></td>
+				</tr>
+			</table>
+			</j:if>
+			<j:if test="${reactorProject.artifactId != pom.artifactId}">		        
+			<table class="notselectedTab" summary="non selected tab" style="height: 1.6em" border="0" cellpadding="0" cellspacing="0" align="center">
+				<tr>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="../../images/spacer.gif"/></td>
+					<td align="center" valign="middle"><a class="base-not-selected" href="${relAggregateDir}">${reactorProject.name}</a></td>
+					<td valign="top" width="5"><img height="5" width="5" alt="" src="../../images/spacer.gif"/></td>
+				</tr>
+			</table>
+			</j:if>
+		</td>
+		<td width="6"><img alt="" height="8" width="6" src="skin/images/spacer.gif"/></td>
+	</j:forEach>
+	</tr>
+	</table>
+</div>
+</j:if>
+<!-- END TABS -->
+
         <div id="breadcrumbs">
           <maven:property var="version" name="maven.xdoc.version" defaultValue="${pom.currentVersion}"/>
                 



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