Fornax-Platform View a printable version of the current page. Export Page as PDF
  1. Installation Guide (CSC)
 
 Browse Space
General


Projects


Latest News
Latest News
(The 15 most recent blogposts in space Fornax-Platform.)


Global Reports
Find all pages that arent linked from anywhere.
Find all undefined pages.
Feed for new pages.
Added by Patrik Nordwall, last edited by Patrik Nordwall on Feb 16, 2010  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Sculptor Installation Guide

This instruction describes what you need to install and configure to be able to use Sculptor as normal developer, e.g. for getting started with the Hello World Tutorial.

Table of Contents:

JDK

Install JDK 6 or JDK 5.

Maven

Maven is used for generating source code and building the system.

1. Install Maven2. Use Maven 2.0.8 or later.

2. Define JAVA_HOME environment variable.

I often put JAVA_HOME and MAVEN_OPTS directly in mvn.bat. I increase the heap size for better performance and avoiding out of memory.
Windows:
set JAVA_HOME=c:\devtools\jdk1.6.0_03
set MAVEN_OPTS=-Xms128m -Xmx1024m

Mac OS X:

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
MAVEN_OPTS="-Dfile.encoding=iso-8859-1 -Xms128m -Xmx1024m"

Eclipse and Plugins

Sculptor can be used with a text editor or any IDE, but if you are an Eclipse user it is recommended that you install the following Eclipse plugins to be able to use DSL editor with error highlight, code completion, and outline.

Sculptor 1.8.0 DSL editor has been tested with Eclipse 3.5 Galileo and MWE/Xpand/Xtext 0.7.2. If you must use Eclipse 3.4 Ganymede you can use Sculptor version 1.7.0 plugins as described in the old installation guide.

1. Install Eclipse 3.5 Galileo, Eclipse IDE for Java EE Developers.

2. Install from Galileo update site - http://download.eclipse.org/releases/galileo

  • Modeling > MWE SDK 0.7.2
  • Modeling > Xpand SDK 0.7.2
  • Modeling > Xtext SDK 0.7.2

3. Install from Itemis update site - http://download.itemis.com/updates/releases

  • Xtext Antlr Support 0.7.2

4. Sculptor Plugins

Final release for Sculptor version 1.8.0 is available at update Site: http://fornax-platform.org/updatesite/.
Install Sculptor DSL Feature 1.8.0.
If you are going to develop rich clients you should also install Sculptor Rich Client Feature 1.8.0.

Configuration in Eclipse

Add 'Classpath Variable' in Eclipse for M2_REPO=<your local repository location>
You find this setting in Window -> Preferences -> Java -> Build Path -> Classpath Variables
The local repository location is by default in .m2/repository in your home directory (Document and Settings in Windows)

Add 'String Substitution Variable' in Eclipse for MAVEN_EXEC=<MAVEN_HOME>/bin/mvn.bat

If you are using Mac OS X you should change the default file encoding in Eclipse to ISO-8859-1. Preferences -> General -> Workspace

Maven Launcher

Maven can be executed from the command prompt, but when developing a better alternative is to run it inside Eclipse as an external tool. You can checkout some preconfigured launchers from Fornax Subversion repository. The menu items for this are available in the external tools menu.

Checkout https://fornax.svn.sourceforge.net/svnroot/fornax/trunk/maven-launcher/

Use the subversive plugin, open view SVN Repositories. Connect to the Subversion repository root: https://fornax.svn.sourceforge.net/svnroot/fornax/

If you don't see the list of fornax maven commands under the 'External tools' menu in Eclipse, try closing the 'Maven Launcher' project and open it again. 

m2eclipse

If you like you can use the m2eclipse plugin instead of the combination of the eclipse:eclipse plugin and Maven Launcher.

There are two things to have in mind.

1. For the plugin to know about all different sources folders you need to configure it to run the goal generate-sources at import moment. This is done in the Maven configuration at workspace level:

2. When running web projects (like the library-web example), you need to set Maven configuration (at project level) to NOT resolve dependencies from workspace projects:

Continue

Now you are ready to continue with the 2. Hello World Tutorial (CSC).

Article Rating: 9.333333 (3 voters)
2 3 4 5 6 7 8 9

If you want users to install oAW 4.2 you need to specify the update site http://www.openarchitectureware.org/updatesite/milestone/4.2.0/site.xml instead.

Posted by Anonymous at Jun 26, 2008 01:08 | Reply To This

Eclipse String Substitution Variables can be edited here:

    Window -> Preferences -> Run/Debug -> String Substitution

Posted by Anonymous at Oct 24, 2008 12:06 | Reply To This

I needed to execute eclipse -clean after copying jar files from zip file (1.5.0-SNAPSHOT) to get the sculptor dsl editor.

Posted by Anonymous at Jan 24, 2009 19:44 | Reply To This

The sculptor plugin has dependancies problem ?

Posted by Anonymous at Jun 19, 2009 18:52 | Reply To This

Downloadable update site can't be installed. Serveral artifacts are not in archive. Colud you please provide correct one? Tnx

Posted by Anonymous at Dec 14, 2009 17:05 | Reply To This

It is the rich client (rcp) features that are not in the archive, due to limited size of wiki files. You should be able to install the dsl editors without that. Let me know if you need rcp and need it for 1.7.0-snapshot.