<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sample NAnt build script in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sample-nant-build-script/m-p/569870#M12853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample NAnt build script for your flex projects.&amp;nbsp; I have this building a project that has the ESRI Flex API in it so it should be a simple installation.&amp;nbsp; I will explain to make it easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here is the script&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;nbsp; &amp;lt;project name="FV2" default="build" basedir="."&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;target name="build"&amp;gt;
&amp;nbsp; &amp;lt;echo message=""/&amp;gt;
&amp;nbsp; &amp;lt;exec program="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\bin\mxmlc.exe" basedir="${project::get-base-directory()}\src"&amp;gt;
&amp;nbsp; &amp;lt;arg value="${project::get-base-directory()}\src\index.mxml"/&amp;gt;
&amp;nbsp; &amp;lt;arg value="-library-path+=${project::get-base-directory()}\libs\agslib-2.1-2010-09-17.swc" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-locale=en_US" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-source-path=locale/en_US" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-keep-all-type-selectors=true" /&amp;gt;
&amp;nbsp; &amp;lt;/exec&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/target&amp;gt;
&amp;nbsp; &amp;lt;/project&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Change the path in this line to reflect your environment&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;exec program="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\bin\mxmlc.exe" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;This line assumes your ESRI Flex swc is in the lib folder of your project.&amp;nbsp; If it is not.... change it accordingly&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;arg value="-library-path+=${project::get-base-directory()}\libs\agslib-2.1-2010-09-17.swc" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Change these if you need to... should be self explanatory&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;arg value="-locale=en_US" /&amp;gt;
&amp;lt;arg value="-source-path=locale/en_US" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Specifying the locale folder is used for finding ViewerStrings.properties file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Resources that may be of assistance:&lt;/STRONG&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Unable to Resolve errors - You may run into a ton of reference errors.&amp;nbsp; The compiler may have trouble finding the assets folder.&amp;nbsp; &lt;A href="http://www.boostworthy.com/blog/?p=220" rel="nofollow noopener noreferrer" target="_blank"&gt;Try this&lt;/A&gt;.&amp;nbsp; I added the '/' to the beginning of the paths and then found this URL that solidified other people were doing the same.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;If you run into problems let me know....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also... if you are interested in localizing flex applications with Ant (non NAnt) then try &lt;/SPAN&gt;&lt;A href="http://blog.go4flash.com/articles/flex-articles/flex-localization/" rel="nofollow noopener noreferrer" target="_blank"&gt;this link...&lt;/A&gt;&lt;SPAN&gt; Seems handy...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:32:07 GMT</pubDate>
    <dc:creator>BradleyJanke</dc:creator>
    <dc:date>2021-12-12T00:32:07Z</dc:date>
    <item>
      <title>Sample NAnt build script</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sample-nant-build-script/m-p/569870#M12853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample NAnt build script for your flex projects.&amp;nbsp; I have this building a project that has the ESRI Flex API in it so it should be a simple installation.&amp;nbsp; I will explain to make it easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here is the script&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;nbsp; &amp;lt;project name="FV2" default="build" basedir="."&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;target name="build"&amp;gt;
&amp;nbsp; &amp;lt;echo message=""/&amp;gt;
&amp;nbsp; &amp;lt;exec program="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\bin\mxmlc.exe" basedir="${project::get-base-directory()}\src"&amp;gt;
&amp;nbsp; &amp;lt;arg value="${project::get-base-directory()}\src\index.mxml"/&amp;gt;
&amp;nbsp; &amp;lt;arg value="-library-path+=${project::get-base-directory()}\libs\agslib-2.1-2010-09-17.swc" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-locale=en_US" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-source-path=locale/en_US" /&amp;gt;
&amp;nbsp; &amp;lt;arg value="-keep-all-type-selectors=true" /&amp;gt;
&amp;nbsp; &amp;lt;/exec&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/target&amp;gt;
&amp;nbsp; &amp;lt;/project&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Change the path in this line to reflect your environment&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;exec program="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\bin\mxmlc.exe" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;This line assumes your ESRI Flex swc is in the lib folder of your project.&amp;nbsp; If it is not.... change it accordingly&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;arg value="-library-path+=${project::get-base-directory()}\libs\agslib-2.1-2010-09-17.swc" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Change these if you need to... should be self explanatory&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;arg value="-locale=en_US" /&amp;gt;
&amp;lt;arg value="-source-path=locale/en_US" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Specifying the locale folder is used for finding ViewerStrings.properties file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Resources that may be of assistance:&lt;/STRONG&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Unable to Resolve errors - You may run into a ton of reference errors.&amp;nbsp; The compiler may have trouble finding the assets folder.&amp;nbsp; &lt;A href="http://www.boostworthy.com/blog/?p=220" rel="nofollow noopener noreferrer" target="_blank"&gt;Try this&lt;/A&gt;.&amp;nbsp; I added the '/' to the beginning of the paths and then found this URL that solidified other people were doing the same.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;If you run into problems let me know....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also... if you are interested in localizing flex applications with Ant (non NAnt) then try &lt;/SPAN&gt;&lt;A href="http://blog.go4flash.com/articles/flex-articles/flex-localization/" rel="nofollow noopener noreferrer" target="_blank"&gt;this link...&lt;/A&gt;&lt;SPAN&gt; Seems handy...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/sample-nant-build-script/m-p/569870#M12853</guid>
      <dc:creator>BradleyJanke</dc:creator>
      <dc:date>2021-12-12T00:32:07Z</dc:date>
    </item>
  </channel>
</rss>

