Has anyone had any success doing this? Maybe I'm also doing something wrong, but I have the following configuration:
some-swf depends on some-swc that depends on a rsl swc. When I'm running the some-swf, it complains because I don't have the rsl in swf format. Do I need to make a script that unzips the swc in order to get the swf before I run some-swf or there's already something that can help me there? Thanks, Rafael. On Sep 16, 3:33 pm, Rupert Key <[email protected]> wrote: > (I may be misunderstanding the question but...) > > I think the answer is "swc". > > Examples libraries include: > as3corelib, Spicelib & Parsley, Adobe's fds. > > Example > repository:http://opensource.adobe.com/svn/opensource/cairngorm3/maven-repository/ > (handily, they offer Parsley!) > > I've done the following: > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-flex</artifactId> > <version>2.2.2</version> > <type>swc</type> > <scope>rsl</scope> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-flex</artifactId> > <version>2.2.2</version> > <type>swf</type> > </dependency> > > Obviously, the first causes correct link-settings for the SWC as RSL. > Again obviously, to be useful, one needs the RSL SWF. The latter *would be* > used to pick those up by the "maven-dependency-plugin:copy-dependencies with > includeTypes=swf" stuff I mentioned before straight from the repository and > deposit it in the "target" directory. Obviously, no SWF in repository means > no > SWF in target :-( > > R. > > On 16/09/2010 18:06, Marvin Froeder wrote: > > > > > > > > > What artifact are we talking about here? > > > On Thu, Sep 16, 2010 at 1:59 PM, Rupert Key <[email protected] > > <mailto:[email protected]>> wrote: > > > Exactly. (with caveat that they're already in publicly-available Maven > > repositories) > > > But they don't provide RSLs and, as I understand it, the RSL is merely > > the > > library.swf from inside the SWC (right?). > > > Hence the workaround of trying to extract it required renaming > > library.swf > > to proper-rsl-name.swf. > > > Oh well, glad to hear it was merely miscommunication not my being dumb. > > I'll post a wrap-up on the thread unless there's other stuff? > > > Thanks as always, R. > > > On 16/09/2010 16:54, Marvin Froeder wrote: > >> What do you mean by not-from-source SWCs??? Did you downloaded > >> something > >> fromwww.whatever.com/lib.swc<http://www.whatever.com/lib.swc> ... is > >> that it? > >> Then who ever provided you with the SWF must produce the RSL(swf) for > >> it.... > > >> VELO > > >> On Thu, Sep 16, 2010 at 12:42 PM, Rupert Key <[email protected] > >> <mailto:[email protected]>> wrote: > > >> Hi, Velo > >> Thanks for the reply (did you intend to go off list, btw?) > > >> To be clear: Does it do that for not-from-source SWCs? (extract > >> the > >> library.swf and install in "target" dir?) > > >> Nothing I tried could get it to work. Is there an example I could > >> crib from? > > >> Sorry to be dumb :-( > > >> R. > > >> On 16/09/2010 16:41, Marvin Froeder wrote: > >>> Then just building something with packaging swc will produce that. > >>> By default flexmojos does that. > > >>> VELO > > >>> On Thu, Sep 16, 2010 at 12:30 PM, Rupert Key <[email protected] > >>> <mailto:[email protected]>> wrote: > > >>> Getting the SWF from the SWC. > > >>> (sorry if I'm not being clear) > > >>> All the "moving somewhere else" stuff was workaround attempt. > > >>> On 16/09/2010 12:37, Marvin Froeder wrote: > >>>> What is your problem, creating the RSL os moving it > >>>> somewhere else? > > >>>> VELO > > >>>> On Wed, Sep 15, 2010 at 8:59 PM, Rupert <[email protected] > >>>> <mailto:[email protected]>> wrote: > > >>>> So, I exhausted all the direct approaches for this and > >>>> still no luck. > >>>> Any hints greatly appreciated. > > >>>> For now, I couldn't invest more time so cheated the SWFs > >>>> into the .m2/ > >>>> repository next to the SWC, declare a double-dependency > >>>> for > >>>> each SWC/ > >>>> SWF and used maven-dependency-plugin:copy-dependencies > >>>> with > >>>> includeTypes=swf and stripVersion to get me those SWFs as > >>>> well (I'm > >>>> already doing that for the generate-rsl'd SWFs for our > >>>> AIR > >>>> build -- is > >>>> that right, too?) > > >>>> Btw, I did try to get maven-dependency-plugin:unpack to > >>>> work. It > >>>> successfully unpacked the library.swf from the SWC but I > >>>> couldn't > >>>> figure out how to rename. Looks like assembly is the > >>>> only > >>>> way to do > >>>> but don't fully understand them and wasn't sure > >>>> whether-to/how-to wire > >>>> them in before AIR build so that everything would be > >>>> included. (it > >>>> looked like I might be able to bind them to an earlier > >>>> phase / bind > >>>> AIR build later but then I'd end up copying from target > >>>> to > >>>> target... > >>>> bletch) > > >>>> Obviously, the klude-copy-into-.m2/repository approach > >>>> requires all > >>>> our developers perform this kluge :-( so rather need an > >>>> answer if > >>>> anyone can, please! > > >>>> Thanks, Rupert. > > >>>> On Sep 14, 8:15 am, Rupert Key <[email protected] > >>>> <mailto:[email protected]>> wrote: > >>>> > Hi, Velo > >>>> > Thanks for the fast response, as always. > >>>> > I'm probably being dense but I cannot seem to figure > >>>> out > >>>> how to get what your > >>>> > answer to work for me. I'll keep trying but perhaps > >>>> you > >>>> (or someone) could > >>>> > validate what I'm supposed to do (and perhaps spot the > >>>> error). > > >>>> > If the library I wish to link is L1. The SWC I wish to > >>>> use as RSL is in remote > >>>> > repository R1 and (from previous compilations), also > >>>> .m2/respository > >>>> > There is no L1 SWF (for RSL) anywhere (vs. those I > >>>> build > >>>> from src where the RSL > >>>> > SWF is placed in the repository). > > >>>> > So, per your instructions, I create a POM with package > >>>> type "swc", I guess I'd > >>>> > have to set L1 as a dependency with type "swc" and > >>>> scope > >>>> "rsl" or scope > >>>> > "caching". Still, no RSL SWF is placed in "target". > > >>>> > Alternatively, I do the same for the application/AIR > >>>> POM > >>>> and I get the same result. > > >>>> > Obviously, I'm missing something. Any advice? > > >>>> > Thanks in advance, > >>>> > Rupert. > > >>>> > On 09/09/2010 02:39, Marvin Froeder wrote: > > >>>> > > Just set the package as swc and the rsl will be > >>>> automatically created on FM4. > > >>>> > > VELO > > >>>> > > On Wed, Sep 8, 2010 at 6:54 PM, Rupert > >>>> <[email protected] <mailto:[email protected]> > >>>> > > <mailto:[email protected] > >>>> <mailto:[email protected]>>> wrote: > > >>>> > > Hi, > >>>> > > How can one create an RSL from a SWC using > >>>> FlexMojos 4? > > >>>> > > We have SWCs that we're not building from source > >>>> that I would like to > >>>> > > use as RSLs with our application (e.g. Parsley). > >>>> I > >>>> realise I can > >>>> > > probably convert and deposit into the repository > >>>> manually but I'd > >>>> > > prefer to auto-build since this wouldn't require > >>>> use of either (a) an > >>>> > > internal repository or (b) manual steps to build. > > >>>> > > All thoughts welcome! > >>>> > > Thanks, Rupert. > > >>>> > > -- > >>>> > > 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] > >>>> <mailto:[email protected]> > >>>> > > <mailto:[email protected] > >>>> <mailto:[email protected]>> > >>>> > > To unsubscribe from this group, send email to > >>>> > > [email protected] > >>>> <mailto:flex-mojos%[email protected]> > >>>> > > <mailto:flex-mojos%[email protected] > >>>> <mailto:flex-mojos%[email protected]>> > >>>> > > For more options, visit this group at > >>>> > > http://groups.google.com/group/flex-mojos > > >>>> > > 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] > >>>> <mailto:[email protected]> > >>>> > > To unsubscribe from this group, send email to > > ... > > read more » -- 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 http://flexmojos.sonatype.org/
