Skip to content

Commit 12b235f

Browse files
committed
✏️ Trivial: Fix typos in comments and a formatting improvement.
1 parent 0714949 commit 12b235f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

rest-services/jbang_scripts/deploy_it_assets.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ class deploy_it_assets implements Callable<Integer> {
2828
private static final String AEM_SERVER_USER = "admin";
2929
private static final String AEM_SERVER_PASSWORD = "admin";
3030
private static final Path REST_SERVICES_PROJECT_DIR = Path.of("..");
31-
private static final List<Path> SAMPLES_DIRS_LIST = List.of(Path.of("/opt", "adobe", "ff_it_files"), REST_SERVICES_PROJECT_DIR.resolve(Path.of("test_containers", "ff_it_files")));
31+
private static final List<Path> SAMPLES_DIRS_LIST = List.of(
32+
Path.of("/opt", "adobe", "ff_it_files"),
33+
REST_SERVICES_PROJECT_DIR.resolve(Path.of("test_containers", "ff_it_files"))
34+
);
3235
private static final Path SAMPLES_DIR = findSamplesDir(SAMPLES_DIRS_LIST);
3336
private static final Path AF_TEST_FORMS_PATH = SAMPLES_DIR.resolve("sample00002test.zip");
3437
private static final Path OF_TEST_FORMS_PATH = SAMPLES_DIR.resolve("SampleForm.xdp");
@@ -40,8 +43,8 @@ class deploy_it_assets implements Callable<Integer> {
4043
// | The testing instance must have the SampleForm.xdp uploaded into a directory named sample-forms that resides directly under the
4144
// | FormsAndDocuments within the CRX repository. Without this, all the crx-related tests will fail.
4245
// |
43-
// | The testing instance must have the sample0002test.zip and sampleForm_JSON.zip packages uploaded amd installed.
44-
// | These packages contain adaptive forms that reside directly under theFormsAndDocuments called sample0002test and sample-json-adaptive-form-1.
46+
// | The testing instance must have the sample0002test.zip and sampleForm_JSON.zip packages uploaded an installed.
47+
// | These packages contain adaptive forms that reside directly under FormsAndDocuments called sample0002test and sample-json-adaptive-form-1.
4548
// | Without these forms, all the adaptive forms tests will fail.
4649
// |
4750
// | Protected mode must be turned off, per this: https://experienceleague.adobe.com/docs/experience-manager-65/forms/html5-forms/preview-xdp-forms-html.html?lang=en#disable-protected-mode
@@ -58,9 +61,12 @@ public static void main(String... args) {
5861
int exitCode = new CommandLine(new deploy_it_assets()).execute(args);
5962
System.exit(exitCode);
6063
}
61-
6264
@Override
63-
public Integer call() throws Exception { // your business logic goes here...
65+
public Integer call() throws Exception {
66+
return callWithArgs();
67+
}
68+
69+
public Integer callWithArgs() throws Exception { // your business logic goes here...
6470

6571
System.out.println("ProjectDir = '" + REST_SERVICES_PROJECT_DIR.toRealPath().toAbsolutePath() + "'");
6672
var pmClient = PackageManagerClient.builder()

0 commit comments

Comments
 (0)