You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by le...@apache.org on 2007/09/14 00:31:06 UTC
svn commit: r575489 -
/felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java
Author: lenzi
Date: Thu Sep 13 15:31:06 2007
New Revision: 575489
URL: http://svn.apache.org/viewvc?rev=575489&view=rev
Log:
Added the disableAutoInstall configuration property to the @repository goal in order to allow the user to disable the option.
This is a first step for the integration of this plugin with the maven-bundle-plugin inside the trunk
Modified:
felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java
Modified: felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java?rev=575489&r1=575488&r2=575489&view=diff
==============================================================================
--- felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java (original)
+++ felix/sandbox/clement/maven-obr-plugin/src/main/java/org/apache/felix/sandbox/obr/plugin/ObrInstall.java Thu Sep 13 15:31:06 2007
@@ -70,6 +70,14 @@
*/
private Settings m_settings;
+
+ /**
+ * Enable/Disable this goal
+ * @description If true evrything the goal do nothing, the goal just skip over
+ * @parameter default="false"
+ */
+ private boolean disableAutoInstall;
+
/**
* path to file in the maven local repository.
@@ -83,7 +91,11 @@
*/
public void execute() throws MojoExecutionException {
getLog().info("Obr Plugin starts:");
-
+ if(disableAutoInstall){
+ getLog().info("OBR repository goal disable by 'disableAutoInstall' configuration");
+ return;
+ }
+
if (m_repositoryPath == null) {
m_repositoryPath = "file:/" + m_localRepo.getBasedir() + File.separator + "repository.xml";
getLog().warn("-DpathRepo is not define, use default repository: " + m_repositoryPath);