[MAVEN-BUILD] FlexJS Framework (maven) - Build # 1246 - Still Failing
The Apache Jenkins build system has built FlexJS Framework (maven) (build #1246) Status: Still Failing Check console output at https://builds.apache.org/job/FlexJS%20Framework%20(maven)/1246/ to view the results.
git commit: [flex-asjs] [refs/heads/develop] - Returns parameter passed into setAttribute and setChild to enable chained assignment of values.
Repository: flex-asjs Updated Branches: refs/heads/develop f4276e0dd -> f19d96742 Returns parameter passed into setAttribute and setChild to enable chained assignment of values. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f19d9674 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f19d9674 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f19d9674 Branch: refs/heads/develop Commit: f19d96742f05669f48d9587de6afa2d96e795cc0 Parents: f4276e0 Author: Harbs Authored: Sun Aug 27 10:47:48 2017 +0300 Committer: Harbs Committed: Sun Aug 27 10:47:48 2017 +0300 -- frameworks/projects/XML/src/main/flex/XML.as | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f19d9674/frameworks/projects/XML/src/main/flex/XML.as -- diff --git a/frameworks/projects/XML/src/main/flex/XML.as b/frameworks/projects/XML/src/main/flex/XML.as index 054682e..cf3d9ea 100644 --- a/frameworks/projects/XML/src/main/flex/XML.as +++ b/frameworks/projects/XML/src/main/flex/XML.as @@ -1808,7 +1808,7 @@ package return false; } - public function setAttribute(attr:*,value:String):void + public function setAttribute(attr:*,value:String):String { var i:int; if(!_attributes) @@ -1823,7 +1823,7 @@ package if(_attributes[i].name().equals(attr.name())) { _attributes[i].setValue(value); - return; + return value; } //addChild(_att) } @@ -1831,7 +1831,7 @@ package attr.setValue(value); addChild(attr); } - return; + return value; } if(attr.indexOf("xmlns") == 0) @@ -1857,13 +1857,13 @@ package if(_attributes[i].name().equals(attrXML.name())) { _attributes[i].setValue(value); - return; + return value; } //addChild(_att) } addChild(attrXML); } - + return value; } /** * Replaces the child properties of the XML object with the specified name with the specified XML or XMLList. @@ -1873,7 +1873,7 @@ package * @return * */ - public function setChild(elementName:*, elements:Object):void + public function setChild(elementName:*, elements:Object):Object { /* @@ -1943,6 +1943,7 @@ package var i:int; var len:int; var chld:XML; + var retVal:Object = elements; // I'm not wure that this a strict interpretation of the spec but I think this does the "right thing". var childType:String = typeof elements; @@ -1996,6 +1997,7 @@ package } //what to do if it's not XML or XMLList? Throw an error? Ignore? + return retVal; } /**
[MAVEN-BUILD] FlexJS Framework (maven) - Build # 1247 - Still Failing
The Apache Jenkins build system has built FlexJS Framework (maven) (build #1247) Status: Still Failing Check console output at https://builds.apache.org/job/FlexJS%20Framework%20(maven)/1247/ to view the results.
Re: git commit: [flex-asjs] [refs/heads/develop] - Added helper function
Hi Harbs, Thanks for adding it - That may be really helpful. I think you should consider move it to one of the folder to Basic: accessories or supportClasses. If you could also add version when it was introduced etc. What do you think? Thanks, Piotr On Sun, Aug 27, 2017, 06:43 wrote: > Repository: flex-asjs > Updated Branches: > refs/heads/develop 5b8f1c589 -> daca90f9e > > > Added helper function > > > Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo > Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/daca90f9 > Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/daca90f9 > Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/daca90f9 > > Branch: refs/heads/develop > Commit: daca90f9e688a3ac79edd569f759df2b5ba89b80 > Parents: 5b8f1c5 > Author: Harbs > Authored: Sun Aug 27 07:43:25 2017 +0300 > Committer: Harbs > Committed: Sun Aug 27 07:43:25 2017 +0300 > > -- > .../Basic/src/main/flex/BasicClasses.as | 4 > .../org/apache/flex/html/addElementToWrapper.as | 20 > 2 files changed, 24 insertions(+) > -- > > > > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/daca90f9/frameworks/projects/Basic/src/main/flex/BasicClasses.as > -- > diff --git a/frameworks/projects/Basic/src/main/flex/BasicClasses.as > b/frameworks/projects/Basic/src/main/flex/BasicClasses.as > index 697efa8..bc62158 100644 > --- a/frameworks/projects/Basic/src/main/flex/BasicClasses.as > +++ b/frameworks/projects/Basic/src/main/flex/BasicClasses.as > @@ -27,6 +27,10 @@ package > */ > internal class BasicClasses > { > + COMPILE::JS > + { > + import org.apache.flex.html.addElementToWrapper; > addElementToWrapper; > + } > import org.apache.flex.html.ToolTip; ToolTip; > import org.apache.flex.html.accessories.NumericOnlyTextInputBead; > NumericOnlyTextInputBead; > import org.apache.flex.html.beads.DispatchInputFinishedBead; > DispatchInputFinishedBead; > > > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/daca90f9/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as > -- > diff --git > a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as > b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as > new file mode 100644 > index 000..0c4427c > --- /dev/null > +++ > b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as > @@ -0,0 +1,20 @@ > +package org.apache.flex.html > +{ > +COMPILE::JS > +{ > +import org.apache.flex.core.UIBase; > +import org.apache.flex.core.WrappedHTMLElement; > +} > + > +/** > + * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement > + */ > +COMPILE::JS > +public function > addElementToWrapper(wrapper:UIBase,type:String):WrappedHTMLElement > +{ > +var elem:WrappedHTMLElement = document.createElement(type) as > WrappedHTMLElement; > + wrapper.positioner = wrapper.element = elem; > + elem.flexjs_wrapper = wrapper; > +return elem; > +} > +} > \ No newline at end of file > >
git commit: [flex-asjs] [refs/heads/develop] - Forgot header
Repository: flex-asjs Updated Branches: refs/heads/develop f19d96742 -> 37dc60031 Forgot header Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/37dc6003 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/37dc6003 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/37dc6003 Branch: refs/heads/develop Commit: 37dc60031f86d70159826770a9ea021046f65977 Parents: f19d967 Author: Harbs Authored: Sun Aug 27 12:40:02 2017 +0300 Committer: Harbs Committed: Sun Aug 27 12:40:02 2017 +0300 -- .../org/apache/flex/html/addElementToWrapper.as | 18 ++ 1 file changed, 18 insertions(+) -- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37dc6003/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as -- diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as index 0c4427c..f7638ba 100644 --- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as +++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/addElementToWrapper.as @@ -1,3 +1,21 @@ + +// +// 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 org.apache.flex.html { COMPILE::JS
[MAVEN-BUILD] FlexJS Framework (maven) - Build # 1248 - Fixed
The Apache Jenkins build system has built FlexJS Framework (maven) (build #1248) Status: Fixed Check console output at https://builds.apache.org/job/FlexJS%20Framework%20(maven)/1248/ to view the results.
git commit: [flex-asjs] [refs/heads/develop] - Add MDLDynamicTableExample to ilustrate how add/remove items to MDL Table - Currently only adding is working. The rest job will be done as part of FLEX-3
Repository: flex-asjs Updated Branches: refs/heads/develop 37dc60031 -> 885e32136 Add MDLDynamicTableExample to ilustrate how add/remove items to MDL Table - Currently only adding is working. The rest job will be done as part of FLEX-35354 Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/885e3213 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/885e3213 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/885e3213 Branch: refs/heads/develop Commit: 885e3213653ce7188d8365a1a8f2a2e2018d351d Parents: 37dc600 Author: piotrz Authored: Sun Aug 27 23:16:17 2017 +0200 Committer: piotrz Committed: Sun Aug 27 23:16:17 2017 +0200 -- examples/flexjs/MDLDynamicTableExample/pom.xml | 74 .../src/MDLDynamicTableExample.mxml | 36 ++ .../MDLDynamicTableExample/src/MainView.mxml| 65 + .../CustomTableRowItemRenderer.mxml | 46 .../src/models/UserListModel.as | 37 ++ .../src/resources/mdl-js-index-template.html| 33 + .../src/resources/mdl-styles.css| 31 .../MDLDynamicTableExample/src/vo/UserVO.as | 40 +++ examples/flexjs/pom.xml | 1 + 9 files changed, 363 insertions(+) -- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/885e3213/examples/flexjs/MDLDynamicTableExample/pom.xml -- diff --git a/examples/flexjs/MDLDynamicTableExample/pom.xml b/examples/flexjs/MDLDynamicTableExample/pom.xml new file mode 100644 index 000..c1603a0 --- /dev/null +++ b/examples/flexjs/MDLDynamicTableExample/pom.xml @@ -0,0 +1,74 @@ + + +http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> + 4.0.0 + + +org.apache.flex.flexjs.examples +examples-flexjs +0.9.0-SNAPSHOT + + + MDLDynamicTableExample + 0.9.0-SNAPSHOT + swf + + Apache Flex - FlexJS: Examples: FlexJS: MDLDynamicTableExample + + + +indigo +pink + + + +src + + +src/resources +true + + + + +org.apache.flex.flexjs.compiler +flexjs-maven-plugin +true + + MDLDynamicTableExample.mxml + JSFlex + ${basedir}/target/javascript/bin/js-debug/mdl-js-index-template.html + -compiler.exclude-defaults-css-files=Basic-0.9.0-SNAPSHOT-js.swc:defaults.css + + + + + + + + org.apache.flex.flexjs.framework + MaterialDesignLite + 0.9.0-SNAPSHOT + swc + js + + + + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/885e3213/examples/flexjs/MDLDynamicTableExample/src/MDLDynamicTableExample.mxml -- diff --git a/examples/flexjs/MDLDynamicTableExample/src/MDLDynamicTableExample.mxml b/examples/flexjs/MDLDynamicTableExample/src/MDLDynamicTableExample.mxml new file mode 100644 index 000..4e2a329 --- /dev/null +++ b/examples/flexjs/MDLDynamicTableExample/src/MDLDynamicTableExample.mxml @@ -0,0 +1,36 @@ + + +http://ns.adobe.com/mxml/2009"; + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:local="*"> + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/885e3213/examples/flexjs/MDLDynamicTableExample/src/MainView.mxml -- diff --git a/examples/flexjs/MDLDynamicTableExample/src/MainView.mxml b/examples/flexjs/MDLDynamicTableExample/src/MainView.mxml new file mode 100644 index 000..95691fb --- /dev/null +++ b/examples/flexjs/MDLDynamicTableExample/src/MainView.mxml @@ -0,0 +1,65 @@ + + +http://ns.adobe.com/mxml/2009"; +xmlns:js="library://ns.apache.org/flexjs/basic" +xmlns:mdl="library://ns.apache.org/flexjs/mdl" xmlns:models="models.*"> + + + + + + + + + + + + + + + + + + + + + + + + + + +