This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/develop by this push:
     new 79eb080  also output a simple list of classes
79eb080 is described below

commit 79eb080cde01ddbe1d69c7e2bb7c1f4aa261a202
Author: Alex Harui <[email protected]>
AuthorDate: Thu Feb 1 18:21:56 2018 -0800

    also output a simple list of classes
---
 .../codegen/js/royale/JSRoyaleASDocEmitter.java    | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java
index 468084e..252940c 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java
@@ -1032,6 +1032,37 @@ public class JSRoyaleASDocEmitter extends JSGoogEmitter 
implements IJSRoyaleEmit
                        e.printStackTrace();
                }
                
+           final File listFile = new File(outputFolder, "classlist.json");
+           out = new FileWriter(listFile);
+               out.write("{  \"classnames\": [");
+           System.out.println("Compiling file: " + listFile);
+       firstLine = true;
+       
+       for (String key : keyList)
+       {
+               if (!firstLine)
+                       out.write(",\n");
+               firstLine = false;
+               RoyaleASDocProject.ASDocRecord record = 
project.classes.get(key);
+               out.write("\"");
+               out.write(key);
+               out.write("\"");
+       }
+       
+               out.write("]}");
+        try {
+                       out.flush();
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+        try {
+                       out.close();
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               
                if (commentaryList.size() > 0) {        
                        final File commentaryFile = new File(outputFolder, 
"commentary.json");
                        FileWriter commentaryWriter = new 
FileWriter(commentaryFile);

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to