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 2018/08/30 07:53:54 UTC

[royale-compiler] branch develop updated: make the copy of assets to release if configuration is for release

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-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new b803678  make the copy of assets to release if configuration is for release
b803678 is described below

commit b8036780855e6eb2f8bba13ba7dc75ff09e0aa3f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Aug 30 09:53:50 2018 +0200

    make the copy of assets to release if configuration is for release
---
 .../compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
index dff2c89..8540608 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
@@ -255,7 +255,10 @@ public class MXMLRoyalePublisher extends JSGoogPublisher implements IJSPublisher
 	                        	total += is.read(data, total, n - total);
 	                        }
 	                        FileUtils.writeByteArrayToFile(new File(intermediateDir, key), data);
-	                        FileUtils.writeByteArrayToFile(new File(releaseDir, key), data);
+                            if (configuration.release())
+                            {
+	                            FileUtils.writeByteArrayToFile(new File(releaseDir, key), data);
+                            }
 	                    }
 	                }
 	            }