Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 255991

Summary: Make the build quieter
Product: z_Archived Reporter: Andrew Overholt <overholt>
Component: Dash AthenaAssignee: Common Build Inbox <dash.commonbuilder-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: nboldt
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 265847    
Bug Blocks:    

Description Andrew Overholt CLA 2008-11-20 12:16:18 EST
It would be nice if we could make the stdout logs a bit quieter so it's easier to see where real problems are.  I'm envisioning something where setup logs go to one file, compilation logs go to another, etc.  This isn't a high priority by any means.
Comment 1 Nick Boldt CLA 2008-11-27 19:58:17 EST
Re: CVS:

see bug 256379 comment 5

Re: SVN:

Had a look at the source for the svn-pde-build plugin, and there's no support in there, or in svnant.jar, for the -q flag. This might require a much further upstream patch. Or perhaps adopt a newer version of svnClientAdapter.jar, svnjavahl.jar, or svnant.jar ?

Alternatively, we could look at trying to make Ant redirect a portion of its log to another file (or /dev/null), eg., by wrapping <svn> calls with <exec output=""/> or <java output=""/> to launch ant to run the svn checkout.
Comment 2 Nick Boldt CLA 2008-12-03 17:05:10 EST
echo "[start] Build log is: $buildDir/buildlog.txt" 
# redirect all logged output to $buildDir/buildlog.txt
touch $buildDir/buildlog.txt
exec 2>&1 >$buildDir/buildlog.txt 

The above code (in start.sh) will redirect all output to a buildlog.txt file in the build's folder (which is what we do in Modeling, rather than dumping to some random file in /tmp/). 

However, a better solution here would be to use a wrapper like start_cron.sh  which already creates the build folder and begins logging to a file therein. start_cron.sh needs to be updated to mesh with start.sh, ie., adding the new -projectid flag.

(This is only tangentially related to this bug, but I didn't feel like opening another bug for this discussion.)
Comment 3 Nick Boldt CLA 2009-04-27 00:39:25 EDT
If we manage to get to the point where we're using ant4eclipse instead of PDE to do SVN source fetches, we can simply set reallyquiet="true" and we'll suppress all the source checkout messages. See bug 265847.
Comment 4 Nick Boldt CLA 2010-11-09 23:07:10 EST
This won't get done. 

If you want a simple build of Eclipse products, features, plugins, or update sites / p2 repos, using CVS, SVN, Git, or any other Hudson-supported VCS/DVCS...

I recommend using Tycho, which supports it natively.

https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho
http://anonsvn.jboss.org/repos/jbosstools/trunk/build/parent/pom.xml
http://www.delicious.com/nickboldt/tycho
https://docs.sonatype.org/display/TYCHO/Tycho+reference+card

Then, pass in -q to make the logged output quieter, or -X for debug output.