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 d89f9cd  try to figure out why checkintests build is failing for some 
folks
d89f9cd is described below

commit d89f9cd713f51ead9cf39ba47c2c24bbbc73a85d
Author: Alex Harui <[email protected]>
AuthorDate: Mon Mar 19 09:19:59 2018 -0700

    try to figure out why checkintests build is failing for some folks
---
 .../compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java | 7 +++++++
 1 file changed, 7 insertions(+)

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 6ad8bbb..aa5e096 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
@@ -162,13 +162,20 @@ public class MXMLRoyalePublisher extends JSGoogPublisher 
implements IJSPublisher
         // The source directory is the source path entry containing the Main 
class.
         List<File> sourcePaths = project.getSourcePath();
         String targetFile = configuration.getTargetFile().toLowerCase();
+       System.out.println("find project folder...");
         File imageSrcDir = null;
         for (File sp : sourcePaths)
         {
+               System.out.println("checking source path " + 
sp.getAbsolutePath());
                String lowercasePath = sp.getAbsolutePath().toLowerCase();
                if (targetFile.startsWith(lowercasePath))
                        imageSrcDir = sp;
         }
+        if (imageSrcDir == null)
+        {
+               imageSrcDir = new 
File(configuration.getTargetFile()).getAbsoluteFile().getParentFile();
+               System.out.println("not found on source path, using parent file 
" + imageSrcDir.getAbsolutePath());
+        }
         final String projectName = 
FilenameUtils.getBaseName(configuration.getTargetFile());
         String qName = null;
         try {

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

Reply via email to