cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Created: Add your project to Eclipse
Date Mon, 13 Jun 2005 14:18:01 GMT
A new document has been created.

Document ID: 31
Branch: main
Language: default
Name: Add your project to Eclipse
Document Type: Simple Document
Created: 6/13/05 2:17:18 PM
Creator (owner): Helma
State: draft

Parts
=====

Content
-------
Mime type: text/xml
Size: 1698 bytes
Content:
<html>
<body>

<p>Now that you have setup your project, add it to the project structure in
Eclipse. We will not give a step by step instruction here, only enough
information to know what you should enter.</p>

<h1>Setting up the project in Eclipse</h1>

<p>To do this, create a new Java project and name it <em>HealthyCocoon</em>.
It
is created from existing source, namely the directory you have specified in step
2 in <a href="daisy:14">Set up your Cocoon project using Ant</a>.</p>

<p class="note">It may sound funny to create a Java project, while we will first
focus on XML only, but if you decide later that you need custom Java code, your
Eclipse project is already set for it.</p>

<p>When finished, you should see the same directory layout as in Figure 1 in
<a href="daisy:14">Set up your Cocoon project using Ant</a>. Check the
properties (right-click on the project name and select <em>properties</em>) to
see if the source path is set to <em>HealthyCocoon/src/java</em> and the build
path to <em>HealthyCocoon/build/classes</em>. The latter makes sure that your
Ant script and Eclipse use the same build target directories.</p>

<h1>Workflow</h1>

<p>This setup requires you to create (XML-) content under the
<em>src/cocoon/webapp</em> directory, and (if necessary) Java code under
<em>src/java</em>. When you select the <em>webapp</em> target in your
Ant script
(i.e. in <em>build.xml</em>), the java code will be compiled and all your
content is copied to the respective directory under the <em>tools</em> dir.
<br/>
When you select <em>cocoon:run</em> from your Ant script, Jetty will be launched
with your <em>tools/cocoon/webapp</em> dir as webapp directory.</p>

</body>
</html>

Collections
===========
The document belongs to the following collections: ciatutorial

Mime
View raw message