You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/06/04 04:06:14 UTC

[royale-compiler] branch release_practice updated (d50436b -> fbcc3e7)

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

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


    from d50436b  filter out CRLF when building release artifacts
     new fdc8e7a  refactor so we don't create unused InputStreams
     new fbcc3e7  forward slashes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/royale/compiler/filespecs/FileSpecification.java    | 10 +++++-----
 .../internal/codegen/mxml/royale/MXMLRoyaleEmitter.java        |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)


[royale-compiler] 01/02: refactor so we don't create unused InputStreams

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fdc8e7a1ec3bfb8fa32c70a0fd49a7ae4ec300e1
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Jun 3 21:05:51 2019 -0700

    refactor so we don't create unused InputStreams
---
 .../apache/royale/compiler/filespecs/FileSpecification.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java b/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
index b77a2ff..db368ed 100644
--- a/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
+++ b/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
@@ -120,11 +120,11 @@ public class FileSpecification extends BaseFileSpecification implements IBinaryF
 	    final BOM bom = getBOM(strm);
         strm.skip(bom.pattern.length);
         
-        final NoCRLFInputStream input = new NoCRLFInputStream(strm);
-
-        final Reader reader = new BufferedReader(
-                new InputStreamReader(useCRLFFilter ? input : strm, bom.charset));
-        input.close();
+        final InputStreamReader inputSR = useCRLFFilter ? 
+        		new InputStreamReader(new NoCRLFInputStream(strm), bom.charset) :
+                new InputStreamReader(strm, bom.charset);
+        			
+        final Reader reader = new BufferedReader(inputSR);
         return reader;
 	}
 


[royale-compiler] 02/02: forward slashes

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fbcc3e76f1bd416d991e48ce64ce97619c7e15b7
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Jun 3 21:06:02 2019 -0700

    forward slashes
---
 .../royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
index 159afe2..ba1f799 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
@@ -2771,7 +2771,7 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements
             }
         }
         writeNewline("/**");
-        writeNewline(" * Generated by Apache Royale Compiler from " + sourceName);
+        writeNewline(" * Generated by Apache Royale Compiler from " + sourceName.replace('\\', '/'));
         writeNewline(" * " + cname);
         writeNewline(" *");
         writeNewline(" * @fileoverview");