This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/royale-asjs.wiki.git
The following commit(s) were added to refs/heads/master by this push: new b52bda8 changes in maven build docs to reflect JS only distribution b52bda8 is described below commit b52bda8d9c1cc7a6c48d4f8e9f0737478f8668bb Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Tue Feb 4 11:12:32 2020 +0100 changes in maven build docs to reflect JS only distribution --- Build-Apache-Royale-with-Maven.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Build-Apache-Royale-with-Maven.md b/Build-Apache-Royale-with-Maven.md index d2ddc69..210a468 100644 --- a/Build-Apache-Royale-with-Maven.md +++ b/Build-Apache-Royale-with-Maven.md @@ -8,6 +8,8 @@ Royale consists of three parts: The _compiler_, _typedefs_ and the _framework(as In addition to building the framework libraries, Maven also assembles the binary distribution of the Royale SDK to use in your IDE of choice. +> Notice that you can build for just **Javascript** targets, and for **Javascript** and **SWF** targets using the "option-with-swf" flag + ## Requirements 1. Install Java from: http://www.oracle.com/technetwork/java/javase/downloads/index.html (minimum version 8) @@ -100,13 +102,17 @@ Now you have the compiler, typedefs and framework ready. That's all :). ### Optional Maven Profiles for Framework (royale-asjs) -If you build without any profile, the framework is built, but no examples or distribution. To build the optional parts, add the following profiles to the command line using the `-P` maven option: +If you build without any profile, the framework is built just for Javascript (no SWF at all), but no examples or distribution. To build the optional parts, add the following profiles to the command line using the `-P` maven option: * **with-ui-testsuite**: It also builds the test suite modules and runs the integration tests > You can use [the latest > geckodriver](https://github.com/mozilla/geckodriver/releases) to run the > _Selenium UI tests in Firefox_ adding > `-Dwebdriver.gecko.driver=/Users/christofer.dutz/Downloads/geckodriver` * **option-with-swf**: Makes each module build the SWF version. * **with-examples**: Builds the all examples in an `examples` folder. -* **with-distribution** (requires `option-with-swf` profile): Also builds the _distribution_ (the Apache Royale SDK to use with an IDE). SDK built with maven allows you to get code intelligence in IDEs and build with standard IDE execution commands. To build distribution (SDK) in the folder of your choice use `-DdistributionTargetFolder={pathToDistributionDirectory}`. +* **with-distribution**: Also builds the _distribution_ (the Apache Royale SDK to use with an IDE). SDK built with maven allows you to get code intelligence in IDEs and build with standard IDE execution commands. To build distribution (SDK) in the folder of your choice use `-DdistributionTargetFolder={pathToDistributionDirectory}`. + +> Combine **with-distribution** and **option-with-swf** to get a SDK with SWF support (both Javascript and SWF). + +> Notice that you can use Maven distribution SDK with IDEs too!. So it's up to you to compile your Apps using standard maven commands (`mvn install`) or hitting the habitual Build button in your IDE of choice Quick Summary of build steps using the convenient maven wrapper (mvnw) and all available profiles: @@ -118,5 +124,5 @@ cd royale-compiler cd ../royale-typedefs ./mvnw install cd ../royale-asjs -./mvnw install -P with-examples,with-distribution,with-ui-testsuite,option-with-swf -Dwebdriver.gecko.driver=/Users/christofer.dutz/Downloads/geckodriver +./mvnw install -P with-examples,with-distribution,with-ui-testsuite,option-with-swf -Dwebdriver.gecko.driver=/Users/christofer.dutz/Downloads/geckodriver -DdistributionTargetFolder=/Users/christofer.dutz/ApacheRoyale/SDKs ```