• Edit
  • Delete

Eclipse 4.5 PDT Setup for ullright on Ubuntu 14.04LTS

Installation

Preparation

For a local dev installation we recommend to use /var/www as Eclipse workspace.

Change the owner to your user to allow this. Assuming your username is "klemens":

  • sudo chown klemens:klemens /var/www

Install Oracle Java for Ubuntu

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

  • sudo add-apt-repository ppa:webupd8team/java
  • sudo apt-get update
  • sudo apt-get install oracle-java8-installer
  • java -version
    • Should return:
    • java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
       

Install Eclipse PDT

  • Download latest version from https://eclipse.org/pdt/#download
  • Extract the file to ~/bin/eclipse    ("~" stands for your home directory)
  • Launch eclipse
  • Exit Eclipse

 

Fix GC overhead limit exceeded

  • vi /home/myUsername/bin/eclipse/eclipse.ini
    • -XX:MaxPermSize=1024m
      -Xms512m
      -Xmx1024m

Installing plugins

  • Launch eclipse
  • Default workspace: /var/www
  • Install svn plugin. Install subclipse: (recommended)
    • Help -> Install new software -> Add
    • Name: Subclipse
    • URL:http://subclipse.tigris.org/update_1.10.x
    • Check all checkboxes except "Mylyn"
    • "Next", "Next"
    • Agree to terms -> "Finish"
    • Restart Now: "Yes"
  • Install yamlEditor:
  • Install word wrap

Configuration

Window -> Preferences

  • General -> Appearance -> Colors and Fonts
    • Basic -> Text Font -> Edit -> Monospace 11pt
  • General -> Editors -> Text Editors
    • Display tab width: 2
    • Insert spaces for tabs: checked
    • Show print margin: checked
    • Print margin column: 80
  • PHP -> Code Style -> Formatter-> Show
    • Tab policy : Spaces
    • Indendation size: 2
    • Braces: all new lines
    • Save as custom profile
  • Javascript -> Code Style -> Formatter
    • -> edit (tab = 2 spaces)

 

Run -> External tools -> External tools configuration

  • "New" Icon
    • Name: refresh completely
    • Location: ${project_loc}/batch/refresh_completely
    • Working Directory: ${project_loc}
    • Tab "Build": uncheck "Build before launch"
    • Tab "Refresh": check "The project containing the selected resource"
  • "New" Icon
    • Name: symfony cache-clear
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: cache:clear
    • Tab "Build": uncheck "Build before launch"
  • "New" Icon
    • Name: get and load production database
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:get-and-load-production-database
    • Tab "Build": uncheck "Build before launch"
  • "New" Icon
    • Name: get production uploads
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:get-production-uploads
    • Tab "Build": uncheck "Build before launch"
  • "New" Icon
    • Name: publish
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:publish
    • Tab "Build": uncheck "Build before launch"
  • "New" Icon
    • Name: publish only files
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:publish --only-files
    • Tab "Build": uncheck "Build before launch"

Run -> External Tools -> Organize Favorites -> Add All

Per ullright project

Exclude ullFileStreamable files for ullMail

  • Right click on "web/uploads/ullFilestreamable" -> Properties
  • Resource -> Resource Filter ->Add
    • Exclude All
    • Files & Folders
    • All children (recursive)
    • *.*