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/05/31 21:00:14 UTC

svn commit: r410636 - /incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl

Author: aadamchik
Date: Wed May 31 12:00:14 2006
New Revision: 410636

URL: http://svn.apache.org/viewvc?rev=410636&view=rev
Log:
fixing nightly build script to dynamically set CLASSPATH by scanning a preset dir for jars

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl?rev=410636&r1=410635&r2=410636&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl (original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-ant/bin/nightly-build.pl Wed May 31 12:00:14 2006
@@ -29,13 +29,20 @@
 use Getopt::Std;
 use Cwd;
 
+# set environment dependent vars
+my $base = "$ENV{'HOME'}/work/nightly";
+my $jar_base = "$ENV{'HOME'}/lib";
 
+# process command line
 our ($opt_u, $opt_m, $opt_n, $opt_d);
 getopts('unm:d:');
-
 die_with_email("CVSROOT must be passed using -d option.") unless $opt_d;
 
-my $base = "$ENV{'HOME'}/work/nightly";
+# process classpath
+my @cp_lines =  `find -L $jar_base -type f -name \"*.jar\"`;
+chomp(@cp_lines); 
+$ENV{'CLASSPATH'} = join(":", @cp_lines);
+
 `mkdir -p $base`;
 
 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();