Skip to content

Commit 22a9524

Browse files
authored
Merge branch 'master' into mpSupportReviewComments
2 parents 3f0cf6f + 380c122 commit 22a9524

File tree

32 files changed

+86
-92
lines changed

32 files changed

+86
-92
lines changed

boost-common/src/main/java/io/openliberty/boost/common/config/JDBCBoosterPackConfigurator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public JDBCBoosterPackConfigurator(BoosterDependencyInfo depInfo, LibertyServerC
3333
private final String DEPENDENCY_ARTIFACT = "org.apache.derby:derby:10.14.2.0";
3434

3535
/**
36-
* writes out jdbc default config data when selected by the presence of a
37-
* jdbc boost dependency
36+
* writes out jdbc default config data when selected by the presence of a jdbc
37+
* boost dependency
3838
*/
3939
@Override
4040
public void addServerConfig(Document doc) {
@@ -90,4 +90,4 @@ public String getDependencyToCopy() {
9090

9191
return DEPENDENCY_ARTIFACT;
9292
}
93-
}
93+
}

boost-common/src/main/java/io/openliberty/boost/common/config/LibertyServerConfigGenerator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public void addFeatures(List<String> features) {
170170
}
171171

172172
/**
173-
* Write the server.xml and bootstrap.properties to the server config
174-
* directory
173+
* Write the server.xml and bootstrap.properties to the server config directory
175174
*
176175
* @throws TransformerException
177176
* @throws IOException
@@ -223,4 +222,4 @@ public void addApplication(String appName) {
223222
serverRoot.appendChild(appCfg);
224223

225224
}
226-
}
225+
}

boost-common/src/main/java/io/openliberty/boost/common/docker/AbstractDockerI.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import io.openliberty.boost.common.BoostLoggerI;
2222

2323
public interface AbstractDockerI {
24-
24+
2525
public void execute(DockerClient dockerClient) throws BoostException;
26-
26+
2727
public RegistryAuthSupplier createRegistryAuthSupplier() throws BoostException;
28-
28+
2929
// Default methods
30-
30+
3131
default public String getImageName(String repository, String tag) {
3232
return repository + ":" + tag;
3333
}
@@ -45,7 +45,7 @@ default public boolean isRepositoryValid(String repository) {
4545

4646
return Pattern.matches(repositoryRegExp, repository);
4747
}
48-
48+
4949
default public DockerClient getDockerClient(boolean useProxy) throws BoostException {
5050
final RegistryAuthSupplier authSupplier = createRegistryAuthSupplier();
5151
try {
@@ -55,7 +55,8 @@ default public DockerClient getDockerClient(boolean useProxy) throws BoostExcept
5555
}
5656
}
5757

58-
default public boolean isValidDockerConfig(BoostLoggerI log, String repository, String tag, String artifactId) throws BoostException {
58+
default public boolean isValidDockerConfig(BoostLoggerI log, String repository, String tag, String artifactId)
59+
throws BoostException {
5960
if (repository.equals(artifactId) && !repository.equals(repository.toLowerCase())) {
6061
repository = artifactId.toLowerCase();
6162
log.debug(

boost-common/src/main/java/io/openliberty/boost/common/docker/DockerPushI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
import io.openliberty.boost.common.BoostLoggerI;
2020

2121
public interface DockerPushI extends AbstractDockerI {
22-
23-
default public void dockerPush(DockerClient dockerClient, String artifactId, String repository, String tag, BoostLoggerI log) throws BoostException {
22+
23+
default public void dockerPush(DockerClient dockerClient, String artifactId, String repository, String tag,
24+
BoostLoggerI log) throws BoostException {
2425
final DockerLoggingProgressHandler progressHandler = new DockerLoggingProgressHandler(log);
2526
final String currentImage = getImageName(repository, tag);
2627
String newImage = null;

boost-common/src/main/java/io/openliberty/boost/common/docker/dockerizer/Dockerizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ private boolean isFileGeneratedByPlugin(File file) throws IOException {
146146
return false;
147147
}
148148

149-
}
149+
}

boost-common/src/main/java/io/openliberty/boost/common/docker/dockerizer/spring/DockerizeSpringBootClasspath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import io.openliberty.boost.common.docker.DockerParameters;
2222

2323
public class DockerizeSpringBootClasspath extends SpringDockerizer {
24-
24+
2525
public DockerizeSpringBootClasspath(File projectDirectory, File outputDirectory, File appArchive,
2626
String springBootVersion, DockerParameters params, BoostLoggerI log) {
2727
super(projectDirectory, outputDirectory, appArchive, springBootVersion, params, log);

boost-common/src/main/java/io/openliberty/boost/common/docker/dockerizer/spring/DockerizeSpringBootJar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public DockerizeSpringBootJar(File projectDirectory, File outputDirectory, File
2929

3030
public Map<String, String> getBuildArgs() {
3131
Map<String, String> buildArgs = new HashMap<String, String>();
32-
buildArgs.put("JAR_FILE", getAppPathString() + "/" + appArchive.getName());
32+
buildArgs.put("JAR_FILE", getAppPathString() + "/" + appArchive.getName());
3333
return buildArgs;
3434
}
3535

boost-common/src/main/java/io/openliberty/boost/common/docker/dockerizer/spring/SpringDockerizer.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
import net.wasdev.wlp.common.plugins.util.SpringBootUtil;
2929

3030
public abstract class SpringDockerizer extends Dockerizer {
31-
31+
3232
public final String SPRING_BOOT_VERSION;
3333
public final DockerParameters params;
3434

35-
public SpringDockerizer(File projectDirectory, File outputDirectory, File appArchive, String springBootVersion, DockerParameters params, BoostLoggerI log) {
35+
public SpringDockerizer(File projectDirectory, File outputDirectory, File appArchive, String springBootVersion,
36+
DockerParameters params, BoostLoggerI log) {
3637
super(projectDirectory, outputDirectory, appArchive, log);
3738
this.SPRING_BOOT_VERSION = springBootVersion;
3839
this.params = params;
@@ -62,7 +63,7 @@ public void createDockerFile() throws BoostException {
6263
throw new BoostException("Unable to create a Dockerfile because application type is not supported");
6364
}
6465
}
65-
66+
6667
protected String getAppPathString() {
6768

6869
Path projPath = projectDirectory.toPath();
@@ -82,12 +83,10 @@ protected String getSpringStartClass() throws BoostException {
8283
Attributes attributes = manifest.getMainAttributes();
8384
return attributes.getValue("Start-Class");
8485
} else {
85-
throw new BoostException(
86-
"Could not get Spring Boot start class due to error getting app manifest.");
86+
throw new BoostException("Could not get Spring Boot start class due to error getting app manifest.");
8787
}
8888
} catch (IOException e) {
89-
throw new BoostException("Could not get Spring Boot start class due to error opening app archive.",
90-
e);
89+
throw new BoostException("Could not get Spring Boot start class due to error opening app archive.", e);
9190
}
9291
}
9392

@@ -113,4 +112,4 @@ private void writeSpringBootDockerFile(File dockerFile, String startClass) throw
113112
}
114113
}
115114

116-
}
115+
}

boost-common/src/main/java/io/openliberty/boost/common/utils/LibertyBoosterUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public LibertyBoosterUtil(String libertyServerPath, List<BoosterDependencyInfo>
6363
}
6464

6565
/**
66-
* take a list of pom boost dependency strings and map to liberty features
67-
* for config. return a list of feature configuration objects for each found
66+
* take a list of pom boost dependency strings and map to liberty features for
67+
* config. return a list of feature configuration objects for each found
6868
* dependency.
6969
*
7070
* @param dependencies

boost-common/src/main/java/io/openliberty/boost/common/utils/SpringBootUtil.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ public class SpringBootUtil {
6464
private static final String SPRING_WEBSOCKET = "spring-websocket";
6565

6666
/**
67-
* Get the expected path of the Spring Boot Uber JAR (with .spring
68-
* extension) that was preserved during the Boost packaging process. No
69-
* guarantee that the path exists or the artifact is indeed a Spring Boot
70-
* Uber JAR.
67+
* Get the expected path of the Spring Boot Uber JAR (with .spring extension)
68+
* that was preserved during the Boost packaging process. No guarantee that the
69+
* path exists or the artifact is indeed a Spring Boot Uber JAR.
7170
*
7271
* @param artifact
7372
* @return the canonical path
@@ -115,8 +114,8 @@ public static File copySpringBootUberJar(File artifact, BoostLoggerI logger) thr
115114
}
116115

117116
/**
118-
* Add the Spring Boot Version property to the Manifest file in the Liberty
119-
* Uber JAR. This is to trick Spring Boot into not repackaging it.
117+
* Add the Spring Boot Version property to the Manifest file in the Liberty Uber
118+
* JAR. This is to trick Spring Boot into not repackaging it.
120119
*
121120
* @param artifact
122121
* @param springBootVersion

0 commit comments

Comments
 (0)