commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r475598 - in /jakarta/commons/proper/commons-build/trunk: commons_nightly.sh vmbuild.conf
Date Thu, 16 Nov 2006 06:47:36 GMT
Author: bayard
Date: Wed Nov 15 22:47:35 2006
New Revision: 475598

URL: http://svn.apache.org/viewvc?view=rev&rev=475598
Log:
Now deploys the latest javadoc into a repository structure (in Phil's account for the moment
:) )

Modified:
    jakarta/commons/proper/commons-build/trunk/commons_nightly.sh
    jakarta/commons/proper/commons-build/trunk/vmbuild.conf

Modified: jakarta/commons/proper/commons-build/trunk/commons_nightly.sh
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-build/trunk/commons_nightly.sh?view=diff&rev=475598&r1=475597&r2=475598
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/commons_nightly.sh (original)
+++ jakarta/commons/proper/commons-build/trunk/commons_nightly.sh Wed Nov 15 22:47:35 2006
@@ -65,6 +65,12 @@
   unset MAVEN_DEPLOY
 fi
 
+# Create configured directories if they don't already exist
+mkdir -p ${log_location}
+mkdir -p ${report_location}
+mkdir -p ${javadoc_location}
+mkdir -p ${ant_build}
+
 #==============================================================================
 # Function definitions
 #==============================================================================
@@ -97,6 +103,17 @@
     maven -Dmaven.final.name=commons-$component-$time_stamp \
     clean dist > $log_location/$component.log 2>&1 
 
+    # javadoc should be sitting in target/docs/apidocs/
+    if [ -d target/docs/apidocs/ ]
+    then
+      if [ -d ${javadoc_location}/$component/SNAPSHOT ]
+      then
+        rm -r ${javadoc_location}/$component/SNAPSHOT
+      fi
+      mkdir -p ${javadoc_location}/commons-$component
+      cp -r target/docs/apidocs/ ${javadoc_location}/commons-$component/SNAPSHOT
+    fi
+
   if [ $DIST_DEPLOY ]
   then
     # Deploy source and binary distro to commons nightly location
@@ -171,6 +188,17 @@
     mv target/commons-$component*src.tar.gz target/commons-$component-$time_stamp-src.tar.gz
     mv target/commons-$component*bin.zip target/commons-$component-$time_stamp.zip
     mv target/commons-$component*src.zip target/commons-$component-$time_stamp-src.zip
+
+    mvn javadoc:javadoc >> $log_location/$component.log 2>&1
+    # javadoc should be sitting in target/docs/apidocs/
+    if [ -d target/docs/apidocs/ ]
+    then
+      if [ -d ${javadoc_location}/$component/SNAPSHOT ]
+      then
+        rm -r ${javadoc_location}/$component/SNAPSHOT
+      fi
+      cp -r target/site/apidocs/ ${javadoc_location}/$component/SNAPSHOT
+    fi
 
   if [ $DIST_DEPLOY ]
   then

Modified: jakarta/commons/proper/commons-build/trunk/vmbuild.conf
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-build/trunk/vmbuild.conf?view=diff&rev=475598&r1=475597&r2=475598
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/vmbuild.conf (original)
+++ jakarta/commons/proper/commons-build/trunk/vmbuild.conf Wed Nov 15 22:47:35 2006
@@ -22,3 +22,4 @@
 maven_snapshot_directory='/www/people.apache.org/repo/m1-snapshot-repository'
 log_url='http://people.apache.org/~psteitz/commons-nightlies'
 notification_email='commons-dev@jakarta.apache.org'
+javadoc_location="/home/psteitz/nightly_javadoc"



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


Mime
View raw message