maven-native-bcc - can not define resource files to compile
-----------------------------------------------------------

                 Key: MOJO-1646
                 URL: http://jira.codehaus.org/browse/MOJO-1646
             Project: Mojo
          Issue Type: Bug
          Components: native
         Environment: Windows XP - Maven 2 - maven-native-bcc-1.0-alpha-6
            Reporter: Clément Igonet
            Priority: Blocker


There is no way to separate C sources from resource sources.

I believe there is no way to define specific resource files.

*First test*:
{code:xml}
<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>native-maven-plugin</artifactId>
            <extensions>true</extensions>
            <version>1.0-alpha-6</version>
            <configuration>
                <compilerProvider>bcc</compilerProvider>
                
<envFactoryName>org.codehaus.mojo.natives.bcc.BCCEnvFactory</envFactoryName>
                <sources>
                    <source>
                        <directory>${basedir}</directory>
                        <includes>
                            <include>*.cpp</include>
                        </includes>
                    </source>
                </sources>
            </configuration>
            <executions>
                <execution>
                    <id>resource-compile</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>resource-compile</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>
                                <directory>${basedir}</directory>
                                <includes>
                                    <include>*.rc</include>
                                </includes>
                            </source>
                        </sources>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
 </build>
{code}
The preview pom.xml test codes make the resource compiler compile *.cpp files.

*Second test*:
{code:xml}

<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>native-maven-plugin</artifactId>
            <extensions>true</extensions>
            <version>1.0-alpha-6</version>
            <configuration>
                <compilerProvider>bcc</compilerProvider>
                
<envFactoryName>org.codehaus.mojo.natives.bcc.BCCEnvFactory</envFactoryName>
            </configuration>
            <executions>
                <execution>
                    <id>compile</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>
                                <directory>${basedir}</directory>
                                <includes>
                                    <include>*.cpp</include>
                                </includes>
                            </source>
                        </sources>
                    </configuration>
                </execution>
                <execution>
                    <id>resource-compile</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>resource-compile</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>
                                <directory>${basedir}</directory>
                                <includes>
                                    <include>*.rc</include>
                                </includes>
                            </source>
                        </sources>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
 </build>
{code}
The preview pom.xml test codes make the compilers not find any source file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to