Skip to content

Commit

Permalink
RVM-549 : Extend IcedTea build file so that it can be used in place o…
Browse files Browse the repository at this point in the history
…f the OpenJDK build file.

Note that it's not possible to actually build with IcedTea 6: the build will fail in the "compile" target. The current OpenJDK port replaces some JDK classes with classes from the libraryInterface directory. Those replacement classes are based on the OpenJDK zip which contains an older version of the JDK. This leads to incompatibilities that cause compile errors.
  • Loading branch information
erik-brangs committed May 10, 2016
1 parent d1c8779 commit bfd3f1d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions build/components/icedtea.xml
Expand Up @@ -19,6 +19,7 @@

<import file="base.xml"/>

<property name="icedtea.description" value="IcedTea"/>
<property name="icedtea.base.url" value="http://icedtea.classpath.org/download/source/"/>
<property name="icedtea.version" value="6-1.13.11"/>
<!-- .tar.xz is also provided by upstream -->
Expand All @@ -28,8 +29,10 @@
<property name="icedtea.component.dir" location="${components.dir}/icedtea"/>
<property name="icedtea.package.dir" value="${icedtea.component.dir}/${icedtea.version}"/>
<property name="icedtea.dir" value="${icedtea.package.dir}/icedtea${icedtea.version}"/>
<property name="icedtea.jre.location" value="${icedtea.dir}/icedtea-build/openjdk.build/j2sdk-server-image/jre"/>

<target name="download-icedtea-from-web">
<echo message="Downloading IcedTea sources"/>
<test-file name="tar.exe" location="${host.file}"/>
<mkdir dir="${icedtea.package.dir}"/>
<cachedGet key="${icedtea.archive}"
Expand All @@ -46,15 +49,15 @@
</target>

<target name="patch" depends="fetch">
<echo message="Patching IcedTea sources (placeholder)"/>
<echo message="Patching IcedTea sources"/>
<!-- TODO: rename patch to comply with our naming convention -->
<patch patchfile="${components.patch.dir}/icedtea-web-fix-6-1.13.11-build-failure.patch"
dir="${icedtea.dir}" strip="1"/>
</target>

<target name="build" depends="patch">
<!-- TODO is the build 32-bit when it should be? -->
<echo message="Building IcedTea libraries (placeholder)"/>
<echo message="Building IcedTea libraries"/>
<test-file name="make.exe" location="${host.file}"/>

<echo>Executing autogen.sh</echo>
Expand Down Expand Up @@ -82,13 +85,14 @@
<exec executable="${make.exe}" failonerror="true" dir="${icedtea.dir}/icedtea-build">
</exec>

<echo>NYI: setting up for use as class library</echo>
<fail message="Using IcedTea is NYI. TODO: Build zip and change build system to be able to use it like the pre-packaged OpenJDK zip."/>
<echo>Setting up for use as class library</echo>
<writeComponentConstants dir="${icedtea.jre.location}/lib"/>
<setComponentsConfig key="${target.name}.openjdk.lib.dir" value="${icedtea.jre.location}/lib"/>
</target>

<target name="ensure" depends="prepare-ant-tasks">
<echo message="Ensure OpenJDK libraries (placeholder)"/>
<ensureUptodate name="icedtea" dir="${icedtea.package.dir}/${target.name}/lib"/>
<echo message="Ensure IcedTea libraries"/>
<ensureUptodate name="icedtea" dir="${icedtea.jre.location}/lib"/>
</target>
</project>

</project>

0 comments on commit bfd3f1d

Please sign in to comment.