-
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.
Launcher app dir improvements (#943)
* Launcher app dir imprs * Launcher with app dir fixes
- Loading branch information
1 parent
fb9745b
commit c64b12d
Showing
10 changed files
with
94 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ Simply, using e.g bash script - download the GAP launcher run it with regular GA | |
|
||
| GAP Launcher | AEM Project Archetype | | ||
|--------------|-----------------------| | ||
| 16.0.1 | 39 | | ||
| 16.0.4 | 39 | | ||
|
||
See also [plugin compatibility](../README.MD#compatibility). | ||
|
||
|
@@ -53,10 +53,34 @@ Below there are some sample usages of standalone launcher. | |
|
||
### Enhancing Maven build | ||
|
||
To add Gradle/GAP support to existing Maven build generated from Adobe AEM Archetype, run command below: | ||
To add Gradle/GAP support to existing Maven build generated from Adobe AEM Archetype... | ||
|
||
Choose one of the available options: | ||
|
||
A) Gradle files added to the project directly (recommended): | ||
|
||
```shell | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar && rm gap.jar | ||
``` | ||
Consequences: | ||
|
||
* newly scaffolded files will be VCS-tracked by the Maven project, | ||
* there will be a single code repository with Maven files supplemented by only a few extra Gradle environment files, | ||
* on fresh setups cloning only a single code repository is needed to set up an automated AEM environment. | ||
|
||
B) Gradle files at the root, Maven files nested into the `maven` directory | ||
|
||
Consequences: | ||
|
||
* newly scaffolded files will be NOT VCS-tracked by the Maven project, | ||
* there will be 2 code repositories: | ||
* existing one with Maven files (moved to sub dir `maven`), | ||
* dedicated one for Gradle environment files (root dir/parent of `maven`), | ||
* the advantage is separation of concerns (dedicate repository for environment files and the second one for application code), | ||
* on a fresh setup, cloning both code repositories is required to set up an automated AEM environment. | ||
|
||
```shell | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar && java -jar gap.jar && rm gap.jar | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar --app-dir=maven && rm gap.jar | ||
``` | ||
|
||
Demo (to play again refresh the page): | ||
|
@@ -149,7 +173,7 @@ It is using `sh gradlew props` task to provide AEM instance files details, howev | |
To set up and turn on AEM instance(s) by single command, consider running: | ||
|
||
```bash | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar \ | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar \ | ||
&& java -jar gap.jar --save-props \ | ||
-PfileTransfer.user=foo -PfileTransfer.password=pass \ | ||
-PlocalInstance.quickstart.jarUrl=http://company-share.com/aem/cq-quickstart-6.5.0.jar \ | ||
|
@@ -170,7 +194,7 @@ sh gradlew down | |
For deploying to AEM instance CRX package from any source consider using command: | ||
|
||
```shell | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar && java -jar gap.jar && rm gap.jar | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar && rm gap.jar | ||
sh gradlew instanceDeploy -Pinstance.author -Pinstance.deploy.packageUrl=https://github.com/neva-dev/felix-search-webconsole-plugin/releases/download/search-webconsole-plugin-1.3.0/search-webconsole-plugin-1.3.0.jar | ||
``` | ||
|
||
|
@@ -188,7 +212,7 @@ Also instead of URL, dependency notation could be used to resolve package from M | |
To interactively monitor logs of any AEM instances using task [`instanceTail`](instance-plugin.md#task-instancetail), consider running command: | ||
|
||
```bash | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar \ | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar \ | ||
&& java -jar gap.jar --save-props \ | ||
-Pinstance.dev-author.httpUrl=http://foo:[email protected]:4502 \ | ||
-Pinstance.dev-publish.httpUrl=http://foo:[email protected]:4503 \ | ||
|
@@ -203,7 +227,7 @@ Assuming instance running at URL *http://localhost:4502* or *http://localhost:45 | |
Consider appending parameter e.g `-Pinstance.list=http://admin:admin@localhost:4502` to customize the instance to work with. | ||
|
||
```bash | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar && java -jar gap.jar && rm gap.jar | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar && rm gap.jar | ||
sh gradlew packageSync -Pfilter.roots=[/content/example,/content/dam/example] | ||
``` | ||
|
||
|
@@ -212,7 +236,7 @@ sh gradlew packageSync -Pfilter.roots=[/content/example,/content/dam/example] | |
To copy JCR content between any AEM instances using task [`instanceRcp`](instance-plugin.md#task-instancercp), consider running commands: | ||
|
||
```bash | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3/gap.jar && java -jar gap.jar && rm gap.jar | ||
curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar && rm gap.jar | ||
sh gradlew instanceRcp \ | ||
-Pinstance.rcp.source=http://foo:[email protected]:4502 \ | ||
-Pinstance.rcp.target=http://foo:[email protected]:4503 \ | ||
|
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
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