Mojo
  1. Mojo
  2. MOJO-1646

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: native
    • Labels:
      None
    • Environment:
      Windows XP - Maven 2 - maven-native-bcc-1.0-alpha-6
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

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

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

      First test:

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

      The preview pom.xml test codes make the resource compiler compile *.cpp files.

      Second test:

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

      The preview pom.xml test codes make the compilers not find any source file.

        Issue Links

          Activity

            People

            • Assignee:
              Dan Tran
              Reporter:
              Clément Igonet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: