cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: YourCocoonBasedProjectAnt16
Date Thu, 24 Feb 2005 09:48:09 GMT
   Date: 2005-02-24T01:48:09
   Editor: StenAkselHeien
   Wiki: Cocoon Wiki
   Page: YourCocoonBasedProjectAnt16
   URL: http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -9,19 +9,27 @@
  1. edit build-cocoon-targets.xml and replace "YourCocoonBasedProject" with your project
name
  1. 'seed' the project
     1. {{{ant -f build-cocoon-targets.xml -Dcocoon.distro.home=/path/to/your/cocoon/distribution}}}
-    2. Note: the cocoon.distro.home is now set in user.properties
-    3. Note for windows users: set the slashes as forward slashes
- 1. customize the src/cocoon/local.build.properties and remove the path variables in this
file (ant cannot substitute variables in property files, so ${...} variables would cause build
errors). Remove sections build, build webapp, src, standalone demo, dir layout, tools, deprecated,
ide, lib, dist, site, legal, gump, so that there are no more ${...} and variables in this
file.
- 1. exclude all blocks you don't need in the top part of local.build.properties -> exclude
the samples and documentation too if you don't need them (time consuming build process).
- 1. ant cocoon:get -> This will only be done when changing the distribution or the settings
in local.build.properties
- 1. ant webapp -> builds the Java classes and copies the entire project to the tools tree,
Note: classes are built with debug flag on.
- 1. ant cocoon:run -> restart when step 8 has done any of the following: changing the
libs, java compile
+    * Note: the cocoon.distro.home is now set in user.properties
+    * Note for windows users: set the slashes as forward slashes
+ 1. customize the src/cocoon/local.build.properties
+    1. important: remove the path variables in this file (ant cannot substitute variables
in property files, so ${...} variables would cause build errors). Remove sections build, build
webapp, src, standalone demo, dir layout, tools, deprecated, ide, lib, dist, site, legal,
gump, so that there are no more ${...} and variables in this file.
+    1. set include to false for the blocks you don't need in the top part of local.build.properties
(remove # in front of line)
+    1. exclude the samples and documentation too if you don't need them (time consuming build
process)(remove # in front of line).
+ 1. ant cocoon:get
+    * -> repeat this step later when changing the distribution or the settings in local.build.properties
+ 1. ant webapp
+    * -> builds the Java classes and copies the entire project to the tools tree
+    * Note: classes are built with debug flag on.
+ 1. ant cocoon:run 
+    * starts Jetty
+    * (you need to restart if you have done any of the following: changing the libs, java
compile)
  1. http://localhost:8888/
- 1. cvs check-in to check your (now still empty project) in in the CVS
+ 1. cvs check-in to check your (now still empty project) in the CVS
  1. add your project to Eclipse
- 1.# set src to src/java
- 1.# set output folder to build/classes
- 1. use [:XPatchTaskUsage] to modify the Cocoon configuration files. -> Note: you can
use cocoon:unpatch to revert the configuration files back to the original versions.
+    1. set src to src/java
+    1. set output folder to build/classes
+ 1. use [:XPatchTaskUsage] to modify the Cocoon configuration files. 
+    * -> Note: you can use cocoon:unpatch to revert the configuration files back to the
original versions.
 
 Once this is setup use the src/java tree for your own customized Java components and src/cocoon/webapp/your!ProjectName
for your Cocoon related files (sitemap, XSL and XML files etc.). Ant webapp will compile your
classes and copy the files in the src tree to the appropriate places in the tools tree. Jetty
(ant cocoon:run) will use the files in the tools tree.
 

Mime
View raw message