Skip to content

Commit

Permalink
Remote builds: Move POM finder location
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlvilim committed Dec 13, 2014
1 parent 22ea5bd commit 839a6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/pluralsight/ekstazi/EkstaziBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public boolean perform(final AbstractBuild<?, ?> build, Launcher launcher,
final String ekstaziVersion = getDescriptor().getEkstaziVersion();

// Enable archiver for Ekstazi artifacts
MavenFinder mavenFinder = new MavenFinder(buildWorkspace);
final ArrayList<FilePath> pomFiles= mavenFinder.find();
if (ekstaziEnable == true) {
EkstaziArtifactArchiver ekstaziArchiver = new EkstaziArtifactArchiver();
build.getProject().getPublishersList().replaceBy(Collections.singleton(ekstaziArchiver));
Expand All @@ -66,6 +64,8 @@ public boolean perform(final AbstractBuild<?, ?> build, Launcher launcher,
public String call() throws IOException {
EkstaziManager ekstaziManager;
// Get the POM for this project
MavenFinder mavenFinder = new MavenFinder(buildWorkspace);
final ArrayList<FilePath> pomFiles= mavenFinder.find();
try {
if(pomFiles.size() > 0) {
for( FilePath pomFile : pomFiles) {
Expand Down

0 comments on commit 839a6f9

Please sign in to comment.