[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Dynamic update of build.properties
|
Hi,
I tried your suggestion and it works, thanks for that!
The same could be achived by using the build helper:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>add-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>help</directory>
<targetPath>help</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
... which does pretty much the same as it copies the folder to
target/classes and packs it afterwards.
Thanks
Christian
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Andreas Sewe
Sent: Tuesday, March 25, 2014 1:21 PM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Dynamic update of build.properties
Hi Christian,
> thanks for your advice
>
>> Use the maven-resources-plugin to copy you stuff below
> ${project.build.directory} (normally target/classes).
>
> But I am not generating classes here, so I guess it is of no use to
> copy my resources to the target/classes folder. Think of my generated
> folder as a resource, like an "images" folder or something similar.
> Tycho does not copy such resources to the target folder at all.
> Instead it seems to consume them directly from their original location.
Even if resources are not classes, in a classic Maven build they are
collected under target/classes, which is the folder where the
maven-jar-plugin will pick them up.
At least for eclipse-repository projects, placing additional files
pre-package in the folder they end up in the build artifact just fine.
Haven't tested it with eclipse-plugin projects, but assumed that Tycho
behaves the same there.
Best wishes,
Andreas
--
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company
Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/
Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
Attachment:
smime.p7s
Description: S/MIME cryptographic signature