Author: bayard
Date: Tue Nov 21 23:16:12 2006
New Revision: 478058

URL: http://svn.apache.org/viewvc?view=rev&rev=478058
Log:
Added protection on the removing of the snapshot symlink locally; and a bit on 
the end to tar up the builds and the maven repo

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

Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diff&rev=478058&r1=478057&r2=478058
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original)
+++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Tue Nov 21 
23:16:12 2006
@@ -66,11 +66,16 @@
 fi
 
 # Create configured directories if they don't already exist
+local_deploy_location="${local_deploy_path}/builds"
+local_maven_repository="${local_deploy_path}/maven"
 mkdir -p ${log_location}
-rm ${log_location}/*.log
 mkdir -p ${javadoc_location}
 mkdir -p ${ant_build}
 
+# Cleanup previous run
+rm ${log_location}/*.log
+rm ${local_deploy_path}/*.tar
+
 #==============================================================================
 # Function definitions
 #==============================================================================
@@ -185,7 +190,10 @@
      mkdir -p $deploy_dir
      cp target/commons-$component-$time_stamp.jar $deploy_dir
      cp target/commons-$component-$time_stamp.jar.md5 $deploy_dir
-     rm $deploy_dir/commons-$component-SNAPSHOT.jar*
+     if [ -e $deploy_dir/commons-$component-SNAPSHOT.jar ]
+     then
+       rm $deploy_dir/commons-$component-SNAPSHOT.jar*
+     fi
      ln -s $deploy_dir/commons-$component-$time_stamp.jar 
$deploy_dir/commons-$component-SNAPSHOT.jar
      ln -s $deploy_dir/commons-$component-$time_stamp.jar.md5 
$deploy_dir/commons-$component-SNAPSHOT.jar.md5
 
@@ -428,6 +436,10 @@
   rm ${report_location}
 fi
 
-exit 0
-
+# bundle up the builds and jars for people
+cd ${local_deploy_path}
+tar -cf builds-${time_stamp}.tar builds
+tar -cf maven-${time_stamp}.tar maven
+cd -
 
+exit 0

Modified: jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf?view=diff&rev=478058&r1=478057&r2=478058
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf (original)
+++ jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf Tue Nov 21 
23:16:12 2006
@@ -9,12 +9,11 @@
 sandbox_root="/home/psteitz/trunks-sandbox"   # local sandbox checkout
 # path to component lists
 nightly_list_location="${proper_root}/commons-nightly"  
-local_deploy_location="/home/commons/public_html/nightly/packages"
+local_deploy_path="/home/commons/public_html/nightly"
 log_location="/home/commons/public_html/nightly/logs" # where to put logs
 report_location="/home/commons/public_html/nightly/tmp/build_report.txt"
 time_stamp=`date +%Y%m%d`                     # time stamp in file names
 ant_build="/home/commons/public_html/nightly/tmp/ant-build"               # 
Ant build directory
-local_maven_directory='/home/commons/public_html/nightly/maven'
 notification_email='[email protected]'
 javadoc_location="/home/commons/public_html/javadocs"
 nightly_reports="/home/commons/public_html/nightly/nightly_reports"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to