Hi all,
Thank you Martin Pepin for this valuable feedback on using Eclipse with
the EDE. I'm moving the discussion to the sipx-dev list to reach a
larger audience. (See below for background.)
Here's what I plan for adding Eclipse "readiness" to the EDE.
- Addition of an "eclipse-ede" alias to start Eclipse using a
"workspace" in the EDE WORKING directory. For example:
alias 'eclipse-ede=eclipse -vmargs -Xmx1024M -XX:PermSize=1024M
-Dorg.eclipse.swt.internal.gtk.disablePrinting
-Djava.library.path=/usr/lib -data
/home/sipxchange/WORKING/eclipse-workspace/ &'
- Create the softlink WORKING/main/BUILD1 to the EDE's WORKING/BUILD
- Perform the two "Jetty Launcher" Eclipse manual steps
- Define the SIPX_MYBUILD and SIPX_MYBUILD_OUT environment variables,
which should mean you don't have to do it manually in Eclipse.
- Generate a reference file containing all the Java Classpath Variable
values (SIPX_CONFIG, SIPX_PREFIX, etc) that you will still need to
manually add in Eclipse. (Also the SIPX_OUT Linked Resources value.)
We already have two sets of instructions for setting up Eclipse, so I
won't add an EDE variant. But I will update the EDE Wiki page cover the
above.
I'm open to any suggestions on how to improve this, especially on
automating more of the many manual Eclipse steps that still remain.
Thanks.
-Paul
[email protected]
_____________________________________________
From: Pepin, Martin (CAR:9D80)
Sent: September 3, 2009 3:22 PM
To: Mossman, Paul (CAR:9D30)
Cc: Fowler, Peter (CAR:9D10)
Subject: Things to include in the EDE script + Eclipse
configuration
Hi Paul,
Part of my expirements running the EDE script in Fedora 10
configured with Eclipse 3.4.1, here are the tidbits I have gathered that
could be added to the EDE script execution.
Helper /home/sipxchange/.bashrc file. See the attachment. Things
of importance for me are:
- The setting of the DISPLAY variable to redirect graphical
windows output to my main Linux computer e.g. Eclipse
- An alias to start Eclipse
- A bunch of aliases to build and access directories quickly.
- Update the PATH to include the SipX tools:
export PATH=$PATH:~/bin:/home/sipxchange/WORKING/INSTALL/bin
To configure Eclipse I had to do the following:
0) Run step #5 of your EDE instructions to build all components
the first time
1) In a shell, create a softlink manually
ln -s /home/sipxchange/WORKING/BUILD
/home/sipxchange/WORKING/main/BUILD1
2) Start Eclipse and create a default workspace
3) Import all projects and run the indexer as described in
http://sipxecs.sipfoundry.org/rep/sipXecs/main/doc/EclipseCDTprojects.tx
t
4) Optionally import Eclipse plug-ins such as:
Subclipse <http://subclipse.tigris.org> and more see:
http://sipx-wiki.calivia.com/index.php/SipX_ConfigServer_Eclipse
5) Set those environment variables from within the Eclipse
menus:
# Window->Preferences->C++->Environment
SIPX_MYBUILD /home/sipxchange/WORKING/BUILD
SIPX_MYBUILD_OUT /home/sipxchange/WORKING/BUILD
# Window->Preferences->Java->Build Path->Classpath Variables
JAVA_LIBDIR /usr/share/java
OPENFIRE-ROOT /home/sipxchange/WORKING/BUILD/sipXopenfire
SIPX_BUILD /home/sipxchange/WORKING/BUILD
SIPX_COMMONS /home/sipxchange/WORKING/main/sipXcommons
SIPX_CONFIG /home/sipxchange/WORKING/main/sipXconfig
SIPX_PREFIX /home/sipxchange/WORKING/INSTALL
SIPX_PROJECT_ROOT /home/sipxchange/WORKING/main
SIPX-PROJECT-ROOT /home/sipxchange/WORKING/main
# missing classpath variable definitions for ... You probably
need to install a missing package for this
JUNIT_SRC_HOME
# Window->Preferences->General->Workspace->Linked Resources
SIPX_OUT /home/sipxchange/WORKING/INSTALL/bin
6) Restart Eclipse
7) Build all projects: Project->Build All
8) Start browsing the code
9) To debug applications, make sure to first stop the
application with "sipxproc -k <app_name>"
Martin
<< File: bashrc_file.tar >>
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/