On Fri, 23 Mar 2012 19:06:38 +0000, Mike Van wrote: ... > So, I wrote a tool called the Sonar Code Quality Manager (SonarCQM), which > will probably be donated to sonarsource later on this year. That tool scans > a "conf" directory. In that directory, for each build Sonar is doing, there > is one configuration file with SVN checkout information,
=== sample.conf url=http://svn/wherever/module/trunk build="ant build" > maven/ivy/ant/grails build information, and of course the name of the build > tool being used. The tool also has a "workspace" directory into which a > fresh copy of each build's code is checked out into, and then the tool > "invokes" the build tool indicated in the .conf file. === buildall.sh (not tested) for i in confs/*.conf; do . "$i" wsname="`basename "$i" conf`" wsdir="workspace/$wsname" mkdir -p workspace rm -rf "$wsdir" svn checkout -q "$url" "$wsdir" (cd "$wsdir" && $build) done > That build uses the > sonar plugin/task/whatever to generate the sonar stats. I just completed > the subversion and maven invokers. Don't be a one-tool guy. Seriously, a 'subversion invoker'. That has been invented thirty years ago, just not in java. ant/java is trying to reinvent a lot of wheels there, and mostly in a bad form. Andreas -- "Totally trivial. Famous last words." From: Linus Torvalds <torvalds@*.org> Date: Fri, 22 Jan 2010 07:29:21 -0800 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org