Skip to content

Commit

Permalink
Fix for WFMP-237, erbose argument when discovering provisioning info
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Jan 8, 2024
1 parent ae0b512 commit a1d882c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions plugin/src/main/java/org/wildfly/plugin/provision/GlowConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class GlowConfig {
private Set<String> excludedArchives = Set.of();
private boolean failsOnError = true;
private boolean preview;
private boolean verbose;

public GlowConfig() {
}
Expand All @@ -40,6 +41,7 @@ public Arguments toArguments(Path deployment, Path inProvisioning, String layers
.setVersion(version)
.setTechPreview(preview)
.setExcludeArchivesFromScan(excludedArchives)
.setVerbose(verbose)
.setOutput(OutputFormat.PROVISIONING_XML);
if (inProvisioning != null) {
builder.setProvisoningXML(inProvisioning);
Expand Down Expand Up @@ -175,4 +177,18 @@ public Set<String> getExcludedArchives() {
public void setExcludedArchives(Set<String> excludedArchives) {
this.excludedArchives = Set.copyOf(excludedArchives);
}

/**
* @param verbose the verbose to set
*/
public void setVerbose(boolean verbose) {
this.verbose = verbose;
}

/**
* @return the verbose
*/
public boolean isVerbose() {
return verbose;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ public class PackageServerMojo extends AbstractProvisionServerMojo {
* Wildcards ({@code *}) are allowed. N.B. Just the name of the archive is matched, do not attempt
* to specify a full path within the jar. The following examples would be valid exclusions: {@code my-jar.jar},
* {@code *-internal.rar}.</li>
* <li>verbose: {@code true} | {@code false}. Display more information. The set of rules that selected Galleon layers are
* printed. Default to {@code false}.</li>
* <li>version: server version. Default being the latest released version.</li>
*
* </ul>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

<!-- galleon properties -->
<version.org.jboss.galleon>6.0.0.Beta1</version.org.jboss.galleon>
<version.org.wildfly.glow>1.0.0.Beta1</version.org.wildfly.glow>
<version.org.wildfly.glow>1.0.0.Beta2</version.org.wildfly.glow>
<plugin.fork.embedded>true</plugin.fork.embedded>
<!-- used by tests -->
<version.org.jboss.logging.slf4j-jboss-logging>1.2.1.Final</version.org.jboss.logging.slf4j-jboss-logging>
Expand Down

0 comments on commit a1d882c

Please sign in to comment.