<?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 Re: Automate Flex Viewer Source Build in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220082#M6858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, you'll want to exclude your .* files and folders from the svn because they will usually be machine specific and path dependant. So they won't play well across multiple machines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have never used the fb.exportReleaseBuild, but this is probably going to be a FlashBuilder dependant tool. I have not checked to see if it's in the SDK folder or the FlashBuilder App folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using your very scenario for a couple of years now, svn-&amp;gt;automated build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get started, I would recommend the following walkthroughs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/07/using-ant-to-build-an-application/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/07/using-ant-to-build-an-application/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/14/building-a-library-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/14/building-a-library-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/19/building-the-html-wrapper-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/19/building-the-html-wrapper-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/20/building-a-custom-html-wrapper-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/20/building-a-custom-html-wrapper-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/21/including-assets-files-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/21/including-assets-files-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/26/building-a-library-and-application-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/26/building-a-library-and-application-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/28/building-asdocs-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/28/building-asdocs-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/02/09/the-master-flex-ant-file/"&gt;http://www.unitedmindset.com/jonbcampos/2010/02/09/the-master-flex-ant-file/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of others that have to do with building FlexUnit tests with ANT, but you could find them in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I have not tried creating build scripts for Flexviewer, but ideally, I would invest the time into creating a build script per widget. This way, a co-worker can work on a widget, I could work on a widget and we could both run our widget specific build scripts without having to rebuild the whole project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in a per widget ANT build scenario in your svn, you could have a master ANT build that would run each individual build file, while at the same time it should allow you to build the widgets independantly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample of using ANT to compile modules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jvalentino.blogspot.com/2010/03/flex-ant-build-optimized-modules_24.html"&gt;http://jvalentino.blogspot.com/2010/03/flex-ant-build-optimized-modules_24.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://modular.theflexsite.net/blog/ant/build.xml"&gt;http://modular.theflexsite.net/blog/ant/build.xml&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 13:07:51 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2011-02-10T13:07:51Z</dc:date>
    <item>
      <title>Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220081#M6857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking at potentially using the Flex Viewer as a based for a custom application with Adobe Flash Builder 4 and the SVN source control system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having problems automating the build process on our build server, I have followed the process describe on: &lt;/SPAN&gt;&lt;A href="http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000.html"&gt;http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000.html&lt;/A&gt;&lt;SPAN&gt;. This all works fine when I attempt to build against an workspace which has already been accessed via Flash Builder but if I get a fresh copy of the code from SVN and try and build / open the workspace in Flash Builder it doesn't seem to recognise the FlexViewer Project...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The files I have in source control are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex (workspace root)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer (flex project)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\.actionScriptProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\.flexProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\.fxpProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\.project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\.settings (and sub files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\html-templates (and sub files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\libs (and sub files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \Flex\FlexViewer\src (and sub files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been advised not to add the .metadata folders into source control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 09:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220081#M6857</guid>
      <dc:creator>AndrewHaigh</dc:creator>
      <dc:date>2011-02-10T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220082#M6858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, you'll want to exclude your .* files and folders from the svn because they will usually be machine specific and path dependant. So they won't play well across multiple machines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have never used the fb.exportReleaseBuild, but this is probably going to be a FlashBuilder dependant tool. I have not checked to see if it's in the SDK folder or the FlashBuilder App folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using your very scenario for a couple of years now, svn-&amp;gt;automated build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get started, I would recommend the following walkthroughs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/07/using-ant-to-build-an-application/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/07/using-ant-to-build-an-application/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/14/building-a-library-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/14/building-a-library-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/19/building-the-html-wrapper-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/19/building-the-html-wrapper-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/20/building-a-custom-html-wrapper-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/20/building-a-custom-html-wrapper-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/21/including-assets-files-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/21/including-assets-files-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/26/building-a-library-and-application-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/26/building-a-library-and-application-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/01/28/building-asdocs-with-ant/"&gt;http://www.unitedmindset.com/jonbcampos/2010/01/28/building-asdocs-with-ant/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/02/09/the-master-flex-ant-file/"&gt;http://www.unitedmindset.com/jonbcampos/2010/02/09/the-master-flex-ant-file/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of others that have to do with building FlexUnit tests with ANT, but you could find them in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I have not tried creating build scripts for Flexviewer, but ideally, I would invest the time into creating a build script per widget. This way, a co-worker can work on a widget, I could work on a widget and we could both run our widget specific build scripts without having to rebuild the whole project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in a per widget ANT build scenario in your svn, you could have a master ANT build that would run each individual build file, while at the same time it should allow you to build the widgets independantly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample of using ANT to compile modules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jvalentino.blogspot.com/2010/03/flex-ant-build-optimized-modules_24.html"&gt;http://jvalentino.blogspot.com/2010/03/flex-ant-build-optimized-modules_24.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://modular.theflexsite.net/blog/ant/build.xml"&gt;http://modular.theflexsite.net/blog/ant/build.xml&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 13:07:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220082#M6858</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2011-02-10T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220083#M6859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rene,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your suggestions on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had feedback from Adobe that this is a known limitation of their software and there is no workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As such it looks like I'll have to progress on the process you've described.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220083#M6859</guid>
      <dc:creator>AndrewHaigh</dc:creator>
      <dc:date>2011-02-11T05:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220084#M6860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I've created quite a basic build script for the Flex Viewer as a starting point but when I try and complie I'm getting error relating to &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Error: unable to resolve 'assets/images/cross_cursor.png' for transcoding
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked on the internet and most of the results on these errors talk about missing files but I've checked the files and they all seem to be present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The build file is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;project name="Flex Build" basedir="."&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;property name="FLEX_HOME" value="D:\apps\Adobe Flash Builder 4\sdks\4.0.0" /&amp;gt;
&amp;nbsp; &amp;lt;property name="project.src.dir" value="${basedir}\src" /&amp;gt;
&amp;nbsp; &amp;lt;property name="output.dir" value="D:\CM\Out" /&amp;gt;
&amp;nbsp; &amp;lt;property name="debug" value="false" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;taskdef resource="flexTasks.tasks" classpath="${basedir}\buildLibs\flexTasks.jar" /&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;target name="compileApp"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;echo message="About to complie Flex Application" /&amp;gt;
 
 &amp;lt;delete dir="${output.dir}" /&amp;gt;
 
 &amp;lt;mxmlc file="${project.src.dir}\index.mxml"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incremental="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; actionscript-file-encoding="UTF-8"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output="${output.dir}\FlexViewer.swf"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; debug="${debug}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep-generated-actionscript="false"&amp;gt;
