Well, ant is an script language.... so you can do anything with it... There is a new option on flexmojos 3.6-SNAPSHOT (which is not released so far) that allow you to use filesets to include classes.... https://issues.sonatype.org/browse/FLEXMOJOS-247
VELO On Thu, Feb 25, 2010 at 9:34 AM, Manfred Paul <[email protected]>wrote: > ok, > > but this is what I wanted to avoid, because adding all inculdeClasses > ... to the pom is not quite cool. I have some developers who are > working only with flexbuilder (without maven) and if they add an class > to the includes (eclipse properties) it will not be available in the > pom file. Even with ant this was easier : > > <fileset id="sources" dir="${build.temp.dir}"> > <include name="**/*.mxml" /> > <include name="**/*.as" /> > </fileset> > > <pathconvert property="classes" pathsep=" " refid="sources"> > <compositemapper> > <chainedmapper> > <globmapper from="${build.temp.dir}/*" to="*" handledirsep="true" > /> > <mapper type="package" from="*.as" to="*" /> > </chainedmapper> > <chainedmapper> > <globmapper from="${build.temp.dir}/*" to="*" handledirsep="true" > /> > <mapper type="package" from="*.mxml" to="*" /> > </chainedmapper> > </compositemapper> > </pathconvert> > > <compc output="${bindir}/${name}.swc" > actionscript-file-encoding="UTF-8" > keep-generated-actionscript="false" > incremental="false" > include-classes="${classes}" > > > > In maven I won't be able to do it like this! On the other hand, is > there a way that flexmojo detects automatically the namespace include? > Sorry for asking always the same question, but I haven't got the > complete answer at the moment. > > Manfred > > On Thu, Feb 25, 2010 at 1:16 PM, Marvin Froeder <[email protected]> wrote: > > Let's start again.... > > > >> If you define no inclusions, flexmojos will assume that you wanna to > >> include everything. But if you define any include it assumes you wanna > >> manage the inclusions. > >> > >> By inclusions I mean any > >> > >> > http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#include* > > > > So, if you define includeNamespace flexmojos assumes you know what you > are > > doing AND you are going to include whatever you need. > > > > In the end your problem is you defined an includeNamespace and expected > > flexmojos to guess if your SWC need something else to be included or not. > > Which flexmojos don't do. Use includeClasses, includeFiles or whatever > else > > you need to get it done. Exactly same way you would do if you was using > > COMPC. > > > > If this still not working on flexmojos but does work on flexbuilder refer > to > > FAQ... there are instructions there explaining what to do to verify where > is > > the difference. > > > > > > VELO > > > > On Thu, Feb 25, 2010 at 9:07 AM, Manfred Paul <[email protected]> > > wrote: > >> > >> Well, that's right but how can I use flexmojo in this case? > >> > >> If flexmojo includes everything by default, I would like to know why > >> the namespace include doesn't work? > >> > >> Any suggestions? > >> > >> Thanks > >> > >> Manfred > >> > >> On Thu, Feb 25, 2010 at 11:54 AM, Marvin Froeder <[email protected]> > >> wrote: > >> > This is your problem then. > >> > > >> > Sent from DROID > >> > > >> > Em 25/02/2010 06:00, "Manfred Paul" <[email protected]>escreveu: > >> > > >> > Hi, > >> > > >> > there is no namespace (uri) entry in the catalog.xml. To be correct: > >> > there is even no component tag in the file. > >> > > >> > Normally this should look like this (compiled with flexbuilder): > >> > > >> > <components> > >> > <component className="com.test.maplib.controls.tools:InfoObjTool" > >> > name="InfoObjTool" uri="http://www.mycompany/2009/" /> > >> > <components> > >> > > >> > > >> > Manfred > >> > > >> > On Wed, Feb 24, 2010 at 7:03 PM, Marvin Froeder <[email protected]> > >> > wrote: > >> >> Yes... > >> >> > >> >> Open MapFra... > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "Flex Mojos" group. > >> > To post to this group, send email to [email protected] > >> > To unsubscribe from this group, send email to > >> > [email protected]<flex-mojos%[email protected]> > >> > For more options, visit this group at > >> > http://groups.google.com/group/flex-mojos?hl=en?hl=en > >> > > >> > http://flexmojos.sonatype.org/ > >> > > >> > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Flex Mojos" group. > >> To post to this group, send email to [email protected] > >> To unsubscribe from this group, send email to > >> [email protected]<flex-mojos%[email protected]> > >> For more options, visit this group at > >> http://groups.google.com/group/flex-mojos?hl=en?hl=en > >> > >> http://flexmojos.sonatype.org/ > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Flex Mojos" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<flex-mojos%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/flex-mojos?hl=en?hl=en > > > > http://flexmojos.sonatype.org/ > > > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos?hl=en?hl=en > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://flexmojos.sonatype.org/
