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/05/31 06:48:23 UTC
[royale-compiler] 01/02: use debugfile alias in fxg
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 7b712d81322e5a55eee6e802bdf0eab1fdf7a639
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu May 30 23:46:29 2019 -0700
use debugfile alias in fxg
---
.../royale/compiler/internal/units/FXGCompilationUnit.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/units/FXGCompilationUnit.java b/compiler/src/main/java/org/apache/royale/compiler/internal/units/FXGCompilationUnit.java
index aed04d4..406f6fa 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/units/FXGCompilationUnit.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/units/FXGCompilationUnit.java
@@ -52,6 +52,7 @@ import org.apache.royale.compiler.internal.fxg.sax.FXGSAXParser;
import org.apache.royale.compiler.internal.parsing.as.ASParser;
import org.apache.royale.compiler.internal.projects.CompilerProject;
import org.apache.royale.compiler.internal.projects.DefinitionPriority.BasePriority;
+import org.apache.royale.compiler.internal.projects.RoyaleProject;
import org.apache.royale.compiler.internal.scopes.ASProjectScope;
import org.apache.royale.compiler.internal.scopes.FXGFileScope;
import org.apache.royale.compiler.internal.scopes.PackageScope;
@@ -64,6 +65,7 @@ import org.apache.royale.compiler.internal.units.requests.ASFileScopeRequestResu
import org.apache.royale.compiler.internal.units.requests.SyntaxTreeRequestResult;
import org.apache.royale.compiler.problems.ICompilerProblem;
import org.apache.royale.compiler.problems.InternalCompilerProblem2;
+import org.apache.royale.compiler.projects.ICompilerProject;
import org.apache.royale.compiler.units.requests.IABCBytesRequestResult;
import org.apache.royale.compiler.units.requests.IFileScopeRequestResult;
import org.apache.royale.compiler.units.requests.IOutgoingDependenciesRequestResult;
@@ -95,7 +97,16 @@ public class FXGCompilationUnit extends CompilationUnitBase
public GeneratedSourceFileSpecfication(String name, String content)
{
this.reader = new StringReader(content);
- this.name = FilenameNormalization.normalize(name);
+ String alias = null;
+ ICompilerProject project = FXGCompilationUnit.this.getProject();
+ if (project instanceof RoyaleProject)
+ {
+ alias = ((RoyaleProject)project).getSwfDebugfileAlias();
+ }
+ if (alias != null)
+ this.name = alias + "/" + name;
+ else
+ this.name = FilenameNormalization.normalize(name);
}
private final StringReader reader;