jvanzyl 2004/05/07 17:56:25
Modified: maven-core/src/main/resources/org/apache/maven plexus.xml
Added: maven-core/src/main/java/org/apache/maven/plugin/discovery
MavenPluginDiscoverer.java
Removed: maven-core/src/main/java/org/apache/maven/plugin/plexus/discovery
MavenPluginDiscoverer.java
Log:
Revision Changes Path
1.1
maven-components/maven-core/src/main/java/org/apache/maven/plugin/discovery/MavenPluginDiscoverer.java
Index: MavenPluginDiscoverer.java
===================================================================
package org.apache.maven.plugin.discovery;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.descriptor.PluginDescriptorBuilder;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer;
import org.codehaus.plexus.configuration.PlexusConfiguration;
import java.util.ArrayList;
import java.util.List;
/**
*
*
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
*
* @version $Id: MavenPluginDiscoverer.java,v 1.1 2004/05/08 00:56:25 jvanzyl Exp $
*/
public class MavenPluginDiscoverer
extends AbstractComponentDiscoverer
{
private PluginDescriptorBuilder builder;
public MavenPluginDiscoverer()
{
builder = new PluginDescriptorBuilder();
}
public String getComponentDescriptorLocation()
{
return "META-INF/maven/plugin.xml";
}
public String getComponentType()
{
return "maven-plugin";
}
//
----------------------------------------------------------------------------------
// <plugin>
// <implementation>org.apache.maven.plugin.AntlrPlugin</implementation>
// <id>antlr</id>
// <goals>
// <goal>
// <name>antlr</name>
// <configuration>
// <outputDirectory>#maven.build.dest</outputDirectory>
// <resources>#project.build.resources</resources>
// </configuration>
// </goal>
// </goals>
// </plugin>
//
----------------------------------------------------------------------------------
public List createComponentDescriptors( PlexusConfiguration
componentDescriptorConfiguration )
throws Exception
{
List componentDescriptors = new ArrayList();
PluginDescriptor pluginDescriptor = builder.build(
componentDescriptorConfiguration );
componentDescriptors.add( pluginDescriptor );
return componentDescriptors;
}
}
1.11 +1 -1
maven-components/maven-core/src/main/resources/org/apache/maven/plexus.xml
Index: plexus.xml
===================================================================
RCS file:
/home/cvs/maven-components/maven-core/src/main/resources/org/apache/maven/plexus.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- plexus.xml 8 May 2004 00:50:35 -0000 1.10
+++ plexus.xml 8 May 2004 00:56:25 -0000 1.11
@@ -6,7 +6,7 @@
</listener>
</listeners>
<component-discoverers>
- <component-discoverer
implementation="org.apache.maven.plugin.plexus.discovery.MavenPluginDiscoverer"/>
+ <component-discoverer
implementation="org.apache.maven.plugin.discovery.MavenPluginDiscoverer"/>
</component-discoverers>
</component-discoverer-manager>
<resources>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]