This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-9090] Added project configuration option to activate
scanning of workspace for build.xml and pom.xml files to detect the module names of warnings.
- Loading branch information
Showing
9 changed files
with
127 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/hudson/plugins/analysis/util/NullModuleDetector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package hudson.plugins.analysis.util; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
|
||
/** | ||
* Null object that always returns the empty string as module name. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
public class NullModuleDetector extends ModuleDetector { | ||
/** {@inheritDoc} */ | ||
@Override | ||
public String guessModuleName(final String fileName, final boolean isMavenBuild, final boolean isAntBuild) { | ||
return StringUtils.EMPTY; | ||
} | ||
|
||
/** {@inheritDoc} */ | ||
@Override | ||
public String guessModuleName(final String originalFileName) { | ||
return StringUtils.EMPTY; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description.detectModules=Determines if Ant or Maven modules should be detected for all files that contain \ | ||
warnings. Activating this option may increase your build time since the detector scans the whole \ | ||
workspace for ''build.xml'' or ''pom.xml'' files in order to assign the correct module names. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
description.detectModules=Bestimmt ob Dateien, die Warnungen enthalten, nach Projekten gruppiert werden sollen. \ | ||
Die Projektnamen werden aus den Ant oder Maven Konfigurationsdateien ermittelt und den Warnungen zugeordnet. \ | ||
Da dazu der gesamte Arbeitsbereich nach ''build.xml'' oder ''pom.xml'' Dateien durchsucht wird, kann je \ | ||
nach Größe des Arbeitsbereichs die Dauer eines Builds erheblich erhöht werden. |