Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problems building against a fragment patch

Hi Justin,

Add the fragment to the consuming bundle build.properties like so:

jars.extra.classpath=platform:/plugin/fragment.id

HTH,

Wim




On Mon, Feb 4, 2013 at 9:06 AM, Justin Dolezy <justin.dolezy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,

I've an RCP application where I need to extend the draw2d plugin, so I have a source patch fragment 'org.eclipse.draw2d.patch'. All setup the usual way for source patches, with the host declaring  Eclipse-ExtensibleAPI: true in the manifest and "Bundle-ClassPath: library.jar, ." and the fragment providing the library.jar.

Everything is fine in the Eclipse workspace, however clients of the patched draw2d do not compile via Tycho as they're not seeing the patch which is resulting in 'class not visible', 'method not found' etc as expected without the patched files. Seems that patches are treated as optional, so how do I fix it so that the patch is present at compile time?!

I found another post that recommended forcing the dependency into Tycho as below which I added to the client pom, but it hasn't helped.

<build>
  <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <dependency-resolution>
            <extraRequirements>
              <requirement>
                <type>eclipse-plugin</type>
                <id>org.eclipse.draw2d.patch</id>
                <versionRange>0.0.0</versionRange>
              </requirement>
            </extraRequirements>
          </dependency-resolution>
        </configuration>
      </plugin>
  </plugins>
</build>

Thanks in advance for any help on this!

Regards,
Justin


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



Back to the top