Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[epp-dev] Added JustJ Java Runtime into Rust and JS packages

Hi all,

I recently added the JustJ Java Runtime into the Rust and JS packages, with https://git.eclipse.org/c/epp/org.eclipse.epp.packages.git/commit/?id=ceb029cf999fb9e503dec749f70e075705991dc4 .
The integration is currently not perfect IMO, because of some Tycho limitations, but it's already working and usable.

To add it to your package, you simply need to add those the justj feature to your .product file and then add those lines to the product pom.xml

<build>
  <plugins>
     <plugin>
       <groupId>org.eclipse.tycho</groupId>
       <artifactId>target-platform-configuration</artifactId>
       <version>${tycho.version}</version>
       <configuration>
          <!-- a.jre.javase units are added by Tycho for regular execution environments. Those units aren't compatible with JustJ which has a negative requirement on a.jre.javase. So we raplace those EE units in Tycho by an empty EE/Unit that doesn't interfere
with JustJ -->
          <executionEnvironment>Noop-1.0</executionEnvironment>
          <dependency-resolution>
            <extraRequirements>
              <requirement>
                <type>eclipse-plugin</type>
                <id>a.jre.noop</id>
                <versionRange>0.0.0</versionRange>
              </requirement>
            </extraRequirements>
          </dependency-resolution>
       </configuration>
     </plugin>
  </plugins>
</build>

Cheers,
--
Mickael Istria
Eclipse IDE developer, for Red Hat Developers

Back to the top