You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2014/12/17 18:10:12 UTC

Anyone is using MSBuild

Is anyone using MSBuild to build Flex projects?

Thanks

Re: Anyone is using MSBuild

Posted by Mark Line <ma...@gmail.com>.
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 <ma...@gmail.com> 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 <ah...@adobe.com> 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" <ma...@gmail.com> 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
> > ><bi...@gmail.com>
> > >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 <ma...@gmail.com>
> > >> 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 <
> jason.guild@alaska.gov
> > >
> > >> > 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
> > >> > >>
> > >> > >>
> > >> > >
> > >> >
> > >>
> >
> >
>

Re: Anyone is using MSBuild

Posted by mark goldin <ma...@gmail.com>.
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 <ah...@adobe.com> 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" <ma...@gmail.com> 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
> ><bi...@gmail.com>
> >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 <ma...@gmail.com>
> >> 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 <jason.guild@alaska.gov
> >
> >> > 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
> >> > >>
> >> > >>
> >> > >
> >> >
> >>
>
>

Re: Anyone is using MSBuild

Posted by Alex Harui <ah...@adobe.com>.
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" <ma...@gmail.com> 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
><bi...@gmail.com>
>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 <ma...@gmail.com>
>> 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 <ja...@alaska.gov>
>> > 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
>> > >>
>> > >>
>> > >
>> >
>>


Re: Anyone is using MSBuild

Posted by mark goldin <ma...@gmail.com>.
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 <bi...@gmail.com>
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 <ma...@gmail.com>
> 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 <ja...@alaska.gov>
> > 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
> > >>
> > >>
> > >
> >
>

Re: Anyone is using MSBuild

Posted by OmPrakash Muppirala <bi...@gmail.com>.
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 <ma...@gmail.com> 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 <ja...@alaska.gov>
> 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
> >>
> >>
> >
>

Re: Anyone is using MSBuild

Posted by mark goldin <ma...@gmail.com>.
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 <ja...@alaska.gov>
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
>>
>>
>

Re: Anyone is using MSBuild

Posted by Jeffry Houser <je...@dot-com-it.com>.
On 12/17/2014 12:11 PM, Jason Guild wrote:
> Why would you want to? Ant works great for that.

  Can't that argument can be used for Maven or Cruise Control?  [Or 
against any two similar technologies really]

  The biggest reason for choosing one option over another is existing 
knowledge /in-house skill.  It is quicker/easier to get up and running 
on tools you know than to learn new ones.

  Sometimes there can also be "Business mandates" to use certain tools.  
I hate those, but sometimes that is a reality of corporate development.

  That said, I know of no one using MS Build to build Flex applications.


-- 
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773


Re: Anyone is using MSBuild

Posted by Jason Guild <ja...@alaska.gov>.
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
>