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/

Reply via email to