Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Source Build
Eclipse Source Build [message #1385340] Thu, 05 June 2014 17:46 Go to next message
shiraz sayed is currently offline shiraz sayedFriend
Messages: 1
Registered: June 2014
Junior Member
I am trying to build the source of Eclipse IDE using ant. The build is getting failed
with
BUILD FAILED
Target "Files\Java\jdk1.7.0_45\jre\lib\rt.jar" does not exist in the project "Ec
lipse SDK Source Build".


Build.xml file
<project name="Eclipse SDK Source Build" default="run" basedir=".">

<!--directory in which to collect installable eclipse-->
<property name="buildLabel" value="result" />

<!-- directory where to perform the build -->
<property name="buildDirectory" value="${basedir}" />

<!-- default setting for bootclasspath if none specified -->
<property name="bootclasspath" value="${java.home}/lib/rt.jar" />

<echo> ${basedir} </echo>
<echo> ${java.home} </echo>
<!--this property required as of Eclipse 3.0 stream builds > 20031126 -->
<property name="buildingOSGi" value="true" />


<!-- default target that runs complete build -->
<target name="run" depends="compile,install" />

<!-- all features required to build eclipse sdk and javadoc -->
<target name="allElements">

<ant antfile="${buildDirectory}/features/org.eclipse.sdk/build.xml" target="${target}" dir="${buildDirectory}/features/org.eclipse.sdk" />
</target>

<!--
Compiles jars for all sdk plugins, and generates javadoc.
Deletes previously compiled jars first.
-->
<target name="compile" depends="init,clean">
<record name="compilelog.txt" action="start" />
<antcall target="allElements">
<param name="target" value="build.jars" />
</antcall>
<record name="compilelog.txt" action="stop" />
</target>

<!--
This target will create install for a specified eclipse configuration
-->
<target name="install" depends="init">
<!--this task is used in the gather.bin.parts target of a feature build.xml-->
<taskdef name="eclipse.idReplacer" classname="org.eclipse.pde.internal.build.tasks.IdReplaceTask" classpath="${buildDirectory}/plugins/org.eclipse.pde.build/lib/pdebuild-ant.jar" />

<!--insert build ID values-->
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
<include name="**/about.mappings" />
</replace>
<replace dir="${buildDirectory}" value="${timestamp}" token="@build@">
<include name="**/configuration/config.ini" />
</replace>

<!--root directory of zip file-->
<property name="collectingFolder" value="eclipse" />
<property name="archivePrefix" value="eclipse" />

<property name="zipargs" value="" />

<ant antfile="assemble.org.eclipse.sdk.${configuration}.xml" />
</target>

<!-- Only deletes jars that are to be compiled, i.e. xercesImpl.jar and ant.jar do not get deleted -->
<target name="clean" depends="init">
<antcall target="allElements">
<param name="target" value="clean" />
</antcall>
</target>

<target name="init">
<property file="label.properties" />
<property name="configuration" value="${installOs}.${installWs}.${installArch}" />
<property name="archiveName" value="${installOs}-${installWs}-${installArch}-sdk.zip" />
</target>

</project>
Re: Eclipse Source Build [message #1385346 is a reply to message #1385340] Thu, 05 June 2014 18:16 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Building Eclipse with ant has always been tedious and error prone.
If indeed you need a headless build to create your deployable version of Eclipse have a look at these
- http://wiki.eclipse.org/CBI
- http://wiki.eclipse.org/Platform-releng/Platform_Build
- http://blog.vogella.com/2012/10/08/building-eclipse-sdk-locally-with-maven/

Otherwise, if you just want to experiment with hacking a few individual bundles, you might be much quicker by simple importing these projects into your workspace, letting Eclipse do the compilation and for testing run fire up a "runtime workbench" (launch configuration of type "Eclipse Application").

Previous Topic:Neo4j + Eclipse
Next Topic:What happened to "Alt+Shift+X" shortcuts??
Goto Forum:
  


Current Time: Sat Jun 22 18:42:27 GMT 2024

Powered by FUDForum. Page generated in 0.03688 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top