<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MXcode &#187; java</title>
	<atom:link href="http://mxcode.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://mxcode.com</link>
	<description>All about coding</description>
	<lastBuildDate>Fri, 13 Jan 2012 06:02:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>how to update name to comment in PDM</title>
		<link>http://mxcode.com/2011/11/how-to-update-name-to-comment-in-pdm/</link>
		<comments>http://mxcode.com/2011/11/how-to-update-name-to-comment-in-pdm/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 02:24:16 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/?p=40</guid>
		<description><![CDATA['****************************************************************************** '* File: Comment2Name.vbs '* Purpose: 把字段及表的name用comment来代替 '* Use: 打开PDM，运行本脚本（Ctrl+Shift+X） '* Version: 1.0 '* Comment: 遍历PDM中的所有包，把数据表及字段的Name用comment来替换 '* Copyright (C) 2008 topsthink Inc. '****************************************************************************** Option Explicit ValidationMode = True InteractiveMode = im_Abort &#160; Dim mdl ' 定义当前的模型 '通过全局参数获得当前的模型 Set mdl = &#8230; <a href="http://mxcode.com/2011/11/how-to-update-name-to-comment-in-pdm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'******************************************************************************
</span><span style="color: #008000;">'* File:     Comment2Name.vbs
</span><span style="color: #008000;">'* Purpose:  把字段及表的name用comment来代替
</span><span style="color: #008000;">'* Use:      打开PDM，运行本脚本（Ctrl+Shift+X）
</span><span style="color: #008000;">'* Version:  1.0
</span><span style="color: #008000;">'* Comment:  遍历PDM中的所有包，把数据表及字段的Name用comment来替换
</span><span style="color: #008000;">'* Copyright (C) 2008 topsthink Inc.
</span><span style="color: #008000;">'******************************************************************************
</span>
<span style="color: #E56717; font-weight: bold;">Option</span> <span style="color: #E56717; font-weight: bold;">Explicit</span>
ValidationMode = <span style="color: #00C2FF; font-weight: bold;">True</span>
InteractiveMode = im_Abort
&nbsp;
<span style="color: #151B8D; font-weight: bold;">Dim</span> mdl <span style="color: #008000;">' 定义当前的模型
</span>
<span style="color: #008000;">'通过全局参数获得当前的模型
</span><span style="color: #151B8D; font-weight: bold;">Set</span> mdl = ActiveModel
<span style="color: #8D38C9; font-weight: bold;">If</span> (mdl <span style="color: #8D38C9; font-weight: bold;">Is</span> <span style="color: #00C2FF; font-weight: bold;">Nothing</span>) <span style="color: #8D38C9; font-weight: bold;">Then</span>
   MsgBox <span style="color: #800000;">&quot;没有选择模型，请选择一个模型并打开.&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">ElseIf</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> mdl.IsKindOf(PdPDM.cls_Model) <span style="color: #8D38C9; font-weight: bold;">Then</span>
   MsgBox <span style="color: #800000;">&quot;当前选择的不是一个物理模型（PDM）.&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">Else</span>
   ProcessFolder mdl
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
&nbsp;
<span style="color: #008000;">'--------------------------------------------------------------------------------
</span><span style="color: #008000;">'功能函数
</span><span style="color: #008000;">'--------------------------------------------------------------------------------
</span><span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> ProcessFolder(folder)
   <span style="color: #151B8D; font-weight: bold;">Dim</span> Tab <span style="color: #008000;">'定义数据表对象
</span>   <span style="color: #8D38C9; font-weight: bold;">for</span> <span style="color: #8D38C9; font-weight: bold;">each</span> Tab <span style="color: #8D38C9; font-weight: bold;">in</span> folder.tables
      <span style="color: #8D38C9; font-weight: bold;">if</span> <span style="color: #8D38C9; font-weight: bold;">not</span> tab.isShortcut <span style="color: #8D38C9; font-weight: bold;">then</span>
         <span style="color: #8D38C9; font-weight: bold;">if</span> tab.comment &lt;&gt; <span style="color: #800000;">&quot;&quot;</span> <span style="color: #8D38C9; font-weight: bold;">then</span> tab.name = tab.comment&amp;<span style="color: #800000;">&quot;(&quot;</span> &amp;tab.name&amp;<span style="color: #800000;">&quot;)&quot;</span> <span style="color: #008000;">'进行判断并赋值
</span>         <span style="color: #151B8D; font-weight: bold;">Dim</span> col <span style="color: #008000;">'定义列对象
</span>         <span style="color: #8D38C9; font-weight: bold;">for</span> <span style="color: #8D38C9; font-weight: bold;">each</span> col <span style="color: #8D38C9; font-weight: bold;">in</span> tab.columns
            <span style="color: #8D38C9; font-weight: bold;">if</span> col.comment &lt;&gt; <span style="color: #800000;">&quot;&quot;</span> <span style="color: #8D38C9; font-weight: bold;">then</span>
               <span style="color: #151B8D; font-weight: bold;">On</span> <span style="color: #151B8D; font-weight: bold;">Error</span> <span style="color: #151B8D; font-weight: bold;">Resume</span> <span style="color: #8D38C9; font-weight: bold;">Next</span> <span style="color: #008000;">'增加此句
</span>               col.name = col.comment <span style="color: #008000;">'进行判断并赋值
</span>            <span style="color: #8D38C9; font-weight: bold;">end</span> <span style="color: #8D38C9; font-weight: bold;">if</span>
         <span style="color: #8D38C9; font-weight: bold;">next</span>
      <span style="color: #8D38C9; font-weight: bold;">end</span> <span style="color: #8D38C9; font-weight: bold;">if</span>
   <span style="color: #8D38C9; font-weight: bold;">next</span>
&nbsp;
   <span style="color: #008000;">'对子包进行递归，如果不使用递归只能取到第一个模型图内的表
</span>   <span style="color: #151B8D; font-weight: bold;">dim</span> subfolder
   <span style="color: #8D38C9; font-weight: bold;">for</span> <span style="color: #8D38C9; font-weight: bold;">each</span> subfolder <span style="color: #8D38C9; font-weight: bold;">in</span> folder.Packages
      ProcessFolder subfolder
   <span style="color: #8D38C9; font-weight: bold;">next</span>
&nbsp;
   <span style="color: #008000;">'msgbox &quot;完成把name用comment的内容name代替&quot;
</span><span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2011/11/how-to-update-name-to-comment-in-pdm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to delete a record in solr</title>
		<link>http://mxcode.com/2011/11/how-to-delete-a-record-in-solr/</link>
		<comments>http://mxcode.com/2011/11/how-to-delete-a-record-in-solr/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 02:52:09 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/?p=33</guid>
		<description><![CDATA[http://172.16.2.177:8080/solr/update/?stream.body=&#60;delete&#62;&#60;id&#62;123&#60;/id&#62;&#60;/delete&#62;&#038;stream.contentType=text/xml;charset=utf-8&#038;commit=true]]></description>
			<content:encoded><![CDATA[<p>http://172.16.2.177:8080/solr/update/?stream.body=&lt;delete&gt;&lt;id&gt;123&lt;/id&gt;&lt;/delete&gt;&#038;stream.contentType=text/xml;charset=utf-8&#038;commit=true</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2011/11/how-to-delete-a-record-in-solr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another flex ant sample</title>
		<link>http://mxcode.com/2010/11/another-flex-ant-sample/</link>
		<comments>http://mxcode.com/2010/11/another-flex-ant-sample/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 05:30:49 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/11/another-flex-ant-sample/</guid>
		<description><![CDATA[&#60;!-- Copyright (c) 2007 FlexLib Contributors. See: http://code.google.com/p/flexlib/wiki/ProjectContributors &#160; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &#34;Software&#34;), to deal in the Software without restriction, including without &#8230; <a href="http://mxcode.com/2010/11/another-flex-ant-sample/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">     Copyright (c) 2007 FlexLib Contributors.  See:</span>
<span style="color: #808080; font-style: italic;">     http://code.google.com/p/flexlib/wiki/ProjectContributors</span>
&nbsp;
<span style="color: #808080; font-style: italic;">     Permission is hereby granted, free of charge, to any person obtaining a copy of</span>
<span style="color: #808080; font-style: italic;">     this software and associated documentation files (the &quot;Software&quot;), to deal in</span>
<span style="color: #808080; font-style: italic;">     the Software without restriction, including without limitation the rights to</span>
<span style="color: #808080; font-style: italic;">     use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies</span>
<span style="color: #808080; font-style: italic;">     of the Software, and to permit persons to whom the Software is furnished to do</span>
<span style="color: #808080; font-style: italic;">     so, subject to the following conditions:</span>
&nbsp;
<span style="color: #808080; font-style: italic;">     The above copyright notice and this permission notice shall be included in all</span>
<span style="color: #808080; font-style: italic;">     copies or substantial portions of the Software.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">     THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span style="color: #808080; font-style: italic;">     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span style="color: #808080; font-style: italic;">     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span style="color: #808080; font-style: italic;">     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span style="color: #808080; font-style: italic;">     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span style="color: #808080; font-style: italic;">     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span>
<span style="color: #808080; font-style: italic;">     SOFTWARE.</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;project</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;flexlib&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;lib&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Define variables/paths used in this build script --&gt;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Depending on the host os, fetch relevant prop file --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;condition</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;platformSpecificPropertyFile&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;build.mac.properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;os</span> <span style="color: #000066;">family</span>=<span style="color: #ff0000;">&quot;mac&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/condition<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;condition</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;platformSpecificPropertyFile&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;build.win.properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;os</span> <span style="color: #000066;">family</span>=<span style="color: #ff0000;">&quot;windows&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/condition<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;condition</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;platformSpecificPropertyFile&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;build.unix.properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;os</span> <span style="color: #000066;">family</span>=<span style="color: #ff0000;">&quot;unix&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/condition<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;./setup/config/${platformSpecificPropertyFile}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;./build.properties&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Have you edit the properties file to make sure the paths are right on your system?</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fail</span> <span style="color: #000066;">unless</span>=<span style="color: #ff0000;">&quot;asdoc.exe&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>The &quot;asdoc.exe&quot; property must be set in ${build.dir}/build.properties.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fail<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fail</span> <span style="color: #000066;">unless</span>=<span style="color: #ff0000;">&quot;compc.exe&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>The &quot;compc.exe&quot; property must be set in ${build.dir}/build.properties.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fail<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fail</span> <span style="color: #000066;">unless</span>=<span style="color: #ff0000;">&quot;mxmlc.exe&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>The &quot;mxmlc.exe&quot; property must be set in ${build.dir}/build.properties.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fail<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Extension for ANT to allow for tasks like &quot;for&quot; and &quot;propertyregex&quot; --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;net/sf/antcontrib/antlib.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pathelement</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;${setup.lib}/ant-contrib-1.0b3.jar&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/taskdef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Cleans project --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;clean&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${build}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- creates buid/dist folders --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${build}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${build.config}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.examples}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.docs}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Compile the unit tests for the library, placing the test runner .swf file</span>
<span style="color: #808080; font-style: italic;">         in the bin directory. --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compileTests&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${build.config}/tests-config.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${setup.config}/tests-config.template.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">overwrite</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replace</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${build.config}/tests-config.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_LIBS_HOME@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flexsdk.lib}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_BUILD_VERSION@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flex.version}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${mxmlc.exe}&quot;</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;'${tests.dir}/${testRunner.dir}/${testRunner.name}.mxml'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-o ${dist}/${testRunner.name}.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config '${flexsdk.dir}/frameworks/flex-config.xml'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config ${build.config}/tests-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Runs the unit tests for the library in the stand-alone Flash Player</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;test&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;compileTests&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">             If/When we add support for determining the status of unit tests</span>
<span style="color: #808080; font-style: italic;">             as part of the ANT build process, we need to change the spawn to</span>
<span style="color: #808080; font-style: italic;">             &quot;no&quot; so that ANT waits until the test runner closes before</span>
<span style="color: #808080; font-style: italic;">             proceeding.</span>
<span style="color: #808080; font-style: italic;">        --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${flashDebugPlayer.exe}&quot;</span> <span style="color: #000066;">spawn</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;${dist}/${testRunner.name}.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Compile all of the classes under the &quot;src&quot; tree into a .swc file</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;lib&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${build.config}/flexlib-config.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${setup.config}/flexlib-config.template.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">overwrite</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replace</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${build.config}/flexlib-config.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_SDK@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flexsdk.dir}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_VERSION_3@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flex.version3}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_VERSION_4@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flex.version4}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${compc.exe}&quot;</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-o ${dist}/${library.name}.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config '${flexsdk.dir}/frameworks/flex-config.xml'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config ${build.config}/flexlib-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;release-lib&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;clean&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;antcall</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;lib&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Generate the example applications using the library</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;examples_modified&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;condition</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;examplesFolder&quot;</span></span>
<span style="color: #009900;">                   <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;flex3&quot;</span></span>
<span style="color: #009900;">                   <span style="color: #000066;">else</span>=<span style="color: #ff0000;">&quot;flex4&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;equals</span> <span style="color: #000066;">arg1</span>=<span style="color: #ff0000;">&quot;${flex.version3}&quot;</span> <span style="color: #000066;">arg2</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/condition<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Building ${examplesFolder} modified examples<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${build.config}/examples-config.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${setup.config}/examples-config.template.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">overwrite</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replace</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${build.config}/examples-config.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_LIBS_HOME@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flexsdk.lib}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_BUILD_VERSION@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flex.version}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">             Loop over all of the Sample applications in the examples directory,</span>
<span style="color: #808080; font-style: italic;">             compile them, and place the resulting .swf next to the application</span>
<span style="color: #808080; font-style: italic;">             .mxml file.</span>
<span style="color: #808080; font-style: italic;">        --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #808080; font-style: italic;">&lt;!-- Find the sample applications --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}/examples&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                     The modified selector will only select files that have been</span>
<span style="color: #808080; font-style: italic;">                     modified since the examples target was last run. This means we</span>
<span style="color: #808080; font-style: italic;">                     can update a single example, then run the examples target and</span>
<span style="color: #808080; font-style: italic;">                     only the updated example will get recompiled.</span>
<span style="color: #808080; font-style: italic;">                --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modified</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*_Sample.mxml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">                     For only building specific examples, comment out</span>
<span style="color: #808080; font-style: italic;">                     the line above, and uncomment the line below and modify</span>
<span style="color: #808080; font-style: italic;">                     as appropriate.</span>
<span style="color: #808080; font-style: italic;">                --&gt;</span>
                <span style="color: #808080; font-style: italic;">&lt;!-- include name=&quot;**/*_Sample.mxml&quot; / --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #808080; font-style: italic;">&lt;!-- Pull out the example name and folder --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;exampleApplicationName&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;.*${file.separator}(.*)_Sample.mxml&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;exampleFolderName&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;(.*)${file.separator}(.*)_Sample.mxml&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${mxmlc.exe}&quot;</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;'@{file}'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-o ${dist}/examples/${exampleApplicationName}_Sample.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config '${flexsdk.dir}/frameworks/flex-config.xml'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config ${build.config}/examples-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Exactly the same as examples_modified, except we regenerate all example files,</span>
<span style="color: #808080; font-style: italic;">         regardless of whether they've been modified since last run. This is almost line-for-line</span>
<span style="color: #808080; font-style: italic;">         the same as the examples_modified target, so all comments have been removed for brevity.</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;examples_all&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;condition</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;examplesFolder&quot;</span></span>
<span style="color: #009900;">                   <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;flex3&quot;</span></span>
<span style="color: #009900;">                   <span style="color: #000066;">else</span>=<span style="color: #ff0000;">&quot;flex4&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;equals</span> <span style="color: #000066;">arg1</span>=<span style="color: #ff0000;">&quot;${flex.version3}&quot;</span> <span style="color: #000066;">arg2</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/condition<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Building all ${examplesFolder} examples<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;${build.config}/examples-config.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${setup.config}/examples-config.template.xml&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">overwrite</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replace</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${build.config}/examples-config.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_LIBS_HOME@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flexsdk.lib}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacefilter</span> <span style="color: #000066;">token</span>=<span style="color: #ff0000;">&quot;@FLEX_BUILD_VERSION@&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${flex.version}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}/examples&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/${examplesFolder}/**/*_Sample.mxml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;exampleApplicationName&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;.*${file.separator}(.*)_Sample.mxml&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;exampleFolderName&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;(.*)${file.separator}(.*)_Sample.mxml&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${mxmlc.exe}&quot;</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;'@{file}'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-o ${dist}/examples/${exampleApplicationName}_Sample.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config '${flexsdk.dir}/frameworks/flex-config.xml'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-load-config ${build.config}/examples-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Generate ASDoc output for the library</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;docs&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Clean out the contents of the doc directory, without deleting &quot;docs&quot; --&gt;</span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete</span> <span style="color: #000066;">includeemptydirs</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.docs}&quot;</span> <span style="color: #000066;">includes</span>=<span style="color: #ff0000;">&quot;**/*&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${asdoc.exe}&quot;</span> <span style="color: #000066;">spawn</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-define+=FLEX_TARGET_VERSION::flex4,${flex.version4} -define+=FLEX_TARGET_VERSION::flex3,${flex.version3}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #808080; font-style: italic;">&lt;!-- Place the documentation in the &quot;docs&quot; directory --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-o '${dist.docs}'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Specify the main source path as &quot;src&quot; --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-sp '${src.dir}'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Document all of the classes in the &quot;src&quot; tree --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-ds '${src.dir}' &quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
            <span style="color: #808080; font-style: italic;">&lt;!-- Include the library name in the window title --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-window-title '${library.name}' &quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-templates-path '${flexsdk.templates.dir}' &quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         When the ASDoc files are generated and imported into the SVN</span>
<span style="color: #808080; font-style: italic;">         repository, the files need to have mime types set correctly so that</span>
<span style="color: #808080; font-style: italic;">         you can open a web browser to the docs in the repository and</span>
<span style="color: #808080; font-style: italic;">         have the HTML render correctly.  Failure to set the mime types will</span>
<span style="color: #808080; font-style: italic;">         result in the doc source being displayed, rather than the docs being</span>
<span style="color: #808080; font-style: italic;">         rendered.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">         This target requires the ANT contrib library in order to run.</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fixDocMimeTypes&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Loop over the files in the doc directory --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #808080; font-style: italic;">&lt;!-- Include the following file types in the target directory as part of the loop --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;docs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.html&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.png&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.jpg&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.css&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.js&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.gif&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #808080; font-style: italic;">&lt;!---</span>
<span style="color: #808080; font-style: italic;">                     Determine the mime-type from the file extension.</span>
<span style="color: #808080; font-style: italic;">                --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.html&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;text/html&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.png&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/png&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.jpg&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/jpeg&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.css&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.js&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;text/plain&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type.gif&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/gif&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- Extract the extension from the file name --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;fileExtension&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;.*${file.separator}([^\\]+)\.([a-zA-Z0-9]+)&quot;</span></span>
<span style="color: #009900;">                               <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\2&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- Set the mime.type property based on the extension --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertycopy</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mime.type&quot;</span></span>
<span style="color: #009900;">                              <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;mime.type.${fileExtension}&quot;</span></span>
<span style="color: #009900;">                              <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- Sanity check...</span>
<span style="color: #808080; font-style: italic;">                     &lt;echo&gt;@{file} is ${fileExtension} with mime type ${mime.type}&lt;/echo&gt;</span>
<span style="color: #808080; font-style: italic;">                --&gt;</span>
&nbsp;
                <span style="color: #808080; font-style: italic;">&lt;!-- Configure the mime type for the file --&gt;</span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;${svn.exe}&quot;</span> <span style="color: #000066;">spawn</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;propset svn:mime-type '${mime.type}' '@{file}'&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">         Generate a distribution based on the current source code.  Includes</span>
<span style="color: #808080; font-style: italic;">         the source code, the documentation, the examples, and the binary .swc file.</span>
<span style="color: #808080; font-style: italic;">    --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;release&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;clean, init, lib, examples_all, docs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Creates the .zip file in the bin directory --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;zip</span> <span style="color: #000066;">destfile</span>=<span style="color: #ff0000;">&quot;${dist}/${library.name}.zip&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${basedir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;bin/${library.name}.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;src/**&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;docs/**&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;examples/**&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exclude</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*_Sample.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/zip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/11/another-flex-ant-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex ant file sample</title>
		<link>http://mxcode.com/2010/11/flex-ant-file-sample/</link>
		<comments>http://mxcode.com/2010/11/flex-ant-file-sample/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 11:26:50 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/?p=26</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &#8230; <a href="http://mxcode.com/2010/11/flex-ant-file-sample/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;project</span> <span style="color: #000066;">basedir</span>=<span style="color: #ff0000;">&quot;.&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Flex Ant Builder SSO Project&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> 
&nbsp;
        <span style="color: #009900;">&lt;!– 定义ant存放位置  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ant.lib.dir&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;E:\FlexSDK\3.2.0/ant/lib&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;">&lt;!– 定义Flex SDK存放位置  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;FLEX_HOME&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;E:\FlexSDK\3.2.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;">&lt;!– 初始化时间格式,以便使用 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tstamp<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;format</span> <span style="color: #000066;">pattern</span>=<span style="color: #ff0000;">&quot;yy.mm.dd&quot;</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;TODAY&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tstamp<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;">&lt;!– 导入ant支持包 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;ant.classpath&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${ant.lib.dir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;*.jar&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;">&lt;!– 定义目标编译结果路径 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dist.home&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./dist&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dist.home.src&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./dist/src&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dist.home.libs&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./dist/libs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dist.home.bin&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./dist/bin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;">&lt;!– 定义源码路径  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;project.home&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;project.home.src&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./src&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;project.home.libs&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;./libs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!–=========================================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 初始化                                                                         –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!–     清除dist目录; 将源码复制过去.                                                                          –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– ============================================ –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">classpathref</span>=<span style="color: #ff0000;">&quot;ant.classpath&quot;</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;flexTasks.tasks&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">classpathref</span>=<span style="color: #ff0000;">&quot;ant.classpath&quot;</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;confusion.tasks&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">classpathref</span>=<span style="color: #ff0000;">&quot;ant.classpath&quot;</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;net/sf/antcontrib/antlib.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;Flex SDK Home: ${FLEX_HOME}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mkdir</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">todir</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${project.home.src}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/copy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">todir</span>=<span style="color: #ff0000;">&quot;${dist.home.libs}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${project.home.libs}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/copy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!– ================================= –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 混淆代码                                                                     –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– ======================================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;confusion&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;init&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;star confusion code…&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.as&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;confusion</span> <span style="color: #000066;">filename</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;@{file} is confusioned!!&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!– ========================================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 编译Flex Library Project项目                                                                                  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– ===================================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compileFLP&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;confusion&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;project.name&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Comman&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;star complie Flex Library Project…&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;build ${dist.home.bin}/${project.name}.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;compc</span> <span style="color: #000066;">incremental</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">debug</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}/${project.name}.swc&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;">&lt;!– 指定Comman项目的源码目录 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source-path</span> <span style="color: #000066;">path-element</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;">&lt;!– 指定编译的文件列表 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include-sources</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.as&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/include-sources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;">&lt;!– 将Flex SDK 作为外部库进行引用 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;compiler.external-library-path</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/compiler.external-library-path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;">&lt;!– 添加项目中的SWC包,请注意这里是外部 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;compiler.external-library-path</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.libs}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/compiler.external-library-path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/compc<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;">&lt;!– 删除缓存文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}&quot;</span> <span style="color: #000066;">includes</span>=<span style="color: #ff0000;">&quot;*.cache&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;complier Flex Library Project finished!&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!– =============================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 优化SWC文件                                                                     –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– =========================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;optimizeSWC&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;compileFLP&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;star optimize SWC…&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                <span style="color: #009900;">&lt;!– 定义一个优化操作模块 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;macrodef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;optimize-rsl&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;attribute</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;rsl-dir&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;attribute</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;swc-path&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;swc-name&quot;</span> <span style="color: #000066;">select</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;bin\\(.*).swc&quot;</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{swc-path}&quot;</span> <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;swc-dir&quot;</span> <span style="color: #000066;">select</span>=<span style="color: #ff0000;">&quot;\1&quot;</span> <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;(.*)\\(.*).swc&quot;</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{swc-path}&quot;</span> <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                                <span style="color: #009900;">&lt;!– 从SWC中解压出SWF文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;unzip</span> <span style="color: #000066;">dest</span>=<span style="color: #ff0000;">&quot;@{rsl-dir}&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;${swc-dir}/${swc-name}.swc&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;patternset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;library.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/patternset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/unzip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 优化SWF文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;java</span> <span style="color: #000066;">failonerror</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">fork</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">jar</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}\lib\optimizer.jar&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;jvmarg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-ea -DAS3 -DAVMPLUS -Dflexlib=${FLEX_HOME}\frameworks -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;’@{rsl-dir}/library.swf’ –output ‘@{rsl-dir}/${swc-name}.swf’&amp;#13;&amp;#10;                        –keep-as3-metadata=’Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,RemoteClass’ &quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/java<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 重建描述文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;java</span> <span style="color: #000066;">failonerror</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">fork</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">jar</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/lib/digest.jar&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;jvmarg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;-ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;–digest.rsl-file  @{rsl-dir}/${swc-name}.swf –digest.swc-path  @{rsl-dir}/${swc-name}.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/java<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 清除解压出来的文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;@{rsl-dir}&quot;</span> <span style="color: #000066;">includes</span>=<span style="color: #ff0000;">&quot;*.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/macrodef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                <span style="color: #009900;">&lt;!– 优化所有SWC文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;*.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 优化SWC –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;optimize-rsl</span> <span style="color: #000066;">swc-path</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span> <span style="color: #000066;">rsl-dir</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;optimize @{file} success~!&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!– =========================================== –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 编译  Flex Action Script Project 项目                                                                  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– ============================================= –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compileASP&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;confusion&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compile.name&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;AntASP&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;start compile ${dist.home.src}/${compile.name}.as&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mxmlc</span> <span style="color: #000066;">incremental</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}/${compile.name}.swf&quot;</span> <span style="color: #000066;">keep-generated-actionscript</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">actionscript-file-encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${dist.home.src}/${compile.name}.as&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-config</span> <span style="color: #000066;">filename</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks/flex-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source-path</span> <span style="color: #000066;">path-element</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source-path</span> <span style="color: #000066;">path-element</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;compiler.library-path</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks&quot;</span> <span style="color: #000066;">append</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;libs&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;../bundles/{locale}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/compiler.library-path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mxmlc<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;clear cache file.&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.bin}&quot;</span> <span style="color: #000066;">includes</span>=<span style="color: #ff0000;">&quot;*.cache&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/delete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;compile ${dist.home.src}/${compile.name}.as  ===&amp;gt;&amp;gt;  ${dist.home.bin}/${compile.name}.swf success!&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;">&lt;!– ============================================ –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– 编译Flex Project 项目                                                                                                  –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;">&lt;!– ========================================= –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compileFP&quot;</span> <span style="color: #000066;">depends</span>=<span style="color: #ff0000;">&quot;confusion&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;start compile Flex Project…&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;file&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.mxml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 通过正则表达式取出modules中的模块文件,进行批量编译~! –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;compile.target.name&quot;</span> <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;(.*)src(.*)(mxml)&quot;</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span> <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;\1bin\2swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mxmlc</span> <span style="color: #000066;">incremental</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">debug</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;${compile.target.name}&quot;</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;@{file}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-config</span> <span style="color: #000066;">filename</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks/flex-config.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;static-link-runtime-shared-libraries<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/static-link-runtime-shared-libraries<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source-path</span> <span style="color: #000066;">path-element</span>=<span style="color: #ff0000;">&quot;${dist.home.src}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;runtime-shared-library-path</span> <span style="color: #000066;">path-element</span>=<span style="color: #ff0000;">&quot;${FLEX_HOME}/frameworks/libs/framework.swc&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url</span> <span style="color: #000066;">rsl-url</span>=<span style="color: #ff0000;">&quot;../framework_3.2.0.3958.swz&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url</span> <span style="color: #000066;">rsl-url</span>=<span style="color: #ff0000;">&quot;../framework_3.2.0.3958.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/runtime-shared-library-path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;">&lt;!– 指定外部依赖库文件,这些库文件将不会编译进目标SWF中 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;compiler.external-library-path</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${dist.home.libs}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/*.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/compiler.external-library-path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mxmlc<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                                <span style="color: #009900;">&lt;!– 清除缓存文件 –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delete</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${compile.target.name}.cache&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;Compiled @{file} =====&amp;gt;&amp;gt;   ${compile.target.name}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/11/flex-ant-file-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widget disposed too early with eclipse &#8211; ubuntu10.04</title>
		<link>http://mxcode.com/2010/09/widget-disposed-too-early-with-eclipse-ubuntu1004/</link>
		<comments>http://mxcode.com/2010/09/widget-disposed-too-early-with-eclipse-ubuntu1004/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 01:57:15 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[disposed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/09/widget-disposed-too-early-with-eclipse-ubuntu1004/</guid>
		<description><![CDATA[add: -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner to you eclipse.ini]]></description>
			<content:encoded><![CDATA[<p>add:<br />
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner<br />
to you eclipse.ini</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/09/widget-disposed-too-early-with-eclipse-ubuntu1004/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ttf-mscorefonts-installer update error &#8211; ubuntu10.04</title>
		<link>http://mxcode.com/2010/09/ttf-mscorefonts-installer-update-error-ubuntu1004/</link>
		<comments>http://mxcode.com/2010/09/ttf-mscorefonts-installer-update-error-ubuntu1004/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 01:54:24 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[ttf-mscorefonts-installer]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/09/ttf-mscorefonts-installer-update-error-ubuntu1004/</guid>
		<description><![CDATA[try: sudo aptitude purge ttf-mscorefonts-installer ubuntu-restricted-extras]]></description>
			<content:encoded><![CDATA[<p>try:<br />
sudo aptitude purge ttf-mscorefonts-installer ubuntu-restricted-extras</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/09/ttf-mscorefonts-installer-update-error-ubuntu1004/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex draw</title>
		<link>http://mxcode.com/2010/06/flex-draw/</link>
		<comments>http://mxcode.com/2010/06/flex-draw/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 09:39:27 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/06/flex-draw/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="400" data="/wp-content/uploads/2010/06/draw.swf" type="application/x-shockwave-flash"><param name="src" value="/wp-content/uploads/2010/06/draw.swf" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/06/flex-draw/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>create a swing application</title>
		<link>http://mxcode.com/2009/09/create-a-swing-application/</link>
		<comments>http://mxcode.com/2009/09/create-a-swing-application/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 07:34:26 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[swing]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/09/create-a-swing-application/</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &#8230; <a href="http://mxcode.com/2009/09/create-a-swing-application/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Container</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.FlowLayout</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.WindowAdapter</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.WindowEvent</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.Icon</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.ImageIcon</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JApplet</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JFrame</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JLabel</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.WindowConstants</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Test3 <span style="color: #000000; font-weight: bold;">extends</span> <span style="color: #003399;">JApplet</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">Container</span> contentPane <span style="color: #339933;">=</span> getContentPane<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003399;">Icon</span> icon <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ImageIcon</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">getSystemResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;swing.gif&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #003399;">JLabel</span> label <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">JLabel</span><span style="color: #009900;">&#40;</span>icon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//		java.net.URL codebase = getClass().getResource(&quot;../swing.gif&quot;);</span>
<span style="color: #666666; font-style: italic;">//		JLabel label = new JLabel(new ImageIcon(codebase));</span>
&nbsp;
		contentPane.<span style="color: #006633;">setLayout</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FlowLayout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		contentPane.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>label<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> args<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">JFrame</span> f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">JFrame</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">JApplet</span> applet <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Test3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		applet.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">setContentPane</span><span style="color: #009900;">&#40;</span>applet.<span style="color: #006633;">getContentPane</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setBounds</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">308</span>, <span style="color: #cc66cc;">199</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setTitle</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;An Application&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setVisible</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">setDefaultCloseOperation</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowConstants</span>.<span style="color: #006633;">DISPOSE_ON_CLOSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">addWindowListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">WindowAdapter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> windowClosed<span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #003399;">System</span>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/09/create-a-swing-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to read a url</title>
		<link>http://mxcode.com/2009/09/how-to-read-a-url/</link>
		<comments>http://mxcode.com/2009/09/how-to-read-a-url/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:15:45 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/09/hwo-to-read-a-url/</guid>
		<description><![CDATA[String s = request.getRequestURL&#40;&#41;.toString&#40;&#41;; URL url = new URL&#40;s&#41;; BufferedReader bf = new BufferedReader&#40;new InputStreamReader&#40;url.openStream&#40;&#41;&#41;&#41;;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> request.<span style="color: #006633;">getRequestURL</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">URL</span> url <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">URL</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">BufferedReader</span> bf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BufferedReader</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">InputStreamReader</span><span style="color: #009900;">&#40;</span>url.<span style="color: #006633;">openStream</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/09/how-to-read-a-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to build .properties</title>
		<link>http://mxcode.com/2009/07/how-to-build-properties/</link>
		<comments>http://mxcode.com/2009/07/how-to-build-properties/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 04:16:06 +0000</pubDate>
		<dc:creator>MXcode</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/?p=1</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 if &#40;null == transactionCodeConfig&#41; &#123; transactionCodeConfig = new Properties&#40;&#41;; transactionCodeConfig.load&#40;Obj2XMLBuilderXSD.class .getResourceAsStream&#40;&#34;/config/transactionCodeConfig.properties&#34;&#41;&#41;; xsdMap = new HashMap&#40;&#41;; for &#40;Iterator iterator = transactionCodeConfig.entrySet&#40;&#41;.iterator&#40;&#41;; &#8230; <a href="http://mxcode.com/2009/07/how-to-build-properties/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span> <span style="color: #339933;">==</span> transactionCodeConfig<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	transactionCodeConfig <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Properties</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	transactionCodeConfig.<span style="color: #006633;">load</span><span style="color: #009900;">&#40;</span>Obj2XMLBuilderXSD.<span style="color: #000000; font-weight: bold;">class</span>
			.<span style="color: #006633;">getResourceAsStream</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/config/transactionCodeConfig.properties&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	xsdMap <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">HashMap</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Iterator</span> iterator <span style="color: #339933;">=</span> transactionCodeConfig.<span style="color: #006633;">entrySet</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">iterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> iterator.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		Entry entry <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Entry<span style="color: #009900;">&#41;</span> iterator.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">BufferedReader</span> br <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BufferedReader</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">InputStreamReader</span><span style="color: #009900;">&#40;</span>
				Obj2XMLBuilderXSD.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getResourceAsStream</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/config/xsd/&quot;</span> <span style="color: #339933;">+</span> entry.<span style="color: #006633;">getValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">String</span> aLine<span style="color: #339933;">;</span>
		<span style="color: #003399;">StringBuffer</span> xsdContent <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">StringBuffer</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		aLine <span style="color: #339933;">=</span> br.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span> <span style="color: #339933;">!=</span> aLine<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			xsdContent.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span>aLine<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			aLine <span style="color: #339933;">=</span> br.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		br.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		xsdMap.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>entry.<span style="color: #006633;">getKey</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, xsdContent.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/07/how-to-build-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

