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/13 16:18:51 UTC
[royale-asjs] branch develop updated: maven-archetypes:
"royale-jewel-module-application-archetype" improvments
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 4f4e145 maven-archetypes: "royale-jewel-module-application-archetype" improvments
4f4e145 is described below
commit 4f4e145912734c1dae2d52b5dfc86574253bbe8a
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Sep 13 18:18:39 2020 +0200
maven-archetypes: "royale-jewel-module-application-archetype" improvments
---
.../META-INF/maven/archetype-metadata.xml | 9 +++
.../archetype-resources/.vscode/launch.json | 74 ++++++++++++++++++++++
.../archetype-resources/.vscode/tasks.json | 45 +++++++++++++
.../src/main/resources/archetype-resources/pom.xml | 2 +-
4 files changed, 129 insertions(+), 1 deletion(-)
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
index 1412737..ffc6f77 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -24,6 +24,15 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="${artifactId}">
+ <fileSets>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>.vscode</directory>
+ <includes>
+ <include>**/*.json</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
<requiredProperties>
<requiredProperty key="application">
<defaultValue>application</defaultValue>
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/launch.json b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/launch.json
new file mode 100644
index 0000000..34beed6
--- /dev/null
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/launch.json
@@ -0,0 +1,74 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ //CHROME - DEBUG
+ {
+ "name": "Launch Chrome (Debug)",
+ "type": "chrome",
+ "request": "launch",
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-debug",
+ "sourceMaps": true,
+ "runtimeArgs": ["--auto-ssl-client-auth", "--profile-directory=debug-profile"],
+ },
+ //CHROME - RELEASE
+ {
+ "name": "Launch Chrome (Release)",
+ "type": "chrome",
+ "request": "launch",
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-release/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-release",
+ "sourceMaps": true,
+ "runtimeArgs": ["--auto-ssl-client-auth", "--profile-directory=debug-profile"],
+ },
+
+ //FIREFOX - DEBUG
+ {
+ "name": "Launch Firefox (Debug)",
+ "type": "firefox",
+ "request": "launch",
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-debug"
+ },
+ //FIREFOX - RELEASE
+ {
+ "name": "Launch Firefox (Release)",
+ "type": "firefox",
+ "request": "launch",
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-release/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-release"
+ },
+
+ //BRAVE - DEBUG
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "Launch Brave (Debug)",
+ "runtimeExecutable": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
+ "runtimeArgs": ["--auto-ssl-client-auth"],
+ "userDataDir": true,
+ // "url": "http://localhost:8080",
+ // "webRoot": "${workspaceFolder}"
+ // "file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+ //"preLaunchTask": "mvn",
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-debug",
+ "sourceMaps": true
+ },
+ //BRAVE - RELEASE
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "Launch Brave (Release)",
+ "runtimeExecutable": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
+ "runtimeArgs": ["--auto-ssl-client-auth", "--profile-directory=debug-profile"],
+ "userDataDir": true,
+ // "url": "http://localhost:8080",
+ // "webRoot": "${workspaceFolder}"
+ "url": "file:///${workspaceRoot}/target/javascript/bin/js-release/index.html",
+ "webRoot": "${workspaceRoot}/target/javascript/bin/js-release",
+ //"preLaunchTask": "mvn",
+ "sourceMaps": true
+ }
+ ]
+}
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/tasks.json b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/tasks.json
new file mode 100644
index 0000000..f9f135c
--- /dev/null
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/.vscode/tasks.json
@@ -0,0 +1,45 @@
+#set($dollar = '$')
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "2.0.0",
+ "tasks": [
+ // MAVEN
+ {
+ "label": "Build with Maven",
+ "type": "shell",
+ "command": "mvn",
+ "args": [
+ "clean",
+ "install",
+ "-P option-with-swf",
+ "-DskipTests"
+ ],
+ "group": "build",
+ "presentation": {
+ "echo": true,
+ "reveal": "always",
+ "focus": true,
+ "panel": "dedicated"
+ },
+ "problemMatcher": []
+ },
+ // ASCONFIGC
+ {
+ "label": "build with asconfigc",
+ "type": "shell",
+ "command": "asconfigc",
+ "args": [
+ "--sdk=${dollar}{config:as3mxml.sdk.framework}"
+ ],
+ "group": "build",
+ "presentation": {
+ "echo": true,
+ "reveal": "always",
+ "focus": true,
+ "panel": "dedicated"
+ },
+ "problemMatcher": []
+ }
+ ]
+}
\ No newline at end of file
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
index acdf002..6a305fd 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/pom.xml
@@ -35,7 +35,7 @@
<version>\${version}</version>
<packaging>pom</packaging>
- <name>\${artifactId}</name>
+ <name>Apache Royale Jewel Multi Module Application :: \${artifactId}</name>
<modules>
<module>${application}</module>