Wiki source code of Building WOLips

Version 87.1 by Mike Schrag on 2005/09/23 16:17

Hide last authors
Pascal Robert 51.1 1 Prior to building WOLips, you will want to get your dependencies installed properly. Check out the [[Installing WOLips]] page for information on the dependencies for WOLips.
David Avendasora 39.1 2
3 == Checking out and Building from the Commandline ==
4
Mike Schrag 86.1 5 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject login--
6 11. username = anonymous
7 11. no password
8 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject co woproject--
9 1. cd woproject/projects
Mike Schrag 80.1 10 1. ant
11 1. The first build will fail out telling you that it couldn't find wobuild.properties ~-~- That's OK
12 1. Edit ,,/Library/wobuild.properties,,
13 1. Add a line eclipse.home=/path/to/your/eclipse
Pascal Robert 52.1 14 1. ant again and it should succeed this time
Mike Schrag 80.1 15 11. If you get the error 'build.xml:73: taskdef A class needed by class org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException', you can do one of two things. You can build with --Dno.docs=true to skip the javadoc step, or (untested) you can drop jdom--b8.jar from woproject/projects/lib into your ANT//HOME/lib folder.//
16 1. The build went into temp/dist
David Avendasora 39.1 17 1. Profit
pyu 60.1 18 1. [[Installing WOLips]]
David Avendasora 39.1 19
20 == Checking out and Building inside of Eclipse for Deployment ==
21
Mike Schrag 86.1 22 1. Add the wolips CVS repository
23 11. host = cvs.sourceforge.net
24 11. root = /cvsroot/woproject
25 11. protocol = pserver
26 11. login = anonymous
27 11. no password
28 1. In CVS perspective, browse WOLips repository on HEAD, checkout woproject/projects as "projects"
29 1. Right-click (or equiv) on the build.xml inside of the "projects" project and Run As=>Ant Build ...
30 1. Switch to the Classpath tab and "Add Jar"
31 1. Browse to projects/lib and select jdom-b8.jar
32 1. Make sure the target is the default ("dist")
David Avendasora 39.1 33 1. Run
Mike Schrag 86.1 34 1. Once it is complete, you will have to right-click=>refresh the "projects" project and you will have a temp/dist folders with the plugin site in it.
pyu 60.1 35 1. [[Installing WOLips]]
David Avendasora 39.1 36
37 == Checking out and Building inside of Eclipse for Development (PDE) ==
38
Mike Schrag 86.1 39 1. install jmechanic plugin from [[The JMechanic Site>>http://sourceforge.net/project/showfiles.php?group_id=68316&release_id=136699]]
Mike Schrag 84.1 40 11. just untar this into your plugins folder
Mike Schrag 86.1 41 1. Add the wolips CVS repository
42 11. host = cvs.sourceforge.net
43 11. root = /cvsroot/woproject
44 11. protocol = pserver
45 11. login = anonymous
46 11. no password
47 1. From the Java perspective, Import=>Team Project Set and select wolips.psf (see below)
48 1. This will cause a really long checkout and you'll have a TON of build errors ... Don't fret.
49 1. Copy ##projects/lib/cayenne-1.1RC3-dev.jar## to ##org.objectstyle.wolips.cayenne/lib/cayenne.jar## and refresh the org.objectstyle.wolips.cayenne project
50 1. Add a classpath variable ANT//HOME that points to ##eclipse/plugins/org.apache.ant##//##1.6.5## (Preferences=>Java=>Build Path=>Classpath Variables, New... name ANT//HOME, Folder... =>youreclipsehome/plugins/org.apache.ant//1.6.5)
51 1. make ##projects/temp##, ##projects/temp/classes##, and ##projects/temp/doc## folders
52 1. run ##projects/build.xml## as "Ant Build ...", select the "woenvironment" and "woproject" targets and select Order... and move woenvironment above woproject in the order, Build
53 1. copy ##projects/temp/build/woproject//$build.version/lib/woproject.jar//##// to ##org.objectstyle.wolips.woproject/lib## and refresh the org.objectstyle.wolips.woproject//
54
55 You should end up with no source or build path errors.