[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] src.includes ignored by tycho-source-plugin
|
Hi,
Thanks Jan! Your workaround worked fine. I had to add the source in
the build.properties, but it won't be compiled into the output jar.
Source bundle is created as excepted.
source.. = src/
Regards,
Balazs
On Fri, Feb 17, 2012 at 9:36 AM, Rosczak, Jan <Jan.Rosczak@xxxxxxxx> wrote:
> Hi,
>
> I had a similar problem. My approach was to remove the src.includes from the build.properties file and add the following to my pom.xml:
>
> <!-- Prevent compilation of source bundle -->
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-compiler-plugin</artifactId>
> <executions>
> <execution>
> <id>default-compile</id>
> <phase>none</phase>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-source-plugin</artifactId>
> <configuration>
> <usePdeSourceRoots>false</usePdeSourceRoots>
> </configuration>
> <executions>
> <execution>
> <id>plugin-source</id>
> <goals>
> <goal>plugin-source</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> Maybe it is even enough to stop the tycho compiler from compiling the source files.
>
> Regards
> Jan Rosczak
>
> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Balazs Varnai
> Sent: Friday, February 17, 2012 9:32 AM
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] src.includes ignored by tycho-source-plugin
>
> Hi All,
>
> I am repackaging external jars as bundles. I also would like to attach
> the source code to the bundles. But my approach is a bit different
> than normal build, because I don't want to compile the sources. Thus,
> I don't want include "source.${jarfile} = src/" in my build.properties
> file. This would result the complete build of the jar, eventually the
> creation of the source bundle too.
>
> I tried "src.includes" in PDE (export->generate source bundles).
> Worked fine, one bundle with the jar and one with sources of the jar.
> But in tycho 0.14.0, the tycho-source-plugin does not generate a
> source plugin? Any suggestion?
>
> Thanks!
>
> Regards,
> Balazs Varnai
>
> The build.properties content:
>
> build.properties
> src.includes = src/
> bin.includes = META-INF/,\
> plugin.properties,\
> guava-11.0.1.jar
>
> The pom content:
>
> as usual packaging->eclipse-plugin
>
> build->tycho-source-plugin->goal plugin-source
> _______________________________________________
> 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