[royale-asjs] branch develop updated: got something to work for me with FileReference
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new aa7a65c got something to work for me with FileReference aa7a65c is described below commit aa7a65cb622977d3da4ec6a00f8cbaf8f7f284dc Author: Alex Harui AuthorDate: Sun Mar 29 22:07:26 2020 -0700 got something to work for me with FileReference --- .../src/main/royale/mx/net/FileReference.as| 2 + .../mx/net/beads/FileUploaderUsingFormData.as | 157 + 2 files changed, 159 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as index 5108fa7..080d46d 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/FileReference.as @@ -29,6 +29,7 @@ package mx.net import org.apache.royale.events.Event; import org.apache.royale.net.URLRequest; import org.apache.royale.file.beads.FileUploader; + import mx.net.beads.FileUploaderUsingFormData; public class FileReference extends FileProxy { @@ -43,6 +44,7 @@ package mx.net _model = new FileModel(); _browser = new FileBrowserWithFilter(); _uploader = new FileLoaderAndUploader(); + addBead(new FileUploaderUsingFormData()); addBead(_model); addBead(_browser); addBead(_uploader); diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/beads/FileUploaderUsingFormData.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/beads/FileUploaderUsingFormData.as new file mode 100644 index 000..a0d5617 --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/beads/FileUploaderUsingFormData.as @@ -0,0 +1,157 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +package mx.net.beads +{ +import org.apache.royale.events.DetailEvent; +import org.apache.royale.file.beads.FileUploader; +import org.apache.royale.file.IFileModel; + +/** + * This class does uploads using FormData in JS + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + * + * @royalesuppresspublicvarwarning + */ +public class FileUploaderUsingFormData extends FileUploader +{ +/** + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + */ +public function FileUploaderUsingFormData() +{ +super(); +} + + COMPILE::JS + private var xhr:XMLHttpRequest; + + /** +* Indicates the status of the request. +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +* @productversion Royale 0.7.0 +*/ + public var requestStatus:int = 0; + + override public function upload(url:String):void + { + COMPILE::JS + { + requestStatus = 0; + xhr = new XMLHttpRequest(); + xhr.open("POST", url); + xhr.addEventListener("readystatechange", xhr_onreadystatechange,false); + xhr.addEventListener("progress", xhr_progress, false); + + var formData:FormData = new FormData(); + formData.append("Filename", (host.model as IFileModel).name); + formData.append("Filedata", (host.model as IFileModel).fileReference); + xhr.send(formData); + } + } + + /** +* Download is progressing (JS only). +* +* @langversion 3.0 +* @playerversion Flash 10.2 +* @playerversion AIR 2.6 +
[MAVEN-BUILD] Royale-asjs - Build # 2890 - Fixed
The Apache Jenkins build system has built Royale-asjs (build #2890) Status: Fixed Check console output at https://builds.apache.org/job/Royale-asjs/2890/ to view the results.
[royale-asjs] branch develop updated: BE0014 readme
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 19c3e90 BE0014 readme 19c3e90 is described below commit 19c3e909ed81cb9f20b4a0ff3f9b826eaec19e6b Author: Carlos Rovira AuthorDate: Sun Mar 29 18:27:23 2020 +0200 BE0014 readme --- .../BE0014_Working_with_vector_graphics/README.txt | 27 ++ 1 file changed, 27 insertions(+) diff --git a/examples/blog/BE0014_Working_with_vector_graphics/README.txt b/examples/blog/BE0014_Working_with_vector_graphics/README.txt new file mode 100644 index 000..59191ea --- /dev/null +++ b/examples/blog/BE0014_Working_with_vector_graphics/README.txt @@ -0,0 +1,27 @@ + +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +DESCRIPTION + +Working with vector graphics + +This example shows some supported ways to work with vector graphics in Apache Royale. +SVG graphics and the powerful ActionScript 3 drawing API: + +https://royale.apache.org/working-with-vector-graphics/
[MAVEN-BUILD] Royale-asjs - Build # 2889 - Failure
The Apache Jenkins build system has built Royale-asjs (build #2889) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/2889/ to view the results.
[royale-asjs] branch develop updated: BE0014: update name to match blog article
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 429f9b2 BE0014: update name to match blog article 429f9b2 is described below commit 429f9b2d02984c7da451f58c751a6d3ea8586816 Author: Carlos Rovira AuthorDate: Sun Mar 29 17:50:11 2020 +0200 BE0014: update name to match blog article --- .../BE0014_Working_with_vector_graphics.as3proj}| 0 .../asconfig.json | 2 +- .../pom.xml | 6 +++--- .../src/main/resources/assets/bottle-main.svg | 0 .../src/main/resources/assets/bottle-mask.svg | 0 .../src/main/resources/assets/bottle-shade.svg | 0 .../src/main/resources/bottle-perspective.afdesign | Bin .../src/main/resources/bottle.afdesign | Bin .../src/main/resources/jewel-example-index-template.html| 0 .../main/royale/BE0014_Working_with_vector_graphics.mxml} | 0 examples/blog/pom.xml | 2 +- 11 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/blog/BE0014_Working_with_Graphics/BE0014_Working_with_Graphics.as3proj b/examples/blog/BE0014_Working_with_vector_graphics/BE0014_Working_with_vector_graphics.as3proj similarity index 100% rename from examples/blog/BE0014_Working_with_Graphics/BE0014_Working_with_Graphics.as3proj rename to examples/blog/BE0014_Working_with_vector_graphics/BE0014_Working_with_vector_graphics.as3proj diff --git a/examples/blog/BE0014_Working_with_Graphics/asconfig.json b/examples/blog/BE0014_Working_with_vector_graphics/asconfig.json similarity index 95% rename from examples/blog/BE0014_Working_with_Graphics/asconfig.json rename to examples/blog/BE0014_Working_with_vector_graphics/asconfig.json index b6e1e15..1dfcb70 100644 --- a/examples/blog/BE0014_Working_with_Graphics/asconfig.json +++ b/examples/blog/BE0014_Working_with_vector_graphics/asconfig.json @@ -29,6 +29,6 @@ "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions", "files": [ -"src/main/royale/BE0014_Working_with_Graphics.mxml" +"src/main/royale/BE0014_Working_with_vector_graphics.mxml" ] } diff --git a/examples/blog/BE0014_Working_with_Graphics/pom.xml b/examples/blog/BE0014_Working_with_vector_graphics/pom.xml similarity index 91% rename from examples/blog/BE0014_Working_with_Graphics/pom.xml rename to examples/blog/BE0014_Working_with_vector_graphics/pom.xml index f19ebd3..7c073bd 100644 --- a/examples/blog/BE0014_Working_with_Graphics/pom.xml +++ b/examples/blog/BE0014_Working_with_vector_graphics/pom.xml @@ -26,11 +26,11 @@ 0.9.7-SNAPSHOT - BE0014_Working_with_Graphics + BE0014_Working_with_vector_graphics 0.9.7-SNAPSHOT swf - Apache Royale: Examples: Blog: 0014: Working with Graphics + Apache Royale: Examples: Blog: 0014: Working with vector graphics src/main/royale @@ -40,7 +40,7 @@ royale-maven-plugin true - BE0014_Working_with_Graphics.mxml + BE0014_Working_with_vector_graphics.mxml ${royale.targets} false ${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-main.svg b/examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-main.svg similarity index 100% rename from examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-main.svg rename to examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-main.svg diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-mask.svg b/examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-mask.svg similarity index 100% rename from examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-mask.svg rename to examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-mask.svg diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg b/examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-shade.svg similarity index 100% rename from examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg rename to examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/assets/bottle-shade.svg diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle-perspective.afdesign b/examples/blog/BE0014_Working_with_vector_graphics/src/main/resources/bottle-perspective.afdesign similarity index 100% rename from
[royale-asjs] branch develop updated: be014: latest fixes for blog publication
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new a8e291e be014: latest fixes for blog publication a8e291e is described below commit a8e291ea8ece4dd688015a4b12eeafe2c3d4099d Author: Carlos Rovira AuthorDate: Sun Mar 29 17:44:28 2020 +0200 be014: latest fixes for blog publication --- .../src/main/resources/assets/bottle-shade.svg | 6 + .../src/main/resources/bottle-perspective.afdesign | Bin 0 -> 116386 bytes .../src/main/resources/bottle.afdesign | Bin 64309 -> 67557 bytes .../main/royale/BE0014_Working_with_Graphics.mxml | 27 ++--- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg index 07be12d..f788f8a 100644 --- a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg +++ b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/assets/bottle-shade.svg @@ -18,6 +18,12 @@ http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; xml:space="preserve" xmlns:serif="http://www.serif.com/; style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> + + + + + + diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle-perspective.afdesign b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle-perspective.afdesign new file mode 100644 index 000..e4a0465 Binary files /dev/null and b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle-perspective.afdesign differ diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle.afdesign b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle.afdesign index bf1b5ab..29e2ea8 100644 Binary files a/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle.afdesign and b/examples/blog/BE0014_Working_with_Graphics/src/main/resources/bottle.afdesign differ diff --git a/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml b/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml index 794eb7f..5148049 100644 --- a/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml +++ b/examples/blog/BE0014_Working_with_Graphics/src/main/royale/BE0014_Working_with_Graphics.mxml @@ -25,7 +25,7 @@ xmlns:graphics="org.apache.royale.graphics.*"> - - - +]]> + + @@ -80,8 +79,8 @@ - - + + @@ -90,7 +89,7 @@ - + @@ -105,7 +104,7 @@ - + - + - + - +
[MAVEN-BUILD] Royale-asjs - Build # 2888 - Fixed
The Apache Jenkins build system has built Royale-asjs (build #2888) Status: Fixed Check console output at https://builds.apache.org/job/Royale-asjs/2888/ to view the results.
[royale-asjs] branch develop updated: use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new ab604df use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github ab604df is described below commit ab604df1dd1035376940e5e86927425098047741 Author: Carlos Rovira AuthorDate: Sun Mar 29 15:37:24 2020 +0200 use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github --- pom.xml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index b9897f0..7f70021 100644 --- a/pom.xml +++ b/pom.xml @@ -44,9 +44,9 @@ --> -scm:git:https://github.com/apache/royale-asjs.git - scm:git:https://github.com/apache/royale-asjs.git -scm:git:https://github.com/apache/royale-asjs.git + scm:git:https://gitbox.apache.org/repos/asf/royale-asjs.git + scm:git:https://gitbox.apache.org/repos/asf/royale-asjs.git +https://github.com/apache/royale-asjs @@ -83,7 +83,7 @@ apache.website - scm:git:https://git-wip-us.apache.org/repos/asf/royale-asjs.git + scm:git:https://gitbox.apache.org/repos/asf/royale-asjs.git
[royale-typedefs] branch develop updated: use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-typedefs.git The following commit(s) were added to refs/heads/develop by this push: new 063883b use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github 063883b is described below commit 063883b67e44f69c0f8f1f16ed7e89624eb20565 Author: Carlos Rovira AuthorDate: Sun Mar 29 15:33:43 2020 +0200 use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index b168be8..54f39f5 100644 --- a/pom.xml +++ b/pom.xml @@ -34,9 +34,9 @@ Apache Royale: TypeDefs: Parent - scm:git:https://github.com/apache/royale-typedefs.git - scm:git:https://github.com/apache/royale-typedefs.git -scm:git:https://github.com/apache/royale-typedefs.git + scm:git:https://gitbox.apache.org/repos/asf/royale-typedefs.git + scm:git:https://gitbox.apache.org/repos/asf/royale-typedefs.git +https://github.com/apache/royale-typedefs HEAD
[royale-compiler] branch develop updated: use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 81db349 use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github 81db349 is described below commit 81db34905f3f9b20717d18ad7dad441cc4df8756 Author: Carlos Rovira AuthorDate: Sun Mar 29 15:31:13 2020 +0200 use the gitbox url instead of the github url in the projects SCM tags as this prevents a RM having to setup the SSH key authentication for github --- compiler-build-tools/pom.xml | 6 +++--- compiler-jburg-types/pom.xml | 6 +++--- pom.xml | 8 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/compiler-build-tools/pom.xml b/compiler-build-tools/pom.xml index 33c542e..0666de0 100644 --- a/compiler-build-tools/pom.xml +++ b/compiler-build-tools/pom.xml @@ -35,9 +35,9 @@ Apache Royale: Build Tools - scm:git:ssh://g...@github.com/apache/royale-compiler.git - scm:git:ssh://g...@github.com/apache/royale-compiler.git -http://github.com/apache/royale-compiler + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git +https://github.com/apache/royale-compiler HEAD diff --git a/compiler-jburg-types/pom.xml b/compiler-jburg-types/pom.xml index 47c70ac..1c99d44 100644 --- a/compiler-jburg-types/pom.xml +++ b/compiler-jburg-types/pom.xml @@ -37,9 +37,9 @@ Types needed by JBurg to perform it's code generation. - scm:git:ssh://g...@github.com/apache/royale-compiler.git - scm:git:ssh://g...@github.com/apache/royale-compiler.git -http://github.com/apache/royale-compiler + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git +https://github.com/apache/royale-compiler HEAD diff --git a/pom.xml b/pom.xml index 7f44515..d8ce643 100644 --- a/pom.xml +++ b/pom.xml @@ -35,9 +35,9 @@ The Apache Royale Project - scm:git:ssh://g...@github.com/apache/royale-compiler.git - scm:git:ssh://g...@github.com/apache/royale-compiler.git -http://github.com/apache/royale-compiler + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git +https://github.com/apache/royale-compiler HEAD @@ -62,7 +62,7 @@ apache.website - scm:git:https://github.com/apache/royale-compiler.git + scm:git:https://gitbox.apache.org/repos/asf/royale-compiler.git
[MAVEN-BUILD] Royale-asjs - Build # 2887 - Failure
The Apache Jenkins build system has built Royale-asjs (build #2887) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/2887/ to view the results.
[royale-asjs] branch develop updated: Make sure mx combobox shows label
This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 8a6ff88 Make sure mx combobox shows label new 80767c5 Merge branch 'develop' of https://gitbox.apache.org/repos/asf/royale-asjs into develop 8a6ff88 is described below commit 8a6ff883666c978229b77b97ae3e5fe7e961e4f5 Author: DESKTOP-RH4S838\Yishay AuthorDate: Sat Mar 28 20:29:45 2020 +0300 Make sure mx combobox shows label --- .../MXRoyale/src/main/royale/mx/controls/ComboBox.as | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as index 26d75c6..6c4225f 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as @@ -25,6 +25,7 @@ import mx.controls.listClasses.BaseListData; import mx.events.FlexEvent; import org.apache.royale.html.beads.IComboBoxView; +import org.apache.royale.core.ISelectionModel; COMPILE::SWF { @@ -656,6 +657,8 @@ public class ComboBox extends ComboBase public function ComboBox() { super(); +if((model as ISelectionModel).labelField == null) + labelField = "label"; // It it better to start out with an empty data provider rather than // an undefined one. Otherwise, code in getDropdown() sets it to [] @@ -672,10 +675,15 @@ public class ComboBox extends ComboBase // //-- -/** - * @royalesuppresspublicvarwarning - */ -public var labelField:String = "label"; +public function get labelField():String +{ +return (model as ISelectionModel).labelField; +} + +public function set labelField(value:String):void +{ +(model as ISelectionModel).labelField = value; +} //-- //
[royale-compiler] branch develop updated: - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 32895ec - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me new abd44c9 Merge pull request #141 from chrisdutz/develop 32895ec is described below commit 32895ec5cb93d15fb71708b02700efc6cd2ac9d4 Author: Christofer Dutz AuthorDate: Sun Mar 29 13:54:46 2020 +0200 - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me --- .../compiler/tools/annotate/AnnotateClass.java | 23 .../tools/annotate/AnnotateClassesMojo.java| 23 .../tools/problems/BaseProblemGeneratorMojo.java | 24 - .../tools/problems/ProblemEnumGeneratorMojo.java | 23 .../ProblemResourceBundleGeneratorMojo.java| 23 .../UnknownTreeHandlerGeneratorMojo.java | 23 .../compiler/tools/unpack/UnpackResourceMojo.java | 24 - .../royale/compiler/clients/RoyaleToolGroup.java | 1 - .../internal/codegen/js/goog/JarSourceFile.java| 1 - .../org/apache/royale/utils/AntTestAdapter.java| 1 - .../java/org/apache/royale/utils/ITestAdapter.java | 1 - .../org/apache/royale/utils/MavenTestAdapter.java | 1 - .../apache/royale/utils/TestAdapterFactory.java| 1 - .../java/utils/FlashplayerSecurityHandler.java | 25 -- .../maven/extension/RoyaleLanguageSupport.java | 24 - .../royale/maven/extension/RoyaleScopeDeriver.java | 24 - .../maven/extension/RoyaleScopeSelector.java | 24 - .../org/apache/royale/maven/BaseCompileMojo.java | 24 - .../java/org/apache/royale/maven/BaseMojo.java | 24 - .../java/org/apache/royale/maven/ClassExclude.java | 24 - .../org/apache/royale/maven/CompileASDocMojo.java | 23 .../org/apache/royale/maven/CompileASMojo.java | 23 .../org/apache/royale/maven/CompileAppMojo.java| 23 .../org/apache/royale/maven/CompileJSMojo.java | 23 .../apache/royale/maven/CompileTypedefsMojo.java | 23 .../main/java/org/apache/royale/maven/Define.java | 24 - .../main/java/org/apache/royale/maven/Exclude.java | 24 - .../org/apache/royale/maven/ExterncConfig.java | 24 - .../java/org/apache/royale/maven/FieldExclude.java | 24 - .../apache/royale/maven/GenerateExterncMojo.java | 24 - .../apache/royale/maven/GenerateManifestsMojo.java | 24 - .../java/org/apache/royale/maven/IncludeFile.java | 24 - .../org/apache/royale/maven/ManifestComponent.java | 23 .../java/org/apache/royale/maven/Namespace.java| 24 - .../org/apache/royale/maven/PackageJSMojo.java | 24 - .../java/org/apache/royale/maven/TrustMojo.java| 25 -- .../royale/maven/trust/DefaultTrustHandler.java| 25 -- .../apache/royale/maven/trust/TrustHandler.java| 24 - .../royale/maven/utils/DependencyHelper.java | 25 -- 39 files changed, 462 insertions(+), 329 deletions(-) diff --git a/compiler-build-tools/src/main/java/org/apache/royale/compiler/tools/annotate/AnnotateClass.java b/compiler-build-tools/src/main/java/org/apache/royale/compiler/tools/annotate/AnnotateClass.java index a80b33b..3ddf462 100644 --- a/compiler-build-tools/src/main/java/org/apache/royale/compiler/tools/annotate/AnnotateClass.java +++ b/compiler-build-tools/src/main/java/org/apache/royale/compiler/tools/annotate/AnnotateClass.java @@ -1,15 +1,20 @@ /* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the
[royale-asjs] branch develop updated: - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new b426bf5 - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me new bf0a630 Merge pull request #792 from chrisdutz/develop b426bf5 is described below commit b426bf57e1349c764a382c8ee7ace0e2d6a92d09 Author: Christofer Dutz AuthorDate: Sun Mar 29 13:54:46 2020 +0200 - Fixed the Apache headers of files I contributed years ago - Removed the "Created by" mentions of me --- .../src/test/java/org/apache/royale/examples/AbstractIT.java | 1 - .../test/java/org/apache/royale/examples/royalestore/RoyaleStoreIT.java | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/AbstractIT.java b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/AbstractIT.java index 55aec54..f6cb781 100644 --- a/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/AbstractIT.java +++ b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/AbstractIT.java @@ -25,7 +25,6 @@ import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; /** - * Created by christoferdutz on 13.01.17. */ public abstract class AbstractIT { diff --git a/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/royalestore/RoyaleStoreIT.java b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/royalestore/RoyaleStoreIT.java index bd3adc1..b5223c0 100644 --- a/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/royalestore/RoyaleStoreIT.java +++ b/examples/examples-integrationtests/src/test/java/org/apache/royale/examples/royalestore/RoyaleStoreIT.java @@ -27,7 +27,6 @@ import org.openqa.selenium.By; import org.openqa.selenium.WebElement; /** - * Created by christoferdutz on 13.01.17. */ public class RoyaleStoreIT extends AbstractIT {
[royale-compiler] branch develop updated: - Made sure the release source bundles are automatically hashed with sha512 - Made sure Adobe is mentioned in the NOTICE files - Made sure the release artifac
This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new db71b79 - Made sure the release source bundles are automatically hashed with sha512 - Made sure Adobe is mentioned in the NOTICE files - Made sure the release artifacts names have an "apache-royale-" prefix new 117bcbf Merge pull request #140 from chrisdutz/develop db71b79 is described below commit db71b79ebb8ea0ede6a7133d89e42ce4b9962afc Author: Christofer Dutz AuthorDate: Sun Mar 29 13:15:06 2020 +0200 - Made sure the release source bundles are automatically hashed with sha512 - Made sure Adobe is mentioned in the NOTICE files - Made sure the release artifacts names have an "apache-royale-" prefix --- compiler-build-tools/pom.xml | 46 .../src/main/appended-resources/META-INF/NOTICE| 6 +++ compiler-jburg-types/pom.xml | 50 ++ .../src/main/appended-resources/META-INF/NOTICE| 6 +++ 4 files changed, 108 insertions(+) diff --git a/compiler-build-tools/pom.xml b/compiler-build-tools/pom.xml index f189533..33c542e 100644 --- a/compiler-build-tools/pom.xml +++ b/compiler-build-tools/pom.xml @@ -127,6 +127,14 @@ org.apache.maven.plugins maven-resources-plugin + + org.apache.maven.plugins + maven-assembly-plugin + 3.2.0 + + apache-royale-${project.artifactId}-${project.version} + + @@ -184,4 +192,42 @@ + + + apache-release + + + + +net.nicoulaj.maven.plugins +checksum-maven-plugin +1.8 + + + + files + + + + + +SHA-512 + + + + ${project.build.directory} + + apache-royale-${project.artifactId}-${project.version}-source-release.zip + + + + + + + + + + diff --git a/compiler-build-tools/src/main/appended-resources/META-INF/NOTICE b/compiler-build-tools/src/main/appended-resources/META-INF/NOTICE new file mode 100644 index 000..12eb51f --- /dev/null +++ b/compiler-build-tools/src/main/appended-resources/META-INF/NOTICE @@ -0,0 +1,6 @@ +=== + +The Initial Developer of the Original Code, known as Adobe Flex +and Adobe ASC 2.0 and JBurgGenerator.java, is Adobe Systems Incorporated +(http://www.adobe.com/). +Copyright 2003 - 2012 Adobe Systems Incorporated. All Rights Reserved. diff --git a/compiler-jburg-types/pom.xml b/compiler-jburg-types/pom.xml index c9086cc..47c70ac 100644 --- a/compiler-jburg-types/pom.xml +++ b/compiler-jburg-types/pom.xml @@ -102,6 +102,18 @@ + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.2.0 + + apache-royale-${project.artifactId}-${project.version} + + + + @@ -117,4 +129,42 @@ + + + apache-release + + + + +net.nicoulaj.maven.plugins +checksum-maven-plugin +1.8 + + + + files + + + + + +SHA-512 + + + + ${project.build.directory} + + royale-compiler-parent-${project.version}-source-release.zip + + + + + + + + + + diff --git a/compiler-jburg-types/src/main/appended-resources/META-INF/NOTICE b/compiler-jburg-types/src/main/appended-resources/META-INF/NOTICE new file mode 100644 index 000..12eb51f --- /dev/null +++ b/compiler-jburg-types/src/main/appended-resources/META-INF/NOTICE @@ -0,0 +1,6 @@ +=== + +The Initial Developer of the Original Code, known as Adobe Flex +and Adobe ASC 2.0 and JBurgGenerator.java, is Adobe Systems Incorporated +(http://www.adobe.com/). +Copyright 2003 - 2012 Adobe Systems Incorporated. All Rights Reserved.
[royale-compiler] 02/02: Fix for issue #126 - related to referencing a setter as 'accessor' for the nameNode of a FunctionCallNode instead of the getter.
This is an automated email from the ASF dual-hosted git repository. gregdove pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit be03439d96be0e7d06b10d32c3a49324c660be4a Author: greg-dove AuthorDate: Sun Mar 29 21:18:54 2020 +1300 Fix for issue #126 - related to referencing a setter as 'accessor' for the nameNode of a FunctionCallNode instead of the getter. --- .../internal/codegen/js/jx/FunctionCallArgumentsEmitter.java| 6 ++ .../compiler/internal/codegen/js/royale/TestRoyaleExpressions.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallArgumentsEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallArgumentsEmitter.java index cbd786a..4e25dd9 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallArgumentsEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallArgumentsEmitter.java @@ -24,6 +24,7 @@ import org.apache.royale.compiler.codegen.js.IJSEmitter; import org.apache.royale.compiler.definitions.IDefinition; import org.apache.royale.compiler.definitions.IFunctionDefinition; import org.apache.royale.compiler.definitions.IParameterDefinition; +import org.apache.royale.compiler.definitions.ISetterDefinition; import org.apache.royale.compiler.internal.codegen.as.ASEmitterTokens; import org.apache.royale.compiler.internal.codegen.js.JSSubEmitter; import org.apache.royale.compiler.internal.codegen.js.utils.EmitterUtils; @@ -59,6 +60,11 @@ public class FunctionCallArgumentsEmitter extends JSSubEmitter implements if (functionCallNode != null) { IDefinition calledDef = functionCallNode.resolveCalledExpression(getProject()); +if (calledDef instanceof ISetterDefinition) { +if (((ISetterDefinition)calledDef).resolveCorrespondingAccessor(getProject()) != null) { +calledDef = ((ISetterDefinition)calledDef).resolveCorrespondingAccessor(getProject()); +} +} if (calledDef instanceof IFunctionDefinition) { IFunctionDefinition functionDef = (IFunctionDefinition) calledDef; diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java index a9062b9..631df2c 100644 --- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java +++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java @@ -1306,7 +1306,7 @@ public class TestRoyaleExpressions extends TestGoogExpressions assertOut("/**\n * @export\n * @return {number}\n */\nfoo.bar.B.prototype.b = function() {\n var /** @type {Array.} */ a = null;\n return a.length;\n}"); } -@Ignore +@Test public void testFunctionProperty() { IFunctionNode node = (IFunctionNode) getNode(
[royale-compiler] branch develop updated (1cd2fb6 -> be03439)
This is an automated email from the ASF dual-hosted git repository. gregdove pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git. from 1cd2fb6 fix for #139 new 2c5cb7a Tidy-up only new be03439 Fix for issue #126 - related to referencing a setter as 'accessor' for the nameNode of a FunctionCallNode instead of the getter. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../royale/compiler/clients/problems/ProblemSettingsFilter.java | 3 --- .../internal/codegen/js/jx/FunctionCallArgumentsEmitter.java| 6 ++ .../compiler/internal/codegen/js/royale/TestRoyaleExpressions.java | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-)
[royale-compiler] 01/02: Tidy-up only
This is an automated email from the ASF dual-hosted git repository. gregdove pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git commit 2c5cb7ad9bae6ad8c04c16cc27fd0c6a65eedc6d Author: greg-dove AuthorDate: Sun Mar 29 21:11:14 2020 +1300 Tidy-up only --- .../apache/royale/compiler/clients/problems/ProblemSettingsFilter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler-common/src/main/java/org/apache/royale/compiler/clients/problems/ProblemSettingsFilter.java b/compiler-common/src/main/java/org/apache/royale/compiler/clients/problems/ProblemSettingsFilter.java index 57f7fb8..0670624 100644 --- a/compiler-common/src/main/java/org/apache/royale/compiler/clients/problems/ProblemSettingsFilter.java +++ b/compiler-common/src/main/java/org/apache/royale/compiler/clients/problems/ProblemSettingsFilter.java @@ -134,9 +134,6 @@ public class ProblemSettingsFilter implements IProblemFilter private void setShowBindingWarnings(boolean showBindingWarnings) { -// TODO: call setShowProblemByClass() with problems relating to -// binding warnings. -// CMP-1424 setShowProblemByClass(MXMLDatabindingSourceNotBindableProblem.class, showBindingWarnings); }