title: Conditionally including Flex libraries (SWCs) in mxmlc/compc ant tasks
body: <p>I have been struggling trying to figure out how to conditionally include Flex libraries in an ant build based on a property that is set on the command line.  I have tried a number of approaches with the <code>&lt;condition/&gt;</code> task, but so far have not gotten it to work.  Here is where I am currently.</p>
  
  <p>I have an init target that includes condition tasks like this:</p>
  
  <pre><code> &lt;condition property="automation.libs" value="automation.qtp"&gt;
    &lt;equals arg1="${automation}" arg2="qtp" casesensitive="false" trim="true"/&gt;
   &lt;/condition&gt;
  </code></pre>
  
  <p>The purpose of this task is to set a property that determines the name of the patternset to be used when declaring the  implicit fileset on a mxmlc or compc task.  The pattern set referenced above is defined as:</p>
  
  <pre><code> &lt;patternset id="automation.qtp"&gt;
    &lt;include name="automation*.swc"/&gt;
    &lt;include name="qtp.swc"/&gt;
   &lt;/patternset&gt;
  </code></pre>
  
  <p>The named patternset is then referenced by the mxmlc or compc task like this:</p>
  
  <pre><code>&lt;compc&gt;
   &lt;compiler.include-libraries dir="${FLEX_HOME}/frameworks/libs" append="true"&gt;
    &lt;patternset refid="${automation.libs}"/&gt;
   &lt;/compiler.include-libraries&gt;
  &lt;/compc&gt;
  </code></pre>
  
  <p>This doesn't appear to work.  At least the SWC size does not indicate that the additional automation libraries have been compiled in.  I want to be able to specify a command line property that determine which patternset to use for various types of builds.  </p>
  
  <p>Does anyone have any ideas about how to accomplish this?  Thanks!</p>