Repository: flex-asjs Updated Branches: refs/heads/feature-autobuild/closure-classpath-sources 8bb7b41e3 -> a05cd7eed
- Added the dummy jars (containing only a manifest file) to the distribution - Removed some VanillaSDK related files Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a05cd7ee Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a05cd7ee Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a05cd7ee Branch: refs/heads/feature-autobuild/closure-classpath-sources Commit: a05cd7eed65ac094f974ebc3d479376a8aa504fd Parents: 8bb7b41 Author: Christofer Dutz <[email protected]> Authored: Mon Oct 31 17:17:36 2016 +0100 Committer: Christofer Dutz <[email protected]> Committed: Mon Oct 31 17:17:36 2016 +0100 ---------------------------------------------------------------------- build.xml | 2 - distribution/jars/compc/pom.xml | 60 +++++++++++++ distribution/jars/falcon-asc/pom.xml | 60 +++++++++++++ distribution/jars/falcon-compc/pom.xml | 60 +++++++++++++ distribution/jars/falcon-mxmlc/pom.xml | 60 +++++++++++++ distribution/jars/falcon-optimizer/pom.xml | 60 +++++++++++++ distribution/jars/falcon-swfdump/pom.xml | 65 ++++++++++++++ distribution/jars/mxmlc/pom.xml | 60 +++++++++++++ distribution/pom.xml | 50 ++++++++++- distribution/src/main/assembly/component.xml | 1 + manualtests/VanillaSDK_POC/build.xml | 48 ---------- manualtests/VanillaSDK_POC/src/Example.as | 101 ---------------------- manualtests/VanillaSDK_POC/src/Main.mxml | 39 --------- 13 files changed, 475 insertions(+), 191 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/build.xml ---------------------------------------------------------------------- diff --git a/build.xml b/build.xml index 18a583b..a715f60 100644 --- a/build.xml +++ b/build.xml @@ -643,7 +643,6 @@ <copy todir="${basedir}/temp/examples"> <fileset dir="${basedir}/examples" > <exclude name="**/FlexJSTest_again/**" /> - <exclude name="**/VanillaSDK_POC/**" /> <exclude name="**/*.swc"/> <exclude name="**/*.swf"/> <exclude name="**/.plxarc"/> @@ -795,7 +794,6 @@ <copy todir="${basedir}/temp/frameworks"> <fileset dir="${basedir}/frameworks"> <include name="**/**.js"/> - <exclude name="js/VanillaSDK/**" /> </fileset> </copy> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/compc/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/compc/pom.xml b/distribution/jars/compc/pom.xml new file mode 100644 index 0000000..1b3cfaa --- /dev/null +++ b/distribution/jars/compc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>compc</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>flex2.tools.Compc</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>flex-compiler-oem</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/falcon-asc/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/falcon-asc/pom.xml b/distribution/jars/falcon-asc/pom.xml new file mode 100644 index 0000000..e1b4ae1 --- /dev/null +++ b/distribution/jars/falcon-asc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-asc</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.compiler.clients.ASC</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/falcon-compc/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/falcon-compc/pom.xml b/distribution/jars/falcon-compc/pom.xml new file mode 100644 index 0000000..c332371 --- /dev/null +++ b/distribution/jars/falcon-compc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-compc</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.compiler.clients.COMPC</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/falcon-mxmlc/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/falcon-mxmlc/pom.xml b/distribution/jars/falcon-mxmlc/pom.xml new file mode 100644 index 0000000..d0bf1b9 --- /dev/null +++ b/distribution/jars/falcon-mxmlc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-mxmlc</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.compiler.clients.MXMLC</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/falcon-optimizer/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/falcon-optimizer/pom.xml b/distribution/jars/falcon-optimizer/pom.xml new file mode 100644 index 0000000..eec988e --- /dev/null +++ b/distribution/jars/falcon-optimizer/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-optimizer</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.compiler.clients.Optimizer</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/falcon-swfdump/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/falcon-swfdump/pom.xml b/distribution/jars/falcon-swfdump/pom.xml new file mode 100644 index 0000000..86f1ef8 --- /dev/null +++ b/distribution/jars/falcon-swfdump/pom.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-swfdump</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.swf.io.SWFDump</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.4</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/jars/mxmlc/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/jars/mxmlc/pom.xml b/distribution/jars/mxmlc/pom.xml new file mode 100644 index 0000000..ff99ffa --- /dev/null +++ b/distribution/jars/mxmlc/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="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"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.flexjs.framework</groupId> + <artifactId>flexjs-framework-parent</artifactId> + <version>0.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>mxmlc</artifactId> + <version>0.8.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathLayoutType>custom</classpathLayoutType> + <customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> + <mainClass>org.apache.flex.compiler.clients.MXMLC</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.flex.flexjs.compiler</groupId> + <artifactId>compiler</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/pom.xml b/distribution/pom.xml index 4db74fb..5fcde15 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -39,6 +39,17 @@ <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format> </properties> + <!-- Include the generation of some dummy jars needed by FlashBuilder --> + <modules> + <module>jars/compc</module> + <module>jars/mxmlc</module> + <module>jars/falcon-asc</module> + <module>jars/falcon-compc</module> + <module>jars/falcon-mxmlc</module> + <module>jars/falcon-optimizer</module> + <module>jars/falcon-swfdump</module> + </modules> + <dependencies> <!-- Add the compiler module --> <dependency> @@ -409,6 +420,43 @@ <artifactId>swfobject</artifactId> <version>2.2</version> </dependency> + + <!-- Add the dummy jars --> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>compc</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>mxmlc</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-asc</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-compc</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-mxmlc</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-optimizer</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex.flexjs.framework.distribution</groupId> + <artifactId>falcon-swfdump</artifactId> + <version>0.8.0-SNAPSHOT</version> + </dependency> </dependencies> <build> @@ -430,7 +478,7 @@ <executions> <execution> <id>unpack-swfobject</id> - <phase>package</phase> + <phase>process-resources</phase> <goals> <goal>unpack</goal> </goals> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/distribution/src/main/assembly/component.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/assembly/component.xml b/distribution/src/main/assembly/component.xml index 3293692..3b5621c 100644 --- a/distribution/src/main/assembly/component.xml +++ b/distribution/src/main/assembly/component.xml @@ -31,6 +31,7 @@ under the License. <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping> <includes> <include>org.apache.flex.flexjs.compiler:*:jar</include> + <include>org.apache.flex.flexjs.framework.distribution:*:jar</include> </includes> <excludes> <exclude>org.apache.flex.flexjs.compiler:compiler-jx:jar</exclude> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/manualtests/VanillaSDK_POC/build.xml ---------------------------------------------------------------------- diff --git a/manualtests/VanillaSDK_POC/build.xml b/manualtests/VanillaSDK_POC/build.xml deleted file mode 100644 index ee188cb..0000000 --- a/manualtests/VanillaSDK_POC/build.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0"?> -<!-- - - 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. - ---> - -<project name="build-with-falconjx" default="main" basedir="."> - - <property name="FLEX_HOME" - location="/Users/erik/Documents/ApacheFlex/repo/sdk.done" /> - - <property name="APP_ROOT" - value="${basedir}/src/" /> - - <property name="DIR_APACHE_JS_GOOG_PROJECT" - location="${FLEX_HOME}/frameworks/projects/apache-js-goog" /> - - <property name="DIR_CLOSURE_LIBRARY" - location="/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library" /> - - <property name="DIR_FALCONJX_COMPILE_SCRIPT" - location="/Users/erik/Documents/ApacheFlex/repo/falcon/compiler.jx/bin" /> - - <target name="main"> - <exec executable="./mxmlc" dir="${DIR_FALCONJX_COMPILE_SCRIPT}"> - <arg value="-library-path+=${DIR_APACHE_JS_GOOG_PROJECT}/bin" /> - <arg value="${APP_ROOT}/Example.as" /> - <arg value="-js-output-type=GOOG" /> - <arg value="-vanilla-sdk-lib=${DIR_APACHE_JS_GOOG_PROJECT}/src" /> - <arg value="-closure-lib=${DIR_CLOSURE_LIBRARY}" /> - </exec> - </target> - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/manualtests/VanillaSDK_POC/src/Example.as ---------------------------------------------------------------------- diff --git a/manualtests/VanillaSDK_POC/src/Example.as b/manualtests/VanillaSDK_POC/src/Example.as deleted file mode 100644 index 74b043a..0000000 --- a/manualtests/VanillaSDK_POC/src/Example.as +++ /dev/null @@ -1,101 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - -import flash.events.MouseEvent; - -import js.goog.spark.components.Button; -import js.goog.spark.components.Group; -import js.goog.spark.components.Label; - -public class Example extends Group -{ - private const BYEBYE:String = "Bye Bye"; - private const HELLOWORLD:String = "Hello World"; - - private var _counter:int = 100; - - public function Example() - { - init(); - } - - private var _btn1:Button; - private var _btn2:Button; - private var _btn3:Button; - private var _lbl1:Label; - private var _lbl2:Label; - - public function init():void - { - _lbl1 = new Label(); - _lbl1.x = 100; - _lbl1.y = 25; - _lbl1.text = HELLOWORLD; - addElement(_lbl1); - - _lbl2 = new Label(); - _lbl2.x = 200; - _lbl2.y = 25; - _lbl2.text = _counter + ""; - addElement(_lbl2); - - _btn1 = new Button(); - _btn1.x = 100; - _btn1.y = 50; - _btn1.label = "Click me"; - addElement(_btn1); - _btn1.addEventListener(MouseEvent.CLICK, btn1clickHandler); - - _btn2 = new Button(); - _btn2.x = 200; - _btn2.y = 50; - _btn2.label = "Add it"; - addElement(_btn2); - _btn2.addEventListener(MouseEvent.CLICK, btn2clickHandler); - - _btn3 = new Button(); - _btn3.x = 300; - _btn3.y = 50; - _btn3.label = "Move it"; - addElement(_btn3); - _btn3.addEventListener(MouseEvent.CLICK, btn3clickHandler); - } - - protected function btn1clickHandler(event:MouseEvent):void - { - if (_lbl1.text == HELLOWORLD) - _lbl1.text = BYEBYE; - else - _lbl1.text = HELLOWORLD; - } - - protected function btn2clickHandler(event:MouseEvent):void - { - _lbl2.text = --_counter + ""; - } - - protected function btn3clickHandler(event:MouseEvent):void - { - _btn3.x += 10; - } - -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a05cd7ee/manualtests/VanillaSDK_POC/src/Main.mxml ---------------------------------------------------------------------- diff --git a/manualtests/VanillaSDK_POC/src/Main.mxml b/manualtests/VanillaSDK_POC/src/Main.mxml deleted file mode 100644 index 82f4049..0000000 --- a/manualtests/VanillaSDK_POC/src/Main.mxml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -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. - ---> -<g:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:g="http://flex.apache.org/jsg" - creationComplete="creationCompleteHandler(event)" > - - <fx:Script><![CDATA[ - - import js.goog.mx.events.FlexEvent; - - protected function creationCompleteHandler(event:FlexEvent):void - { - var main:Example = new Example(); - - this.addElement(main); - } - - ]]></fx:Script> - - <fx:Declarations /> - -</g:Application>
