Skip to main content

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

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



Back to the top