I have it working by setting up a new c++ project within the master build
sln. With in that project I set a prebuild event that calls ant that does
all the flex building.

Seems to work quite nicely however it does mean you need ant installed on
your build server as well

On 18 December 2014 at 17:32, mark goldin <[email protected]> wrote:
>
> Here is what I got so far:
>
> My command:
> C:\Flex_SDKs\4.13.0\bin\mxmlc.bat "c:\source code\project.mxml"
> -output="c:\Builds\project.swf" -locale=en_US -library-path+=libs
> -define=CONFIG::debug,false -keep-generated-actionscript=false
> -target-player=10.0.0 -source-path=locale\{locale} -source-path=src
>
> result:
> C:\Flex_SDKs\4.13.0>java -Xmx384m -Dsun.io.useCanonCaches=false
> -Djava.util.Arrays.useLegacyMergeSort=true
> -jar "C:\Flex_SDKs\4.13.0\bin\\..\lib\mxmlc.jar"
> +flexlib="C:\Flex_SDKs\4.13.0\bin\\..\frameworks" "c:\source
> code\project.mxml" -output="c:\Builds\project.swf" -locale=en_US
> -library-path+=libs -def
> ine=CONFIG::debug,false -keep-generated-actionscript=false
> -target-player=14.0.0 -source-path=locale\{locale} -source-pa
> th=src
> Loading configuration file C:\Flex_SDKs\4.13.0\frameworks\flex-config.xml
> Apache Flex Compiler (mxmlc)
> Version 4.13.0 build 20140701
> Copyright 2014 The Apache Software Foundation.
>
> command line: Error: unable to open 'libs'
>
> Not sure what to do with the error.
>
> Thanks
>
> On Wed, Dec 17, 2014 at 1:33 PM, Alex Harui <[email protected]> wrote:
>
> > I would create a test.bat that echoes something to the console and see if
> > you can get that to work.
> >
> > Another trick is to edit the mxmlc.bat and remove any “echo off” so you
> > can see what it is doing.
> >
> > -Alex
> >
> > On 12/17/14, 10:41 AM, "mark goldin" <[email protected]> wrote:
> >
> > >Well, I do have a MSBuild proj file that works with mxmlc.exe. Now I am
> > >trying to use 4.13 that does not have exe compiler, but bat. Simply
> > >replacing exe to bat does not work. When it runs no compilation is
> > >occurring.
> > >
> > >On Wed, Dec 17, 2014 at 11:37 AM, OmPrakash Muppirala
> > ><[email protected]>
> > >wrote:
> > >
> > >> Mark,
> > >>
> > >> Looks like you might be the only one doing this :-)
> > >>
> > >> For what its worth, I found an Ant task for MSBuild here:
> > >> http://stefan.samaflost.de/repos/anttask/doc.xhtml
> > >>
> > >> You should be able to write your ant script (there are lots of
> examples
> > >>if
> > >> you google for this) and then invoke it from MSBuild.
> > >>
> > >> If that does not work, you will have to figure out how to invoke mxmlc
> > >>(for
> > >> main app) and compc (for swc library projects) from MSBuild directly.
> > >>
> > >> Thanks,
> > >> Om
> > >>
> > >> On Wed, Dec 17, 2014 at 9:28 AM, mark goldin <[email protected]>
> > >> wrote:
> > >> >
> > >> > Great point, but I have no choice. Flex piece is a part of a large
> > >>system
> > >> > written in C#. Everything gets built by TFS Controller.
> > >> >
> > >> > On Wed, Dec 17, 2014 at 11:11 AM, Jason Guild <
> [email protected]
> > >
> > >> > wrote:
> > >> >
> > >> > > Why would you want to? Ant works great for that.
> > >> > >
> > >> > >
> > >> > > On 12/17/2014 8:10 AM, mark goldin wrote:
> > >> > >
> > >> > >> Is anyone using MSBuild to build Flex projects?
> > >> > >>
> > >> > >> Thanks
> > >> > >>
> > >> > >>
> > >> > >
> > >> >
> > >>
> >
> >
>

Reply via email to