Wiki source code of Building WOLips
Version 99.1 by Mike Schrag on 2005/09/23 16:15
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == Downloading the Nightly Build == | ||
| 2 | |||
| 3 | If you don't want to build WOLips yourself, but you'd like to use the latest and greatest version, you can install the nightly build from [[http:~~/~~/www.mdimension.com/~~~~wolips/update/>>http://www.mdimension.com/~~wolips/update/]] by: | ||
| 4 | |||
| 5 | 1. Help=>Software Updates=>Find and Install ... | ||
| 6 | 1. Search for new features to install, select Next > | ||
| 7 | 1. Select New Remote Site ... | ||
| 8 | 1. Name = mDimension WOLips Nightly Build, URL = http:~/~/www.mdimension.com/~~wolips/update/ , select OK | ||
| 9 | 1. Select the newly added site, select Finish > | ||
| 10 | 1. Follow the rest of the instructions, selecting all of the "Yes" responses | ||
| 11 | |||
| 12 | == Checking out and Building from the Commandline == | ||
| 13 | |||
| 14 | 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject login-- | ||
| 15 | 11. username = anonymous | ||
| 16 | 11. no password | ||
| 17 | 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject co woproject-- | ||
| 18 | 1. cd woproject/projects | ||
| 19 | 1. ant | ||
| 20 | 1. The first build will fail out telling you that it couldn't find wobuild.properties ~-~- That's OK | ||
| 21 | 1. Edit ,,/Library/wobuild.properties,, | ||
| 22 | 1. Add a line eclipse.home=/path/to/your/eclipse | ||
| 23 | 1. ant again and it should succeed this time | ||
| 24 | 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.// | ||
| 25 | 1. The build went into temp/dist | ||
| 26 | 1. Profit | ||
| 27 | 1. [[Installing WOLips]] | ||
| 28 | |||
| 29 | == Checking out and Building inside of Eclipse for Deployment == | ||
| 30 | |||
| 31 | 1. Add the wolips CVS repository | ||
| 32 | 11. host = cvs.sourceforge.net | ||
| 33 | 11. root = /cvsroot/woproject | ||
| 34 | 11. protocol = pserver | ||
| 35 | 11. login = anonymous | ||
| 36 | 11. no password | ||
| 37 | 1. In CVS perspective, browse WOLips repository on HEAD, checkout woproject/projects as "projects" | ||
| 38 | 1. Right-click (or equiv) on the build.xml inside of the "projects" project and Run As=>Ant Build ... | ||
| 39 | 1. Switch to the Classpath tab and "Add Jar" | ||
| 40 | 1. Browse to projects/lib and select jdom-b8.jar | ||
| 41 | 1. Make sure the target is the default ("dist") | ||
| 42 | 1. Run | ||
| 43 | 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. | ||
| 44 | 1. [[Installing WOLips]] | ||
| 45 | |||
| 46 | == Checking out and Building inside of Eclipse for Development (PDE) == | ||
| 47 | |||
| 48 | 1. install jmechanic plugin from [[The JMechanic Site>>http://sourceforge.net/project/showfiles.php?group_id=68316&release_id=136699]] | ||
| 49 | 11. just untar this into your plugins folder | ||
| 50 | 1. Add the wolips CVS repository | ||
| 51 | 11. host = cvs.sourceforge.net | ||
| 52 | 11. root = /cvsroot/woproject | ||
| 53 | 11. protocol = pserver | ||
| 54 | 11. login = anonymous | ||
| 55 | 11. no password | ||
| 56 | 1. From the Java perspective, Import=>Team Project Set and select wolips.psf (see below) | ||
| 57 | 1. This will cause a really long checkout and you'll have a TON of build errors ... Don't fret. | ||
| 58 | 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 | ||
| 59 | 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) | ||
| 60 | 1. make ##projects/temp##, ##projects/temp/classes##, and ##projects/temp/doc## folders | ||
| 61 | 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 | ||
| 62 | 1. copy ##projects/temp/build/woproject//$build.version/lib/woproject.jar//##// to ##org.objectstyle.wolips.woproject/lib## and refresh the org.objectstyle.wolips.woproject// | ||
| 63 | |||
| 64 | You should end up with no source or build path errors. |