You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2006/09/17 04:04:43 UTC
svn commit: r446997 -
/incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
Author: aadamchik
Date: Sat Sep 16 19:04:43 2006
New Revision: 446997
URL: http://svn.apache.org/viewvc?view=rev&rev=446997
Log:
making snapshot publishing optional
Modified:
incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
Modified: incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl?view=diff&rev=446997&r1=446996&r2=446997
==============================================================================
--- incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl (original)
+++ incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl Sat Sep 16 19:04:43 2006
@@ -12,10 +12,11 @@
# 4. SVN client
#
# Command line:
-# nightly-build.pl -d svnroot [-u] [-n] [-m email@example.com]
+# nightly-build.pl -d svnroot [-u] [-n] [-p] [-m email@example.com]
# -u - upload build and test results to the server
# -n - skip SVN checkout (used mostly for debugging)
# -d - SVN path
+# -p - publish snapshots to Maven2 repo
#
# Sample Crontab:
#
@@ -35,8 +36,8 @@
$ENV{'JAVA_HOME'} = "/opt/java-1.5";
# process command line
-our ($opt_u, $opt_m, $opt_n, $opt_d);
-getopts('unm:d:');
+our ($opt_u, $opt_m, $opt_n, $opt_d, $opt_p);
+getopts('unpm:d:');
die_with_email("SVN location must be passed using -d option.") unless $opt_d;
`mkdir -p $base`;
@@ -95,7 +96,9 @@
my $gz_file = $gz_files[0];
$status = run_command("scp $gz_files[0] $upload_dir/");
die_with_email("Can't upload release, return status: $status\n") if $status;
+}
+if($opt_p) {
# Publish Maven snapshots - have to do it from module dirs - doesn't work from parent
publish_snapshot("$cayenne_src/core/cayenne-jdk1.4");
publish_snapshot("$cayenne_src/core/cayenne-jdk1.5");