I'm using Eclipse 3.2, Apache 2.2, and the Subclipse Subversion plugin for Eclipse. This set up was done on Windows but the configuration should be very similar for other operating systems.
I created a new Eclipse workspace for my Dojo work.
Check out dojo and dijit
Go to the Eclipse "SVN Repository Exploring" perspective and add
http://svn.dojotoolkit.org/dojo
to your "SVN Repository" view.Checkout
http://svn.dojotoolkit.org/dojo/trunk
and select "Check out as a project configured using the New Project Wizard". Choose General/Project as the project type and call it "dojo".Checkout
http://svn.dojotoolkit.org/dojo/dijit/trunk
in a similar fashion and call it "dijit".Ignore .project
When you checkout dojo and dijit it will initially look like they have modifications (an asterisk will appear on the project icons). Eclipse has created project files for us and, as these are not in the svn repository, they show up as modifications. We can get Subclipse to ignore these project files by using the "Ignored Resources" section of the Preferences (Preferences/Team/Ignored Resources). On this page select "Add pattern..." and add ".project". You may have to restart Eclipse for the ignored pattern to take effect.
Server up dojo and dijit with Apache
You can serve up dojo, as
/dojo
, and dijit, as /dijit
, with the following Apache aliases. You will need to replace "C:/Dojo workspace"
with the location of your Dojo workspace.Alias /dojo "C:/Dojo workspace/dojo"
<Directory "C:/Dojo workspace/dojo">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /dijit "C:/Dojo workspace/dijit"
<Directory "C:/Dojo workspace/dijit">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
1 comment:
Thanks, it's a interesting tip
Post a Comment