<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2008-12-12T15:02:36Z</created-at>
  <description>Added example building from sources using the ECLIPSE_HOME environment variable</description>
  <id type="integer">573</id>
  <name>BuildFromSources</name>
  <number type="integer">2</number>
  <person-id type="integer">3281</person-id>
  <text>= How to build the plugins from sources

== Requirements
* Install Eclipse IDE for Java EE Developers from [http://www.eclipse.org/downloads/].
* Install DeltaPack from [http://archive.eclipse.org/eclipse/downloads] - click on 3.4 link and download the package in the DeltaPack section.
* Download the SDK zip file from [javafx.com] (TBD - at the moment only the installer is available, you have to zip it back)

== Get the sources
* svn co https://kenai.com/svn/eplugin~subversion/trunk eplugin

== Run the build
* cd eplugin
* ant -DeclipseDir=&amp;lt;path&amp;gt; -Djavafx.sdk.build.url=&amp;lt;url_to_zip&amp;gt; clean build-windows [build-macosx] [build-linux]

for instance on my machine
* ant -DeclipseDir=c:\eclipse -Djavafx.sdk.build.url=file:///C:/sdk/javafx_sdk-1_0-${platform}.zip clean build-windows build-macosx
* where c:\sdk contains
** javafx_sdk-1_0-windows-i586.zip 
** javafx_sdk-1_0-macosx-universal.dmg	


You can also make use of the environment variable ECLIPSE_HOME. For instance, on my GNU/Linux machine:
* export ECLIPSE_HOME=/opt/eclipse
* ant -Djavafx.sdk.build.url=file:://opt/javafx/javafx_sdk_1.0-linux-i586.zip clean build

BTW, you can get the unofficial (!) GNU/Linux version of JavaFX 1.0 at [http://silveiraneto.net/2008/12/06/javafx-sdk-10-on-linux/ Silveira Neto's blog].
</text>
  <text-as-html>&lt;h1&gt;&lt;a name='How_to_build_the_plugins_from_sources'&gt;&lt;/a&gt; How to build the plugins from sources&lt;/h1&gt;
&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;&lt;a name='Requirements'&gt;&lt;/a&gt; Requirements&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt; Install Eclipse IDE for Java EE Developers from &lt;a class='external' href=&quot;http://www.eclipse.org/downloads/&quot;&gt;http://www.eclipse.org/downloads/&lt;/a&gt;.
&lt;/li&gt;&lt;li&gt; Install DeltaPack from &lt;a class='external' href=&quot;http://archive.eclipse.org/eclipse/downloads&quot;&gt;http://archive.eclipse.org/eclipse/downloads&lt;/a&gt; - click on 3.4 link and download the package in the DeltaPack section.
&lt;/li&gt;&lt;li&gt; Download the SDK zip file from [javafx.com] (TBD - at the moment only the installer is available, you have to zip it back)
&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;a name='Get_the_sources'&gt;&lt;/a&gt; Get the sources&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt; svn co &lt;a class='external' href=&quot;https://kenai.com/svn/eplugin~subversion/trunk&quot;&gt;https://kenai.com/svn/eplugin~subversion/trunk&lt;/a&gt; eplugin
&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;a name='Run_the_build'&gt;&lt;/a&gt; Run the build&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt; cd eplugin
&lt;/li&gt;&lt;li&gt; ant -DeclipseDir=&amp;lt;path&amp;gt; -Djavafx.sdk.build.url=&amp;lt;url_to_zip&amp;gt; clean build-windows [build-macosx] [build-linux]
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
for instance on my machine
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; ant -DeclipseDir=c:\eclipse -Djavafx.sdk.build.url=file:///C:/sdk/javafx_sdk-1_0-${platform}.zip clean build-windows build-macosx
&lt;/li&gt;&lt;li&gt; where c:\sdk contains
&lt;ul&gt;&lt;li&gt; javafx_sdk-1_0-windows-i586.zip 
&lt;/li&gt;&lt;li&gt; javafx_sdk-1_0-macosx-universal.dmg	
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;p&gt;You can also make use of the environment variable ECLIPSE_HOME. For instance, on my GNU/Linux machine:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; export ECLIPSE_HOME=/opt/eclipse
&lt;/li&gt;&lt;li&gt; ant -Djavafx.sdk.build.url=file:://opt/javafx/javafx_sdk_1.0-linux-i586.zip clean build
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
BTW, you can get the unofficial (!) GNU/Linux version of JavaFX 1.0 at &lt;a class='external' href=&quot;http://silveiraneto.net/2008/12/06/javafx-sdk-10-on-linux/&quot;&gt;Silveira Neto's blog&lt;/a&gt;.
&lt;/p&gt;</text-as-html>
  <updated-at type="datetime">2009-01-06T20:05:12Z</updated-at>
  <wiki-id type="integer">2206</wiki-id>
</page>
