Sorry. This should've been in JIRA. I forget about JIRA sometimes.

This one seems to be the same issue:
https://issues.sonatype.org/browse/NAR-139. What is NAR?

- Jeff


On Thu, Oct 27, 2011 at 11:38 AM, Jeff Fairley <[email protected]> wrote:

> Thanks, Velo.
>
> I gathered that much, especially since it didn't work. I'm actually not
> trying to use <loadConfig> at all. Just thought you might want to know about
> this bug. My real problem was with <outputDirectory>, and that using it
> broke my build.
>
> I see that CompcMojo.getIncludeFile() uses
> AbstractMavenMojo.getResourcesTargetDirectories() to resolve the location of
> resource files, like my xml files.
> AbstractMavenMojo.getResourcesTargetDirectories() checks each Resource
> before checking outputDirectory, but getOutputDirectory() is inside the
> Resource for-loop. I didn't any line-by-line debugging but just from
> inspecting source and looking at my results, I would think
> getOutputDirectory() belongs outside that for-loop. Here are the scenarios I
> see...
>
>    1. One specifies no Resource, and getOutputDirectory() isn't hit. (The
>    scenario I had hit.)
>    2. One specifies a Resource with a directory param, and
>    getOutputDirectory() isn't hit.
>    3. One specifies a Resource with no directory param, and Maven
>    complains and won't even let you build.
>
> - Jeff
>
>
>
> On Thu, Oct 20, 2011 at 6:16 AM, velo <[email protected]> wrote:
>
>> Hi Jeff,
>>
>> loadConfig is not safe to use and configurations may get ignored/
>> replaced/added for no apparent reason.
>> This happen due to CoC nature Flexmojos inherit from Maven.
>>
>> VELO
>>
>> On Oct 20, 4:00 am, Jeff Fairley <[email protected]> wrote:
>> > Just a follow up. I found that my "problem" was that I had specified a
>> > custom <outputDirectory> in the flexmojos configuration. When using the
>> > default -- target/classes -- flexmojos correctly removes the root part
>> of
>> > the path -- "/Users/.../target/classes" -- but when using a custom
>> > directory, this doesn't work.
>> >
>> > I also found another issue with <loadConfig> concerning <includeFile>.
>> When
>> > trying to load the following snippet...
>> >
>> > <include-file>
>> >     <name>file.xml</name>
>> >     <path>/Users/.../src/file.xml</path>
>> > </include-file>
>> >
>> > ... which comes straight out of the config dump xml, flexmojos complains
>> the
>> > "include-file" is basically invalid input.
>> >
>> > - Jeff
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Wed, Aug 31, 2011 at 4:13 PM, Jeff Fairley <[email protected]>
>> wrote:
>> > > Are there any known work-arounds or planned development concerning
>> this
>> > > issue?
>> >
>> > > - Jeff
>> >
>> > > On Sat, Aug 20, 2011 at 2:35 AM, Jeff Fairley <[email protected]>
>> wrote:
>> >
>> > >> Hello,
>> >
>> > >> I have some non-source files that need to be included in a swc, but I
>> > >> can't seem to configure my pom.xml correctly. Here's what I have..
>> >
>> > >> The file I'd like to include is at the following location in my
>> > >> project.
>> > >>        ... /src/assets/config/ApplicationContext.xml
>> >
>> > >> My pom.xml is set up as follows (slimmed down for clarity):
>> > >>        <build>
>> > >>                <sourceDirectory>src</sourceDirectory>
>> > >>                <plugins>
>> > >>                        <plugin>
>> > >>
>>  <groupId>org.sonatype.flexmojos</groupId>
>> >
>> > >>  <artifactId>flexmojos-maven-plugin</artifactId>
>> > >>                                <version>4.0-RC1</version>
>> > >>                                <extensions>true</extensions>
>> > >>                                <configuration>
>> >
>> > >>  <configurationReport>true</configurationReport>
>> > >>                                        <includeSources>
>> >
>> > >>  <includeSource>${basedir}/src</includeSource>
>> > >>                                        </includeSources>
>> > >>                                        <includeFiles>
>> >
>> > >>  <include>${basedir}/src/assets/config/ApplicationContext.xml</
>> > >> include>
>> > >>                                        </includeFiles>
>> > >>                                </configuration>
>> > >>                        </plugin>
>> > >>                </plugins>
>> > >>        </build>
>> >
>> > >> The config dump after building shows the following, but this inserts
>> > >> the fully qualified path into the swc.
>> > >>   <include-file>
>> > >>      <name>/Users/ ... /src/assets/config/ApplicationContext.xml</
>> > >> name>
>> > >>      <path>/Users/ ... /src/assets/config/ApplicationContext.xml</
>> > >> path>
>> > >>   </include-file>
>> >
>> > >> Based on the config dump that Flash Builder generates, what I expect
>> > >> to see is the following.
>> > >>   <include-file>
>> > >>      <name>assets/config/ApplicationContext.xml</name>
>> > >>      <path>/Users/ ... /src/assets/config/ApplicationContext.xml</
>> > >> path>
>> > >>   </include-file>
>> >
>> > >> I feel like there's probably something simple I'm missing. Any
>> > >> guidance would be much appreciated.
>> >
>> > >> - Jeff
>> >
>> > >> --
>> > >> 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/
>>
>> --
>> 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/
>>
>
>

-- 
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/

Reply via email to