Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Instructing Tycho to

Thanks Jan

Incidentally, for anyone else looking to solve this problem (i.e. you want Tycho to build with a different source directory to what's specified anywhere other than in your pom.xml file), use the following configuration in your pom.xml <build><plugins>:

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>0.13.0</version>
<configuration>
<source>${project.basedir}/YourNewSourceDirectory</source>
<usePdeSourceRoots>false</usePdeSourceRoots>
</configuration>
</plugin>

This "works for me" with Tycho 0.13.0.

Chris

On 9 November 2011 16:22, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
mvn help:describe -Dplugin=org.eclipse.tycho:tycho-compiler-plugin -Ddetail

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Chris Alexander
Sent: Mittwoch, 9. November 2011 15:49
To: Tycho user list
Subject: Re: [tycho-user] Instructing Tycho to

Thanks, that solved the problem.

I couldn't find a documentation page listing these configuration options - would you be able to point me to it? Would help out with solving these problems without having to keep asking.

Cheers

Chris
On 7 November 2011 17:34, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
I guess you will need to add

<usePdeSourceRoots>false</usePdeSourceRoots>

to make tycho ignore source roots from build.properties and use source roots from pom.xml instead.

Regards,
Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Chris Alexander
Sent: Montag, 7. November 2011 18:17
To: Tycho user list
Subject: Re: [tycho-user] Instructing Tycho to

Hi Igor,

Thanks for the info. I just switched to tycho 0.13.0 to see if this would work better, but I can't seem to get it to. I have the following in my parent pom.xml:

<plugin>
       <groupId>org.eclipse.tycho</groupId>
       <artifactId>tycho-compiler-plugin</artifactId>
       <version>0.13.0</version>
       <configuration>
               <compileSourceRoots>
                       <compileSourceRoot>src.processed</compileSourceRoot>
               </compileSourceRoots>
       </configuration>
</plugin>

However when I run a build, I get the following error messages:

[ERROR] J:\build\com.<product>\src\com\....java (at line 15):[-1,-1]
[ERROR] public final class Callback {
[ERROR] ^^^^^^^^
[ERROR] The blank final field runnable may not have been initialized
[ERROR]

I'm certain that it should be aiming at \src.processed\ if this configuration parameter were to be working correctly.

Do you have any ideas for how I may be able to debug this problem?

Thanks again

Chris

On 7 November 2011 11:48, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
I think tycho-compiler-plugin configuration parameter should work


 <compileSourceRoots>
   <compileSourceRoot>${project.build.directory}/...</compileSourceRoot>
 </compileSourceRoots


--
Regards,
Igor


On 11-11-07 6:21 AM, Chris Alexander wrote:
Hi all,

I am struggling with a particular configuration property in Tycho with
regards to build. Currently on my build, I have the following output:

[INFO] --- maven-osgi-compiler-plugin:0.11.1:compile (default-compile) @
com.<<product>>
[INFO] Using compile source roots from build.properties

However, I would like to override the src property of build.properties
with something else. This is because earlier in the build process, the
source files are processed and their modifications are placed in a
different directory. I wish to preserve build.properties as they are.

Is there a way in my pom.xml to give maven-osgi-compiler-plugin an
override value for the src property to use? I have not been able to find
it documented anywhere.

Thanks for any help.

Chris

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top