[royale-asjs] branch develop updated: Add license header

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger 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 feed138  Add license header
feed138 is described below

commit feed138f6f1b544fc13bcabf909a608b42736551
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:41:41 2017 +0100

Add license header
---
 GIT-TEST.txt | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/GIT-TEST.txt b/GIT-TEST.txt
index 9c66a3a..d59f068 100644
--- a/GIT-TEST.txt
+++ b/GIT-TEST.txt
@@ -1 +1,20 @@
+
+//
+//  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.
+//
+
+
 Just a commit test [Olaf Krueger]

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[MAVEN-BUILD] Royale-asjs - Build # 324 - Failure

2017-12-20 Thread Apache Jenkins Server
The Apache Jenkins build system has built Royale-asjs (build #324)

Status: Failure

Check console output at https://builds.apache.org/job/Royale-asjs/324/ to view 
the results.

[royale-website] branch develop updated: Create README.md

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/develop by this push:
 new bea5cac  Create README.md
bea5cac is described below

commit bea5caca37e0798ec74f375de7e06bde4b61c3fb
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:12:44 2017 +0100

Create README.md
---
 try-it-now/server/README.md | 53 +
 1 file changed, 53 insertions(+)

diff --git a/try-it-now/server/README.md b/try-it-now/server/README.md
new file mode 100644
index 000..e154a8e
--- /dev/null
+++ b/try-it-now/server/README.md
@@ -0,0 +1,53 @@
+# Apache-Royale-Try-it-now app
+
+# 1. Installation of NodeJS and required modules
+
+Install [NodeJS](https://nodejs.org/en/)  
+Install [Restify](http://restify.com/)
+
+npm install restify
+
+Instal [uuid](https://www.npmjs.com/package/uuid)
+
+npm install uuid
+
+# 2. Clone server/server.js from this repo to your local machine
+Search for
+
+const sdkPath
+in server.js and point it to your local "Royale jsonly SDK"
+
+# 3. Start server
+
+node server.js
+
+# 4. How to use
+
+Send a POST request with your Royale source code as payload:
+
+POST http://localhost:8080/apache/royale/compiler/targets/html
+
+Payload (Make sure to escape the source code):
+
+{
+"source": "..." 
+}
+
+Response:
+
+{
+"_id": "216108f0-e36c-11e7-805a-3dbc2fba1d86",
+"projectURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/bin/js-debug/index.html;,
+"compilerOutputURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerOutput.txt;,
+"errorURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerError.txt;
+}
+
+# 5. How it works
+
+The POST request initiates the creation of a unique Royale project directory 
at server side including a Main.mxml file that contains the passed Royale 
source code.  
+The project is compiled at server side and finally the service response with 
some particular URLs.
+For now, each request creates a new unique project direcory at server side.
+So we have implement some logic that takes care of removing all these 
directories.
+
+A more matured version should place users in the position to create, edit and 
share Royale code/projects.
+We also want to send the compiler log in real time back to the client by e.g. 
using sockets.

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch develop updated: Delete README.txt

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/develop by this push:
 new c0fca9f  Delete README.txt
c0fca9f is described below

commit c0fca9f4abac2b0037636dd295184a5642b0a02d
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:12:18 2017 +0100

Delete README.txt
---
 try-it-now/server/README.txt | 54 
 1 file changed, 54 deletions(-)

diff --git a/try-it-now/server/README.txt b/try-it-now/server/README.txt
deleted file mode 100644
index d851242..000
--- a/try-it-now/server/README.txt
+++ /dev/null
@@ -1,54 +0,0 @@
-# Apache-Royale-Try-it-now app
-
-# 1. Installation of NodeJS and required modules
-
-Install [NodeJS](https://nodejs.org/en/)  
-Install [Restify](http://restify.com/)
-
-npm install restify
-
-Instal [uuid](https://www.npmjs.com/package/uuid)
-
-npm install uuid
-
-# 2. Clone server/server.js from this repo to your local machine
-Search for
-
-const sdkPath
-in server.js and point it to your local "Royale jsonly SDK"
-
-# 3. Start server
-
-node server.js
-
-# 4. How to use
-
-Send a POST request with your Royale source code as payload:
-
-POST http://localhost:8080/apache/royale/compiler/targets/html
-
-Payload (Make sure to escape the source code):
-
-{
-"source": "..." 
-}
-
-Response:
-
-{
-"_id": "216108f0-e36c-11e7-805a-3dbc2fba1d86",
-"projectURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/bin/js-debug/index.html;,
-"compilerOutputURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerOutput.txt;,
-"errorURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerError.txt;
-}
-
-# 5. How it works
-
-The POST request initiates the creation of a unique Royale project directory 
at server side including a Main.mxml file that contains the passed Royale 
source code.  
-The project is compiled at server side and finally the service response with 
some particular URLs.
-For now, each request creates a new unique project direcory at server side.
-So we have implement some logic that takes care of removing all these 
directories.
-
-A more matured version should place users in the position to create, edit and 
share Royale code/projects.
-We also want to send the compiler log in real time back to the client by e.g. 
using sockets.
-

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch develop updated: Add "-debug=true" argument to compiler command

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/develop by this push:
 new d7ee7e1  Add "-debug=true" argument to compiler command
d7ee7e1 is described below

commit d7ee7e12dd861d0dbab70179d2a3d473e0a9c2c3
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:11:27 2017 +0100

Add "-debug=true" argument to compiler command
---
 try-it-now/server/server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/try-it-now/server/server.js b/try-it-now/server/server.js
index a440923..c70b3ab 100644
--- a/try-it-now/server/server.js
+++ b/try-it-now/server/server.js
@@ -61,6 +61,7 @@ function buildCompilerCommand(sourcePath, targetFile) {
 
 // Concatenate compiler command
 var command = sdkPath + "/royale-asjs/js/bin/mxmlc.bat" +
+" -debug=true" +
 " -source-path+=\"" + sourcePath + "\"" +
 " -targets=JSRoyale" + 
 " -locale=en_US" +

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch develop updated: Create README.txt

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/develop by this push:
 new aab078e  Create README.txt
aab078e is described below

commit aab078e975805af9a6867c05f621abe9b037bf6b
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:09:03 2017 +0100

Create README.txt
---
 try-it-now/server/README.txt | 54 
 1 file changed, 54 insertions(+)

diff --git a/try-it-now/server/README.txt b/try-it-now/server/README.txt
new file mode 100644
index 000..d851242
--- /dev/null
+++ b/try-it-now/server/README.txt
@@ -0,0 +1,54 @@
+# Apache-Royale-Try-it-now app
+
+# 1. Installation of NodeJS and required modules
+
+Install [NodeJS](https://nodejs.org/en/)  
+Install [Restify](http://restify.com/)
+
+npm install restify
+
+Instal [uuid](https://www.npmjs.com/package/uuid)
+
+npm install uuid
+
+# 2. Clone server/server.js from this repo to your local machine
+Search for
+
+const sdkPath
+in server.js and point it to your local "Royale jsonly SDK"
+
+# 3. Start server
+
+node server.js
+
+# 4. How to use
+
+Send a POST request with your Royale source code as payload:
+
+POST http://localhost:8080/apache/royale/compiler/targets/html
+
+Payload (Make sure to escape the source code):
+
+{
+"source": "..." 
+}
+
+Response:
+
+{
+"_id": "216108f0-e36c-11e7-805a-3dbc2fba1d86",
+"projectURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/bin/js-debug/index.html;,
+"compilerOutputURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerOutput.txt;,
+"errorURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerError.txt;
+}
+
+# 5. How it works
+
+The POST request initiates the creation of a unique Royale project directory 
at server side including a Main.mxml file that contains the passed Royale 
source code.  
+The project is compiled at server side and finally the service response with 
some particular URLs.
+For now, each request creates a new unique project direcory at server side.
+So we have implement some logic that takes care of removing all these 
directories.
+
+A more matured version should place users in the position to create, edit and 
share Royale code/projects.
+We also want to send the compiler log in real time back to the client by e.g. 
using sockets.
+

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch master updated: Delete server.js

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 1c4404d  Delete server.js
1c4404d is described below

commit 1c4404d114b6f5b3da0ae087adce216f460c16cf
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:07:44 2017 +0100

Delete server.js
---
 try-it-now/server/server.js | 159 
 1 file changed, 159 deletions(-)

diff --git a/try-it-now/server/server.js b/try-it-now/server/server.js
deleted file mode 100644
index c6e4b33..000
--- a/try-it-now/server/server.js
+++ /dev/null
@@ -1,159 +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.
-//
-
-
-// http://restify.com/
-var restify = require('restify');
-
-// https://www.npmjs.com/package/uuid
-var uuidV1 = require('uuid/v1');
-
-// The fs module is build-in with NodeJS
-var fs = require('fs');
-
-
-// Define some constants
-const sdkPath = "C:/local/apache-royale/sdks/apache-royale-jsonly-0.9.0-bin";
-const projectRootURL = "http://localhost:8080;;
-const targetDirName = "static";
-const compilerOutputFilename = "compilerOutput.txt";
-const compilerErrorFilename = "compilerError.txt";
-
-// Create Restify server
-var server = restify.createServer();
-
-// Enable body parser in order to be able to parse payload
-server.use(restify.plugins.bodyParser());
-
-// Define endpoint
-server.post('/apache/royale/compiler/targets/html', compile);
-
-// Serve generated static files
-server.get(/\/static\/?.*/, restify.plugins.serveStatic({
-directory: __dirname
-}));
-
-
-/**
- * Build compiler command... mostly hardcoded for now
- * 
- * @param {String} targetFile  Full qualified target file (Main.mxml)
- * @param {String} sourcePath  Absoulte project src path
- * 
- * @returns {String}
- */
-function buildCompilerCommand(sourcePath, targetFile) {
-
-// Concatenate compiler command
-var command = sdkPath + "/royale-asjs/js/bin/mxmlc.bat" +
-" -debug=true" + 
-" -source-path+=\"" + sourcePath + "\"" +
-" -targets=JSRoyale" + 
-" -locale=en_US" +
-" -external-library-path+=\"" + sdkPath + 
"/royale-asjs/js/libs/js.swc\"" + 
-" -allow-subclass-overrides=true" +
-" \"" + targetFile + "\"";
-return command;
-}
-
-
-/**
- * Create Royale project
- * 
- * @param {String} uuid 
- * @param {String} sourceCode  Royale project source code (MXML/AS3)
- * @returns {object} 
- */
-function createProject(uuid, sourceCode) {
-
-var projectPath = __dirname + "/" + targetDirName + "/" + uuid;
-var projectPathSrc = projectPath + "/src";
-var targetFile = projectPathSrc + "/Main.mxml";
-
-var targets = {projectPath: projectPath, 
-projectPathSrc: projectPathSrc, 
-targetFile: targetFile,
-projectURL: projectRootURL + "/" + targetDirName + "/" + 
uuid + "/bin/js-debug/index.html"};
-
-
-if (!fs.existsSync(targetDirName)){
-fs.mkdirSync(targetDirName);
-}
-
-// Create unique project directory where the compiled Royale code lives
-if (!fs.existsSync(targets.projectPath)){
-fs.mkdirSync(targets.projectPath);
-}
-
-// Create project source directory
-if (!fs.existsSync(targets.projectPathSrc)){
-fs.mkdirSync(targets.projectPathSrc);
-}
-
-// Create file 'Main.mxml' including source code from payload
-fs.appendFileSync(targets.targetFile, sourceCode);
-
-return targets;
-}
-
-
-/**
- * Compile Royale project and response with payload
- * 
- * @param {*} req 
- * @param {*} res 
- * @param {*} next 
- */
-function compile(req, res, next) {
-
-// Create UUID for directory naming
-var uuid = uuidV1(); 
-
-// Create project dirs and target file
-var targets = 

[royale-website] branch master updated: Delete README.md

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 16c73da  Delete README.md
16c73da is described below

commit 16c73da581339eea09e3e4c330fbd8e768c55d1b
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 22:07:29 2017 +0100

Delete README.md
---
 try-it-now/server/README.md | 53 -
 1 file changed, 53 deletions(-)

diff --git a/try-it-now/server/README.md b/try-it-now/server/README.md
deleted file mode 100644
index e154a8e..000
--- a/try-it-now/server/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# Apache-Royale-Try-it-now app
-
-# 1. Installation of NodeJS and required modules
-
-Install [NodeJS](https://nodejs.org/en/)  
-Install [Restify](http://restify.com/)
-
-npm install restify
-
-Instal [uuid](https://www.npmjs.com/package/uuid)
-
-npm install uuid
-
-# 2. Clone server/server.js from this repo to your local machine
-Search for
-
-const sdkPath
-in server.js and point it to your local "Royale jsonly SDK"
-
-# 3. Start server
-
-node server.js
-
-# 4. How to use
-
-Send a POST request with your Royale source code as payload:
-
-POST http://localhost:8080/apache/royale/compiler/targets/html
-
-Payload (Make sure to escape the source code):
-
-{
-"source": "..." 
-}
-
-Response:
-
-{
-"_id": "216108f0-e36c-11e7-805a-3dbc2fba1d86",
-"projectURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/bin/js-debug/index.html;,
-"compilerOutputURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerOutput.txt;,
-"errorURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerError.txt;
-}
-
-# 5. How it works
-
-The POST request initiates the creation of a unique Royale project directory 
at server side including a Main.mxml file that contains the passed Royale 
source code.  
-The project is compiled at server side and finally the service response with 
some particular URLs.
-For now, each request creates a new unique project direcory at server side.
-So we have implement some logic that takes care of removing all these 
directories.
-
-A more matured version should place users in the position to create, edit and 
share Royale code/projects.
-We also want to send the compiler log in real time back to the client by e.g. 
using sockets.

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch master updated: Create README.md

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 12d8bee  Create README.md
12d8bee is described below

commit 12d8bee7e1428a6c5c135faf39fb3370220860a3
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 21:55:51 2017 +0100

Create README.md
---
 try-it-now/server/README.md | 53 +
 1 file changed, 53 insertions(+)

diff --git a/try-it-now/server/README.md b/try-it-now/server/README.md
new file mode 100644
index 000..e154a8e
--- /dev/null
+++ b/try-it-now/server/README.md
@@ -0,0 +1,53 @@
+# Apache-Royale-Try-it-now app
+
+# 1. Installation of NodeJS and required modules
+
+Install [NodeJS](https://nodejs.org/en/)  
+Install [Restify](http://restify.com/)
+
+npm install restify
+
+Instal [uuid](https://www.npmjs.com/package/uuid)
+
+npm install uuid
+
+# 2. Clone server/server.js from this repo to your local machine
+Search for
+
+const sdkPath
+in server.js and point it to your local "Royale jsonly SDK"
+
+# 3. Start server
+
+node server.js
+
+# 4. How to use
+
+Send a POST request with your Royale source code as payload:
+
+POST http://localhost:8080/apache/royale/compiler/targets/html
+
+Payload (Make sure to escape the source code):
+
+{
+"source": "..." 
+}
+
+Response:
+
+{
+"_id": "216108f0-e36c-11e7-805a-3dbc2fba1d86",
+"projectURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/bin/js-debug/index.html;,
+"compilerOutputURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerOutput.txt;,
+"errorURL": 
"http://localhost:8080/static/216108f0-e36c-11e7-805a-3dbc2fba1d86/compilerError.txt;
+}
+
+# 5. How it works
+
+The POST request initiates the creation of a unique Royale project directory 
at server side including a Main.mxml file that contains the passed Royale 
source code.  
+The project is compiled at server side and finally the service response with 
some particular URLs.
+For now, each request creates a new unique project direcory at server side.
+So we have implement some logic that takes care of removing all these 
directories.
+
+A more matured version should place users in the position to create, edit and 
share Royale code/projects.
+We also want to send the compiler log in real time back to the client by e.g. 
using sockets.

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-website] branch master updated: Create server.js

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/master by this push:
 new 06f8376  Create server.js
06f8376 is described below

commit 06f83762e39437efa8dab588d022147ac061f3cf
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 21:54:29 2017 +0100

Create server.js
---
 try-it-now/server/server.js | 158 
 1 file changed, 158 insertions(+)

diff --git a/try-it-now/server/server.js b/try-it-now/server/server.js
new file mode 100644
index 000..a440923
--- /dev/null
+++ b/try-it-now/server/server.js
@@ -0,0 +1,158 @@
+
+//
+//  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.
+//
+
+
+// http://restify.com/
+var restify = require('restify');
+
+// https://www.npmjs.com/package/uuid
+var uuidV1 = require('uuid/v1');
+
+// The fs module is build-in with NodeJS
+var fs = require('fs');
+
+
+// Define some constants
+const sdkPath = "C:/local/apache-royale/sdks/apache-royale-jsonly-0.9.0-bin";
+const projectRootURL = "http://localhost:8080;;
+const targetDirName = "static";
+const compilerOutputFilename = "compilerOutput.txt";
+const compilerErrorFilename = "compilerError.txt";
+
+// Create Restify server
+var server = restify.createServer();
+
+// Enable body parser in order to be able to parse payload
+server.use(restify.plugins.bodyParser());
+
+// Define endpoint
+server.post('/apache/royale/compiler/targets/html', compile);
+
+// Serve generated static files
+server.get(/\/static\/?.*/, restify.plugins.serveStatic({
+directory: __dirname
+}));
+
+
+/**
+ * Build compiler command... mostly hardcoded for now
+ * 
+ * @param {String} targetFile  Full qualified target file (Main.mxml)
+ * @param {String} sourcePath  Absoulte project src path
+ * 
+ * @returns {String}
+ */
+function buildCompilerCommand(sourcePath, targetFile) {
+
+// Concatenate compiler command
+var command = sdkPath + "/royale-asjs/js/bin/mxmlc.bat" +
+" -source-path+=\"" + sourcePath + "\"" +
+" -targets=JSRoyale" + 
+" -locale=en_US" +
+" -external-library-path+=\"" + sdkPath + 
"/royale-asjs/js/libs/js.swc\"" + 
+" -allow-subclass-overrides=true" +
+" \"" + targetFile + "\"";
+return command;
+}
+
+
+/**
+ * Create Royale project
+ * 
+ * @param {String} uuid 
+ * @param {String} sourceCode  Royale project source code (MXML/AS3)
+ * @returns {object} 
+ */
+function createProject(uuid, sourceCode) {
+
+var projectPath = __dirname + "/" + targetDirName + "/" + uuid;
+var projectPathSrc = projectPath + "/src";
+var targetFile = projectPathSrc + "/Main.mxml";
+
+var targets = {projectPath: projectPath, 
+projectPathSrc: projectPathSrc, 
+targetFile: targetFile,
+projectURL: projectRootURL + "/" + targetDirName + "/" + 
uuid + "/bin/js-debug/index.html"};
+
+
+if (!fs.existsSync(targetDirName)){
+fs.mkdirSync(targetDirName);
+}
+
+// Create unique project directory where the compiled Royale code lives
+if (!fs.existsSync(targets.projectPath)){
+fs.mkdirSync(targets.projectPath);
+}
+
+// Create project source directory
+if (!fs.existsSync(targets.projectPathSrc)){
+fs.mkdirSync(targets.projectPathSrc);
+}
+
+// Create file 'Main.mxml' including source code from payload
+fs.appendFileSync(targets.targetFile, sourceCode);
+
+return targets;
+}
+
+
+/**
+ * Compile Royale project and response with payload
+ * 
+ * @param {*} req 
+ * @param {*} res 
+ * @param {*} next 
+ */
+function compile(req, res, next) {
+
+// Create UUID for directory naming
+var uuid = uuidV1(); 
+
+// Create project dirs and target file
+var targets = createProject(uuid, req.body.source);
+
+// Build 

[royale-asjs] branch develop updated: Create GIT-TEST.txt

2017-12-20 Thread okrueger
This is an automated email from the ASF dual-hosted git repository.

okrueger 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 1e3e947  Create GIT-TEST.txt
1e3e947 is described below

commit 1e3e947abae724626be60f6c40661c8287ec0011
Author: Olaf Krueger 
AuthorDate: Wed Dec 20 21:43:18 2017 +0100

Create GIT-TEST.txt
---
 GIT-TEST.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/GIT-TEST.txt b/GIT-TEST.txt
new file mode 100644
index 000..9c66a3a
--- /dev/null
+++ b/GIT-TEST.txt
@@ -0,0 +1 @@
+Just a commit test [Olaf Krueger]

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" '].


[royale-compiler] 01/01: Merge branch 'develop' into as2wasm

2017-12-20 Thread erikdebruin
This is an automated email from the ASF dual-hosted git repository.

erikdebruin pushed a commit to branch feature/as2wasm
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 34054d5ae4845acc1949e2b3f27c72d449d71597
Merge: da92fa3 995f0e8
Author: Erik de Bruin 
AuthorDate: Wed Dec 20 09:04:56 2017 +0100

Merge branch 'develop' into as2wasm

Signed-off-by: Erik de Bruin 

# Conflicts:
#   compiler-jx/.classpath
#   compiler-jx/.project
#   compiler/.classpath
#   compiler/.project

 compiler-build-tools/.classpath| 14 +++
 compiler-build-tools/.project  | 21 ++
 compiler-common/.classpath | 17 
 compiler-common/.project   | 32 --
 .../royale/compiler/config/Configuration.java  | 22 +-
 .../royale/compiler/config/Configurator.java   |  6 +++
 compiler-externc/.classpath| 18 
 compiler-externc/.project  | 32 --
 .../codegen/typedefs/TypedefsTestUtils.java|  8 ++--
 compiler-jburg-types/.classpath| 15 +++
 compiler-jburg-types/.project  | 21 ++
 compiler-jx/.classpath | 27 ++--
 compiler-jx/.project   | 23 --
 .../codegen/js/royale/TestRoyaleClass.java |  4 +-
 .../royale/compiler/internal/test/TestBase.java| 28 -
 .../test/resources/royale/files/models/MyModel.as  |  4 +-
 .../royale/files/models/MyModel_result.js  |  6 +--
 .../{externals => typedefs}/app1/as_src/Main.as|  0
 compiler-test-utils/.classpath | 14 +++
 compiler-test-utils/.project   | 21 ++
 .../org/apache/royale/utils/AntTestAdapter.java|  4 ++
 compiler/.classpath| 27 ++--
 compiler/.project  | 49 --
 .../test/java/mxml/tags/MXMLComponentTagTests.java |  4 +-
 .../java/mxml/tags/MXMLDefinitionTagTests.java |  3 +-
 .../test/java/mxml/tags/MXMLFeatureTestsBase.java  |  7 ++--
 .../internal/tree/mxml/MXMLComponentNodeTests.java | 22 +-
 .../tree/mxml/MXMLDesignLayerNodeTests.java|  4 +-
 .../internal/tree/mxml/MXMLNodeBaseTests.java  |  9 +++-
 royale-ant-tasks/.classpath| 15 +++
 royale-ant-tasks/.project  | 21 ++
 31 files changed, 274 insertions(+), 224 deletions(-)


-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" .