-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #873 from stuartwdouglas/fix-discovery
Change build discovery algorithm
- Loading branch information
Showing
29 changed files
with
809 additions
and
401 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
45 changes: 45 additions & 0 deletions
45
...s/build-recipes-database/src/main/java/com/redhat/hacbs/recipies/tools/BuildToolInfo.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,45 @@ | ||
package com.redhat.hacbs.recipies.tools; | ||
|
||
public class BuildToolInfo { | ||
|
||
private String version; | ||
private String releaseDate; | ||
private String minJdkVersion; | ||
private String maxJdkVersion; | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public BuildToolInfo setVersion(String version) { | ||
this.version = version; | ||
return this; | ||
} | ||
|
||
public String getReleaseDate() { | ||
return releaseDate; | ||
} | ||
|
||
public BuildToolInfo setReleaseDate(String releaseDate) { | ||
this.releaseDate = releaseDate; | ||
return this; | ||
} | ||
|
||
public String getMinJdkVersion() { | ||
return minJdkVersion; | ||
} | ||
|
||
public BuildToolInfo setMinJdkVersion(String minJdkVersion) { | ||
this.minJdkVersion = minJdkVersion; | ||
return this; | ||
} | ||
|
||
public String getMaxJdkVersion() { | ||
return maxJdkVersion; | ||
} | ||
|
||
public BuildToolInfo setMaxJdkVersion(String maxJdkVersion) { | ||
this.maxJdkVersion = maxJdkVersion; | ||
return this; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...-recipes-database/src/main/java/com/redhat/hacbs/recipies/tools/BuildToolInfoManager.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,28 @@ | ||
package com.redhat.hacbs.recipies.tools; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Path; | ||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; | ||
import com.redhat.hacbs.recipies.RecipeManager; | ||
|
||
public class BuildToolInfoManager implements RecipeManager<List<BuildToolInfo>> { | ||
|
||
public static BuildToolInfoManager INSTANCE = new BuildToolInfoManager(); | ||
|
||
private static final ObjectMapper MAPPER = new ObjectMapper(new YAMLFactory()) | ||
.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); | ||
|
||
@Override | ||
public List<BuildToolInfo> parse(Path file) throws IOException { | ||
return MAPPER.readerForListOf(BuildToolInfo.class).readValue(file.toFile()); | ||
} | ||
|
||
@Override | ||
public void write(List<BuildToolInfo> data, Path file) throws IOException { | ||
MAPPER.writeValue(file.toFile(), data); | ||
} | ||
} |
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
30 changes: 0 additions & 30 deletions
30
...st-processor/src/main/java/com/redhat/hacbs/container/analyser/build/DiscoveryResult.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.