Re: "Sourcing" linux environment file in CC
Lincoln Peters <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 3, 2010 at 6:23 AM, zachlac <[email protected]> wrote: > For our builds, we pick and choose the different code > subdirectories needed for a specific project by using > "environment" files; we call "source <filename>" to set > up lots of different variables, etc. We then call > "make" to build the project. > > How can do something similar in CruiseControl: "source" > a tcl script to get the variables from it, and then > run "make" with those variables preserved? I can think of two possible solutions: 1. If there's only one file that needs to be sourced, source it before starting CruiseControl. Of course, if any of the variables set by the script happen to have the same names as environment variables that Java relies on (which I'm guessing is unlikely), that won't work so well. 2. Write another shell script that sources the variables and then runs "make". This is what I'm using right now, since I have one CruiseControl server configured to do two different builds that require different environment variables. -- Lincoln Peters <[email protected]> ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo