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>
* <buildcommands>
* <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
@@ -166,6 +172,8 @@
* </buildcommands>
* </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>
* <additionalBuildcommands>
* <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
* </additionalBuildcommands>
* </pre>
*
+ * New style:
+ * <pre>
+ * <additionalBuildcommands>
+ * <buildCommand>
+ * <name>org.ui.externaltools.ExternalToolBuilder</name>
+ * <triggers>auto,full,incremental,</triggers>
+ * <arguments>
+ * <LaunchConfigHandle>&lt;project&gt;./externalToolBuilders/MavenBuilder.launch</LaunchConfighandle>
+ * </arguments>
+ * </buildCommand>
+ * </additionalBuildcommands>
+ * </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 )