&amp;nbsp; &amp;lt;load-config filename="${FLEX_HOME}\frameworks\flex-config.xml" /&amp;gt;
&amp;nbsp; &amp;lt;compiler.source-path path-element="${project.src.dir}" /&amp;gt;
&amp;nbsp; &amp;lt;compiler.library-path dir="${basedir}\libs"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;include name="*.swc" /&amp;gt;
&amp;nbsp; &amp;lt;/compiler.library-path&amp;gt;
 &amp;lt;/mxmlc&amp;gt; 
 
 &amp;lt;echo message="Complete" /&amp;gt;
&amp;nbsp; &amp;lt;/target&amp;gt;

&amp;lt;/project&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full logfile is attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen this error before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220084#M6860</guid>
      <dc:creator>AndrewHaigh</dc:creator>
      <dc:date>2021-12-11T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220085#M6861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try adding a "/" in front of the path in your app like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/assets/images/cross_cursor.png"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mxmlc compiler can be picky about that when using embeds in your app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220085#M6861</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2011-02-11T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Flex Viewer Source Build</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220086#M6862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that seemed to fix that problem, now I just need to figure out the Locale error's &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 09:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/automate-flex-viewer-source-build/m-p/220086#M6862</guid>
      <dc:creator>AndrewHaigh</dc:creator>
      <dc:date>2011-02-14T09:45:21Z</dc:date>
    </item>
  </channel>
</rss>

