flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1399928 - /incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java
Date Fri, 19 Oct 2012 00:01:28 GMT
Author: aharui
Date: Fri Oct 19 00:01:27 2012
New Revision: 1399928

URL: http://svn.apache.org/viewvc?rev=1399928&view=rev
Log:
Generate link reports for every SWF

Modified:
    incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java

Modified: incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java?rev=1399928&r1=1399927&r2=1399928&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java (original)
+++ incubator/flex/sdk/branches/develop/mustella/java/src/utils/CompileMxmlUtils.java Fri
Oct 19 00:01:27 2012
@@ -30,6 +30,7 @@ import java.util.StringTokenizer;
  */
 public class CompileMxmlUtils {
     private String swf;
+	private String linkReport;
     private String fileBasedArgs;
     private String mxmlc;
     private String dir;
@@ -66,7 +67,8 @@ public class CompileMxmlUtils {
         }
 
         swf=mxml.substring(0,mxml.length()-4)+"swf";
-
+		linkReport=mxml.substring(0,mxml.length()-4)+"lnk.xml";
+		
         String newArgs=null;
 
         //if cmdLineArgs property exists used it for mxmlc args
@@ -152,11 +154,19 @@ public class CompileMxmlUtils {
             basedir=FileUtils.normalizeDir(basedir);
         }
 
+		boolean hasLinkReport = false;
+		
         List execArgsList=new Vector();
         execArgsList.add(mxmlc);
         for (int i=0;i<optionalArgs.length;i++) {
+			if (optionalArgs[i].indexOf("-link-report") != -1)
+				hasLinkReport = true;
             execArgsList.add(optionalArgs[i]);
         }
+		if (!hasLinkReport)
+		{
+			execArgsList.add("-link-report=" + linkReport);
+		}
         execArgsList.add(mxml);
         execArgs=(String[])execArgsList.toArray(new String[]{});
 



Mime
View raw message