Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Copy resources

you should declare root files in build.properties, see sample build [1]

Regards
Jan

[1] http://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Kristoffer Sjögren
Sent: Freitag, 3. Februar 2012 00:15
To: Tycho user list
Subject: [tycho-user] Copy resources

Hi

Is it possible to copy resources that gets exported to an arbitary directory of the product when it is built. For example, exporting a logback.xml file to <product-root>/configuration/logback.xml. 

Maybe this is the wrong way but I tried the following in the eclipse-repository pom file.

      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.5</version>
        <executions>
          <execution>
            <id>copy-logging</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/products/${product-id}/configuration/</outputDirectory>
              <resources>
                <resource>
                  <directory>logging</directory> <!-- directory with logback.xml -->
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>

I can see that the director gets copied correctly to target/products/${product-id} but the directory does not get picked up by the product build for some reason?

Cheers,
-Kristoffer


Back to the top