Author: dfabulich Date: Mon Aug 18 08:50:57 2008 New Revision: 686794 URL: http://svn.apache.org/viewvc?rev=686794&view=rev Log: rename makeMyChanges to makeScmChanges
Added: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java (contents, props changed) - copied, changed from r686790, maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeMyChanges.java Removed: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeMyChanges.java Modified: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/examples.apt.vm maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/index.apt Copied: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java (from r686790, maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeMyChanges.java) URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java?p2=maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java&p1=maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeMyChanges.java&r1=686790&r2=686794&rev=686794&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeMyChanges.java (original) +++ maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java Mon Aug 18 08:50:57 2008 @@ -37,11 +37,11 @@ * Goal to build all projects that you personally have changed (according to SCM) * * @author <a href="mailto:[EMAIL PROTECTED]">Dan Fabulich</a> - * @goal makeMyChanges + * @goal makeScmChanges * @aggregator * @phase process-sources */ -public class MakeMyChanges +public class MakeScmChanges extends MakeDependentsMojo { /** Propchange: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/main/java/org/apache/maven/plugin/reactor/MakeScmChanges.java ------------------------------------------------------------------------------ svn:mergeinfo = Modified: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/examples.apt.vm URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/examples.apt.vm?rev=686794&r1=686793&r2=686794&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/examples.apt.vm (original) +++ maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/examples.apt.vm Mon Aug 18 08:50:57 2008 @@ -79,15 +79,15 @@ <<<reactor:makeDependents>>> will examine all of the projects in your reactor to find projects that depend on barBusinessLogic, and automatically build those and nothing else. In this case, it will automatically build barBusinessLogic and then fooUI. -* Building anything that you personally have changed using reactor:makeMyChanges +* Building anything that you personally have changed using reactor:makeScmChanges - Suppose you've made a change to some source files in barBusinessLogic but you've forgotten what you've changed. You want to make sure you're safe to check-in, and that you haven't broken any projects that depend on you. You can use <<<reactor:makeMyChanges>>>, like this: + Suppose you've made a change to some source files in barBusinessLogic but you've forgotten what you've changed. You want to make sure you're safe to check-in, and that you haven't broken any projects that depend on you. You can use <<<reactor:makeScmChanges>>>, like this: +---+ -mvn reactor:makeMyChanges +mvn reactor:makeScmChanges +---+ - <<<reactor:makeMyChanges>>> determines which files have changed using your SCM (Source Configuration Management) tool, e.g. Subversion, Perforce, Git, etc. To use it, you'll need to configure an SCM connection in your root project POM file: + <<<reactor:makeScmChanges>>> determines which files have changed using your SCM (Source Configuration Management) tool, e.g. Subversion, Perforce, Git, etc. To use it, you'll need to configure an SCM connection in your root project POM file: +---+ <project> @@ -104,12 +104,12 @@ Once the reactor plugin computes the list of changed files, it will figure out which of those files correspond to which projects in the reactor, and basically do a <<<reactor:makeDependents>>> on those projects that contain changed files. - In this example, if you only modified files in barBusinessLogic, then running <<<reactor:makeMyChanges>>> is equivalent to running <<<reactor:makeDependents -Dmake.folders=barBusinessLogic>>> -- it builds barBusinessLogic and anything that depends on barBusinessLogic (in this case, it will build fooUI). + In this example, if you only modified files in barBusinessLogic, then running <<<reactor:makeScmChanges>>> is equivalent to running <<<reactor:makeDependents -Dmake.folders=barBusinessLogic>>> -- it builds barBusinessLogic and anything that depends on barBusinessLogic (in this case, it will build fooUI). - <<If you find that reactor:makeMyChanges is doing somthing you don't expect, try running Maven in debug mode>> with <<<--debug>>> or <<<-X>>> like this: + <<If you find that reactor:makeScmChanges is doing somthing you don't expect, try running Maven in debug mode>> with <<<--debug>>> or <<<-X>>> like this: +---+ -mvn reactor:makeMyChanges -X +mvn reactor:makeScmChanges -X +---+ You'll see a log of all the changed files and a depiction of how we computed which projects to pass to <<<reactor:makeDependents>>>. Modified: maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/index.apt?rev=686794&r1=686793&r2=686794&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/index.apt (original) +++ maven/sandbox/trunk/plugins/maven-reactor-plugin/src/site/apt/index.apt Mon Aug 18 08:50:57 2008 @@ -46,11 +46,11 @@ Example: <<<mvn reactor:makeDependents -Dmake.folders=foo,bar>>> - * {{{makeMyChanges-mojo.html}reactor:makeMyChanges}} build all reactor projects that you personally + * {{{makeScmChanges-mojo.html}reactor:makeScmChanges}} build all reactor projects that you personally have changed (according to SCM) and all reactor projects that depend on your changes - Example: <<<mvn reactor:makeMyChanges>>> + Example: <<<mvn reactor:makeScmChanges>>> * make vs. makeDependents