mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
added option to disable pre processor execution
This commit is contained in:
@@ -133,7 +133,7 @@ public final class BrowseCommandBuilder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result != null)
|
if (! disablePreProcessors && result != null)
|
||||||
{
|
{
|
||||||
preProcessorUtil.prepareForReturn(repository, result);
|
preProcessorUtil.prepareForReturn(repository, result);
|
||||||
}
|
}
|
||||||
@@ -160,6 +160,22 @@ public final class BrowseCommandBuilder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable the execution of pre processors.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param disablePreProcessors true to disable the pre processors execution
|
||||||
|
*
|
||||||
|
* @return {@code this}
|
||||||
|
*/
|
||||||
|
public BrowseCommandBuilder setDisablePreProcessors(
|
||||||
|
boolean disablePreProcessors)
|
||||||
|
{
|
||||||
|
this.disablePreProcessors = disablePreProcessors;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve only files which are children of the given path.
|
* Retrieve only files which are children of the given path.
|
||||||
* This path have to be a directory.
|
* This path have to be a directory.
|
||||||
@@ -274,7 +290,10 @@ public final class BrowseCommandBuilder
|
|||||||
private Cache<CacheKey, BrowserResult> cache;
|
private Cache<CacheKey, BrowserResult> cache;
|
||||||
|
|
||||||
/** disables the cache */
|
/** disables the cache */
|
||||||
private boolean disableCache;
|
private boolean disableCache = false;
|
||||||
|
|
||||||
|
/** disables the execution of pre processors */
|
||||||
|
private boolean disablePreProcessors = false;
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private PreProcessorUtil preProcessorUtil;
|
private PreProcessorUtil preProcessorUtil;
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ public final class LogCommandBuilder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changeset != null)
|
if (! disablePreProcessors && changeset != null)
|
||||||
{
|
{
|
||||||
preProcessorUtil.prepareForReturn(repository, changeset);
|
preProcessorUtil.prepareForReturn(repository, changeset);
|
||||||
}
|
}
|
||||||
@@ -242,7 +242,7 @@ public final class LogCommandBuilder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cpr != null)
|
if (! disablePreProcessors && cpr != null)
|
||||||
{
|
{
|
||||||
preProcessorUtil.prepareForReturn(repository, cpr);
|
preProcessorUtil.prepareForReturn(repository, cpr);
|
||||||
}
|
}
|
||||||
@@ -284,6 +284,22 @@ public final class LogCommandBuilder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable the execution of pre processors.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param disablePreProcessors true to disable the pre processors execution
|
||||||
|
*
|
||||||
|
* @return {@code this}
|
||||||
|
*/
|
||||||
|
public LogCommandBuilder setDisablePreProcessors(
|
||||||
|
boolean disablePreProcessors)
|
||||||
|
{
|
||||||
|
this.disablePreProcessors = disablePreProcessors;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve changesets until the given the {@link Changeset}
|
* Retrieve changesets until the given the {@link Changeset}
|
||||||
* with the given id.
|
* with the given id.
|
||||||
@@ -461,7 +477,10 @@ public final class LogCommandBuilder
|
|||||||
private Cache<CacheKey, ChangesetPagingResult> cache;
|
private Cache<CacheKey, ChangesetPagingResult> cache;
|
||||||
|
|
||||||
/** disable cache */
|
/** disable cache */
|
||||||
private boolean disableCache;
|
private boolean disableCache = false;
|
||||||
|
|
||||||
|
/** disable the execution of pre processors */
|
||||||
|
private boolean disablePreProcessors = false;
|
||||||
|
|
||||||
/** Implementation of the log command */
|
/** Implementation of the log command */
|
||||||
private LogCommand logCommand;
|
private LogCommand logCommand;
|
||||||
|
|||||||
Reference in New Issue
Block a user