You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/09/05 22:08:58 UTC
[royale-asjs] branch develop updated:
royale-simple-application-archetype: add some config files for IDEs. Need
more work, better from IDE providers (Moonshine, AS3&MXML)
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 9fd9baf royale-simple-application-archetype: add some config files for IDEs. Need more work, better from IDE providers (Moonshine, AS3&MXML)
9fd9baf is described below
commit 9fd9baf796cbcebfa7860328152eeb5119ec8f88
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Sep 6 00:08:44 2020 +0200
royale-simple-application-archetype: add some config files for IDEs. Need more work, better from IDE providers (Moonshine, AS3&MXML)
---
archetypes/pom.xml | 34 +++---
.../royale-simple-application-archetype/pom.xml | 36 +++----
.../main/resources/META-INF/maven/archetype.xml | 4 +
.../resources/archetype-resources/App.mxml.as3proj | 117 +++++++++++++++++++++
.../resources/archetype-resources/asconfig.json | 34 ++++++
.../src/main/resources/archetype-resources/pom.xml | 2 +
6 files changed, 192 insertions(+), 35 deletions(-)
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index 3c9ac4a..9cb206e 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -1,21 +1,21 @@
<?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.
-
+<!--
+
+ 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>
diff --git a/archetypes/royale-simple-application-archetype/pom.xml b/archetypes/royale-simple-application-archetype/pom.xml
index 2ed7019..597006c 100644
--- a/archetypes/royale-simple-application-archetype/pom.xml
+++ b/archetypes/royale-simple-application-archetype/pom.xml
@@ -1,21 +1,21 @@
<?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.
-
+<!--
+
+ 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>
@@ -32,4 +32,4 @@
<name>Apache Royale: Framework: Archetypes: Simple Royale Application</name>
<description>Maven archetype for creating Royale Maven project for building a simple Royale application with both Flash and JavaScript output.</description>
-<properties /></project>
+</project>
diff --git a/archetypes/royale-simple-application-archetype/src/main/resources/META-INF/maven/archetype.xml b/archetypes/royale-simple-application-archetype/src/main/resources/META-INF/maven/archetype.xml
index 95062bb..1626bd2 100644
--- a/archetypes/royale-simple-application-archetype/src/main/resources/META-INF/maven/archetype.xml
+++ b/archetypes/royale-simple-application-archetype/src/main/resources/META-INF/maven/archetype.xml
@@ -22,6 +22,10 @@
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd">
<id>royale-simple-application-archetype</id>
<resources>
+ <resource>.vscode/launch.json</resource>
+ <resource>.vscode/tasks.json</resource>
+ <resource>asconfig.json</resource>
+ <resource>App.mxml.as3proj</resource>
<resource>src/main/royale/App.mxml</resource>
</resources>
</archetype>
diff --git a/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/App.mxml.as3proj b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/App.mxml.as3proj
new file mode 100644
index 0000000..fce3894
--- /dev/null
+++ b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/App.mxml.as3proj
@@ -0,0 +1,117 @@
+<!--
+
+ 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.
+
+-->
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <output>
+ <movie width="800"/>
+ <movie disabled="False"/>
+ <movie path="bin-debug/App.swf"/>
+ <movie platform="Flash Player"/>
+ <movie fps="60"/>
+ <movie version="11"/>
+ <movie height="600"/>
+ <movie background="#FFFFFF"/>
+ <movie input=""/>
+ </output>
+ <!-- Other classes to be compiled into your SWF -->
+ <jsOutput>
+ <option path="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+ </jsOutput>
+ <classpaths>
+ <class path="src"/>
+ </classpaths>
+ <moonshineResourcePaths></moonshineResourcePaths>
+ <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+ <build>
+ <option compilerConstants=""/>
+ <option strict="True"/>
+ <option useResourceBundleMetadata="True"/>
+ <option allowSourcePathOverlap="False"/>
+ <option sourceMap="True"/>
+ <option showDeprecationWarnings="True"/>
+ <option benchmark="False"/>
+ <option showBindingWarnings="True"/>
+ <option warnings="True"/>
+ <option customSDK="/Users/christofer.dutz/Downloads/MoonshineSDKs/Royale_SDK/apache-royale-0.9.6-bin-js/royale-asjs"/>
+ <option showActionScriptWarnings="True"/>
+ <option antBuildPath="build/build.xml"/>
+ <option verboseStackTraces="False"/>
+ <option loadConfig=""/>
+ <option additional="-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html"/>
+ <option linkReport=""/>
+ <option optimize="False"/>
+ <option locale=""/>
+ <option accessible="False"/>
+ <option staticLinkRSL="False"/>
+ <option showUnusedTypeSelectorWarnings="True"/>
+ <option useNetwork="True"/>
+ <option es="False"/>
+ </build>
+ <mavenBuild>
+ <option settingsFilePath=""/>
+ <option mavenBuildPath="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject"/>
+ <option commandLine=""/>
+ <actions>
+ <action action="install" actionName="Build"/>
+ <action action="clean package" actionName="Clean and package"/>
+ <action action="clean" actionName="Clean"/>
+ <action action="clean install" actionName="Clean and Build"/>
+ <action action="war:exploded" actionName="Exploded"/>
+ </actions>
+ </mavenBuild>
+ <includeLibraries></includeLibraries>
+ <libraryPaths></libraryPaths>
+ <externalLibraryPaths></externalLibraryPaths>
+ <rslPaths></rslPaths>
+ <intrinsics>
+ <element path="Library/AS3/frameworks/Flex4"/>
+ <element path="Library\AS3\frameworks\Flex4"/>
+ <element path="Library\AS3\frameworks\Flex4"/>
+ </intrinsics>
+ <library></library>
+ <compileTargets>
+ <compile path="src/NewJavaScriptBrowserProject.mxml"/>
+ </compileTargets>
+ <hiddenPaths></hiddenPaths>
+ <preBuildCommand>null</preBuildCommand>
+ <postBuildCommand alwaysRun="False">null</postBuildCommand>
+ <trustSVNCertificate>False</trustSVNCertificate>
+ <options>
+ <option testMovieCommand=""/>
+ <option defaultBuildTargets=""/>
+ <option isRoyale="True"/>
+ <option isExportedToExistingSource="False"/>
+ <option showHiddenPaths="False"/>
+ <option isPrimeFacesVisualEditor="False"/>
+ <option testMovie=""/>
+ <option visualEditorExportPath=""/>
+ </options>
+ <moonshineRunCustomization>
+ <option launchMethod="Simulator"/>
+ <option urlToLaunch="/Users/christofer.dutz/Library/Containers/com.moonshine-ide/Data/Documents/NewJavaScriptBrowserProject/bin/js-debug/index.html"/>
+ <option targetPlatform="5"/>
+ <option projectType="2"/>
+ <option customUrlToLaunch=""/>
+ <option deviceSimulator="null"/>
+ <deviceSimulator>null</deviceSimulator>
+ <certAndroid>null</certAndroid>
+ <certIos>null</certIos>
+ <certIosProvisioning>null</certIosProvisioning>
+ </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/asconfig.json b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/asconfig.json
new file mode 100644
index 0000000..dded036
--- /dev/null
+++ b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/asconfig.json
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+{
+ "config": "royale",
+ "compilerOptions": {
+ "debug": false,
+ "targets": ["JSRoyale", "SWF"],
+ "source-map": true,
+ "html-template": "src/main/resources/jewel-example-index-template.html",
+ "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+ },
+ "copySourcePathAssets": true,
+ "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
+ "files":
+ [
+ "src/main/royale/App.mxml"
+ ]
+}
diff --git a/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
index 30cad2e..d75b94e 100644
--- a/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/royale-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
@@ -42,6 +42,8 @@
<configuration>
<mainClass>App.mxml</mainClass>
<targets>JSRoyale,SWF</targets>
+ <debug>false</debug>
+ <!-- <additionalCompilerOptions>-source-map=true;</additionalCompilerOptions> -->
</configuration>
<dependencies>
<dependency>