directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r375943 - in /directory/trunks/apacheds: apidocs.sh groups.sh pom.xml
Date Wed, 08 Feb 2006 12:26:19 GMT
Author: ersiner
Date: Wed Feb  8 04:26:12 2006
New Revision: 375943

URL: http://svn.apache.org/viewcvs?rev=375943&view=rev
Log:
Added some scripts to automate site generation.
Cleaned up pom.

Added:
    directory/trunks/apacheds/apidocs.sh   (with props)
    directory/trunks/apacheds/groups.sh   (with props)
Modified:
    directory/trunks/apacheds/pom.xml

Added: directory/trunks/apacheds/apidocs.sh
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/apidocs.sh?rev=375943&view=auto
==============================================================================
--- directory/trunks/apacheds/apidocs.sh (added)
+++ directory/trunks/apacheds/apidocs.sh Wed Feb  8 04:26:12 2006
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+OUTPUTDIR='target/site/docs/api'
+
+SOURCEPATH=$(find . -name src | awk '{ print $1"/main/java" }' | tr '\n' ':')
+
+PACKAGES='org.apache.directory.server'
+
+#EXCLUDES="org.apache.mina.examples:$(grep -h '^package org\.apache\.mina.*support;$' * -R
| sed 's/^package \(.*\.support\);/\1/g' | sed 's/\r//g' | tr '\n' ':' | sed 's/:$//g'| sort
-u)"
+
+javadoc -d $OUTPUTDIR -sourcepath $SOURCEPATH -subpackages $PACKAGES #-exclude $EXCLUDES


Propchange: directory/trunks/apacheds/apidocs.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: directory/trunks/apacheds/groups.sh
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/groups.sh?rev=375943&view=auto
==============================================================================
--- directory/trunks/apacheds/groups.sh (added)
+++ directory/trunks/apacheds/groups.sh Wed Feb  8 04:26:12 2006
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+RESOURCES=../../resources
+
+for project in *
+do
+	cd $project &> /dev/null
+	if [ $? -ne 0 ]
+	then
+		continue
+	fi
+	if [ ! -d "src/main/java" ]
+	then
+		cd - &> /dev/null
+		continue
+	fi
+	ROOTPACKAGENAME=$(grep -h '^package org\.apache\.directory\.server.*;$' * -R | sed 's/\r//g'
| sort -u | head -1 | sed 's/\(package \)//' | tr -d ';')
+	if [ ! -f pom.xml ]
+	then
+		cd - &> /dev/null
+		continue
+	fi
+	NAME=$($RESOURCES/pomutils/name.sh ./pom.xml)
+
+	echo $ROOTPACKAGENAME
+	echo $NAME
+	echo "----------------------------------------------------------"
+	cd - &> /dev/null
+done

Propchange: directory/trunks/apacheds/groups.sh
------------------------------------------------------------------------------
    svn:executable = *

Modified: directory/trunks/apacheds/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/pom.xml?rev=375943&r1=375942&r2=375943&view=diff
==============================================================================
--- directory/trunks/apacheds/pom.xml (original)
+++ directory/trunks/apacheds/pom.xml Wed Feb  8 04:26:12 2006
@@ -242,43 +242,6 @@
         <artifactId>maven-site-plugin</artifactId>
         <version>2.0-SNAPSHOT</version>
       </plugin>
-      <!-- The following plugin can be enabled for recursive site generations -->
-      <!-- <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <inherited>false</inherited>
-        <executions>
-          <execution>
-            <phase>site</phase>
-            <configuration>
-              <tasks>
-                <copy file="src/site/site.xml" todir="protocols/kerberos-common/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/dhcp/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/changepw/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/ntp/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/ldap/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/kerberos/src/site"/>
-                <copy file="src/site/site.xml" todir="protocols/dns/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/jndi/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/unit/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/main/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/ssl/src/site"/>
-                <copy file="src/site/site.xml" todir="simple/installers/src/site"/>
-                <copy file="src/site/site.xml" todir="core/src/site"/>
-                <copy file="src/site/site.xml" todir="core-unit/src/site"/>
-                <copy file="src/site/site.xml" todir="plugin/src/site"/>
-                <copy file="src/site/site.xml" todir="protocol-common/src/site"/>
-                <copy file="src/site/site.xml" todir="shared/src/site"/>
-                <copy file="src/site/site.xml" todir="tools/src/site"/>
-              </tasks>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin> -->
     </plugins>
   </build>
 
@@ -292,17 +255,13 @@
           <reportSet>
             <reports>
               <report>project-team</report>
-              <!-- <report>mailing-list</report>
+              <report>mailing-list</report>
               <report>issue-tracking</report>
               <report>license</report>
-              <report>scm</report> -->
+              <report>scm</report>
             </reports>
           </reportSet>
         </reportSets>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-javadoc-plugin</artifactId>
       </plugin>
     </plugins>
   </reporting>



Mime
View raw message