Author: donaldp
Date: Sun Sep 30 10:39:30 2012
New Revision: 1391984
URL: http://svn.apache.org/viewvc?rev=1391984&view=rev
Log:
BUILDR-656 - Add documentation for generating eclipse buildfile
Submitted By Niklaus Giger
Modified:
buildr/trunk/doc/more_stuff.textile
Modified: buildr/trunk/doc/more_stuff.textile
URL:
http://svn.apache.org/viewvc/buildr/trunk/doc/more_stuff.textile?rev=1391984&r1=1391983&r2=1391984&view=diff
==============================================================================
--- buildr/trunk/doc/more_stuff.textile (original)
+++ buildr/trunk/doc/more_stuff.textile Sun Sep 30 10:39:30 2012
@@ -349,6 +349,8 @@ You can place this code inside @buildr.r
h2(#eclipse). Eclipse
+h3. Use Apache Buildr to create Eclipse projects
+
If you're using Eclipse, you can generate @.classpath@ and @.project@ from
your Buildfile and use them to create a project in your workspace:
{% highlight sh %}
@@ -379,6 +381,16 @@ end
One more thing; these settings are inherited hierarchically so you may set
them on a parent project if you want to share them across different projects.
+h3. Use Apache Buildr to create a buildfile from an Eclipse workspace
+
+If you're using Eclipse, you can generate a @buildfile@ from a directory which
contains one (or more) Eclipse projects somewhere in its sub-directories.
+
+{% highlight sh %}
+$ buildr --generate /path/to/my_project
+{% endhighlight %}
+
+This creates a basic buildfile with a main project called 'my_project'. The
buildfile contains a skeleton for compiling the Eclipse projects. If you want
to automate dependency tracking via OSGi have a look at the
"buildr4osgi":http://oss.intalio.com/buildr4osgi/ project. Support for building
Eclipse RCP applications, running PDE tests and P2-sites is currently lacking
in Buildr.
+
h2(#idea). IntelliJ IDEA
If you use IntelliJ IDEA, you can generate project files by issuing: