Skip to content

Commit

Permalink
[JENKINS-14646] Replace old name HudsonXXXX by XXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphC committed Aug 2, 2012
1 parent c1954bd commit fbdb5f7
Showing 1 changed file with 9 additions and 5 deletions.
Expand Up @@ -42,15 +42,19 @@ public Artifact selectArtifactRecorded(AbstractBuild<?, ?> build, BuildListener
listener.getLogger().println("[WeblogicDeploymentPlugin] - No artifacts are recorded. Is this a Maven project?");
}

listener.getLogger().println("[WeblogicDeploymentPlugin] - Retrieving artifacts recorded...");
listener.getLogger().println("[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on "+filteredResource+"]...");
List<Artifact> artifactsRecorded = new ArrayList<Artifact>();
for (MavenAbstractArtifactRecord<MavenBuild> mar : mars) {
listener.getLogger().println("[WeblogicDeploymentPlugin] - "+mar.getBuild().getArtifacts().size()+ " artifacts recorded in "+mar.getBuild().getArtifactsDir());
for(Artifact artifact : mar.getBuild().getArtifacts()){
//Si une expression reguliere est fournie on filtre en priorité sur la regex
if(StringUtils.isNotEmpty(filteredResource) && Pattern.matches(filteredResource, artifact.getFileName())){
listener.getLogger().println("[WeblogicDeploymentPlugin] - the following artifact recorded "+artifact.getFileName()+" is eligible.");
artifactsRecorded.add(artifact);
//Si une expression reguliere est fournie on filtre en priorite sur la regex
if(StringUtils.isNotEmpty(filteredResource)) {
if(Pattern.matches(filteredResource, artifact.getFileName())){
listener.getLogger().println("[WeblogicDeploymentPlugin] - the following artifact recorded "+artifact.getFileName()+" is eligible.");
artifactsRecorded.add(artifact);
} else {
listener.getLogger().println("[WeblogicDeploymentPlugin] - the following artifact "+artifact.getFileName()+" doesn't match "+filteredResource);
}
} else {
//On ne conserve que les jar,ear et war
Matcher matcher = ARTIFACT_DEPLOYABLE_PATTERN.matcher(artifact.getFileName());
Expand Down

0 comments on commit fbdb5f7

Please sign in to comment.