You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ke...@apache.org on 2007/05/31 16:23:35 UTC

svn commit: r543142 - in /maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse: BuildCommand.java EclipsePlugin.java

Author: kenney
Date: Thu May 31 07:23:34 2007
New Revision: 543142

URL: http://svn.apache.org/viewvc?view=rev&rev=543142
Log:
Some doco updates; fix creation of parent path if it doesn't exist

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java
    maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java?view=diff&rev=543142&r1=543141&r2=543142
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java Thu May 31 07:23:34 2007
@@ -45,6 +45,13 @@
     private Map arguments;
 
     /**
+     * no-arg constructor for plugin configuration.
+     */
+    public BuildCommand()
+    {
+    }
+
+    /**
      * Creates a new build command
      *
      * @param name Command name

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java?view=diff&rev=543142&r1=543141&r2=543142
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java Thu May 31 07:23:34 2007
@@ -156,8 +156,14 @@
 
     /**
      * List of eclipse build commands. By default the <code>org.eclipse.jdt.core.javabuilder</code> builder plus the needed
-     * WTP builders are added. Configuration example:
+     * WTP builders are added.
      *
+     * If you specify any configuration for this parameter, only those buildcommands specified will be used; the defaults
+     * won't be added. Use the <code>additionalBuildCommands</code> parameter for that.
+     *
+     * Configuration example:
+     *
+     * Old style:
      * <pre>
      * &lt;buildcommands&gt;
      *    &lt;buildcommand&gt;org.eclipse.wst.common.modulecore.ComponentStructuralBuilder&lt;/buildcommand&gt;
@@ -166,6 +172,8 @@
      * &lt;/buildcommands&gt;
      * </pre>
      *
+     * For new style, see <code>additionalBuildCommands</code>.
+     *
      * @parameter
      */
     private List buildcommands;
@@ -173,12 +181,31 @@
     /**
      * List of eclipse build commands to be added to the default ones.
      *
+     * Old style:
      * <pre>
      * &lt;additionalBuildcommands&gt;
      *    &lt;buildcommand&gt;org.springframework.ide.eclipse.core.springbuilder&lt;/buildcommand&gt;
      * &lt;/additionalBuildcommands&gt;
      * </pre>
      *
+     * New style:
+     * <pre>
+     * &lt;additionalBuildcommands&gt;
+     *    &lt;buildCommand&gt;
+     *      &lt;name&gt;org.ui.externaltools.ExternalToolBuilder&lt;/name&gt;
+     *      &lt;triggers&gt;auto,full,incremental,&lt;/triggers&gt;
+     *      &lt;arguments&gt;
+     *        &lt;LaunchConfigHandle&gt;&amp;lt;project&amp;gt;./externalToolBuilders/MavenBuilder.launch&lt;/LaunchConfighandle&gt;
+     *      &lt;/arguments&gt;
+     *    &lt;/buildCommand&gt;
+     * &lt;/additionalBuildcommands&gt;
+     * </pre>
+     *
+     * Note the difference between <code>build<strong>c</strong>ommand</code>
+     * and <code>build<strong>C</strong>ommand</code>.
+     *
+     * You can mix and match old and new-style configuration entries.
+     *
      * @parameter
      */
     private List additionalBuildcommands;
@@ -748,6 +775,7 @@
 
                 try
                 {
+                    projectRelativeFile.getParentFile().mkdirs();
                     FileUtils.fileWrite( projectRelativeFile.getAbsolutePath(), file.getContent() );
                 }
                 catch ( IOException e )