added @since info

This commit is contained in:
Hervé Boutemy 2012-12-08 16:05:37 +01:00
parent f95ab2e7cd
commit 23bd8d98a6
2 changed files with 19 additions and 4 deletions

View File

@ -127,7 +127,7 @@ public synchronized ClassRealm getMavenApiRealm()
return mavenRealm;
}
private void importMavenApi( Map<String, ClassLoader> imports )
private void importMavenApi( Map<String, ClassLoader> imports, boolean importSlf4japi )
{
ClassRealm coreRealm = getCoreRealm();
@ -219,7 +219,10 @@ private void importMavenApi( Map<String, ClassLoader> imports )
// imports.put( "com.google.inject.util.*", coreRealm );
// SLF4J
imports.put( "org.slf4j.*", coreRealm );
if ( importSlf4japi )
{
imports.put( "org.slf4j.*", coreRealm );
}
}
/**

View File

@ -108,7 +108,10 @@ public class MojoDescriptor
/** Specify the required dependencies in a specified scope */
private String dependencyResolutionRequired = null;
/** The scope of (transitive) dependencies that should be collected but not resolved. */
/**
* The scope of (transitive) dependencies that should be collected but not resolved.
* @since 3.0-alpha-3
*/
private String dependencyCollectionRequired;
/** By default, the Mojo needs a Maven project to be executed */
@ -132,7 +135,10 @@ public class MojoDescriptor
/** By default, the Mojo don't need reports to run */
private boolean requiresReports = false;
/** By default, mojos are not threadsafe */
/**
* By default, mojos are not threadsafe
* @since 3.0-beta-2
*/
private boolean threadSafe = false;
/**
@ -271,6 +277,9 @@ public String isDependencyResolutionRequired()
return dependencyResolutionRequired;
}
/**
* @since 3.0-alpha-3
*/
public void setDependencyCollectionRequired( String requiresDependencyCollection )
{
this.dependencyCollectionRequired = requiresDependencyCollection;
@ -284,6 +293,7 @@ public void setDependencyCollectionRequired( String requiresDependencyCollection
* full dependency resolution might fail due to projects which haven't been built yet.
*
* @return The scope of (transitive) dependencies that should be collected or {@code null} if none.
* @since 3.0-alpha-3
*/
public String getDependencyCollectionRequired()
{
@ -664,6 +674,7 @@ public String getExecuteGoal()
/**
* @return True if the <code>Mojo</code> is thread-safe and can be run safely in parallel
* @since 3.0-beta-2
*/
public boolean isThreadSafe()
{
@ -672,6 +683,7 @@ public boolean isThreadSafe()
/**
* @param threadSafe indicates that the mojo is thread-safe and can be run safely in parallel
* @since 3.0-beta-2
*/
public void setThreadSafe( boolean threadSafe )
{