Wiki source code of Building WOLips
Version 50.1 by Mike Schrag on 2005/09/08 00:08
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == WOLips Dependencies == | ||
2 | |||
3 | Recent version of WOLips in CVS have more extensive dependencies than prior builds (mostly due to the HTML editor that is part of the web tools project). | ||
4 | |||
5 | Additionally you will need to download and install Eclipse 3.1.1, currently a build of Eclipse that does not currently have an official release. | ||
6 | |||
7 | You can get a 3.1.1 build from [[Eclipse.org>>http://download.eclipse.org/eclipse/downloads/index.php]]. | ||
8 | |||
9 | After installing Eclipse 3.1.1 and before building or installing WOLips, you will need to download and install the following plugins and features: | ||
10 | |||
11 | 1. [[EMF>>http://eclipse.org/downloads/download.php?file=/tools/emf/downloads/drops/2.1.0/R200507070200/emf-sdo-xsd-SDK-2.1.0.zip]] | ||
12 | 1. [[GEF>>http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/drops/R-3.1-200507071758/GEF-SDK-3.1.zip]] | ||
13 | 1. [[JEM>>http://www.eclipse.org/downloads/download.php?file=/tools/ve/downloads/drops/R-1.1-200507221721/JEM-SDK-1.1.zip]] | ||
14 | 1. [[WTP>>http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R-0.7-200507290654/wtp-sdk-0.7.zip]] | ||
15 | |||
16 | == Checking out and Building from the Commandline == | ||
17 | |||
18 | 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject login-- | ||
19 | 11. username = anonymous | ||
20 | 11. no password | ||
21 | 1. cvs --d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/woproject co woproject-- | ||
22 | 1. cd woproject/projects | ||
23 | 1. ant | ||
24 | 1. The first build will fail out telling you that it couldn't find wobuild.properties ~-~- That's OK | ||
25 | 1. Edit ,,/Library/wobuild.properties,, | ||
26 | 1. Add a line eclipse.home=/path/to/your/eclipse | ||
27 | 1. ant again and it should succeed this time | ||
28 | 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.// | ||
29 | 1. The build went into temp/dist | ||
30 | 1. Profit | ||
31 | 1. [[Installing WOLips]] | ||
32 | |||
33 | == Checking out and Building inside of Eclipse for Deployment == | ||
34 | |||
35 | 1. install jmechanic plugin from [[The JMechanic Site>>http://sourceforge.net/project/showfiles.php?group_id=68316&release_id=136699]] | ||
36 | 11. just untar this into your plugins folder | ||
37 | 1. Add the wolips CVS repository | ||
38 | 11. host = cvs.sourceforge.net | ||
39 | 11. root = /cvsroot/woproject | ||
40 | 11. protocol = pserver | ||
41 | 11. login = anonymous | ||
42 | 11. no password | ||
43 | 1. In CVS perspective, browse WOLips repository on HEAD, checkout woproject/projects as "projects" | ||
44 | 1. Right-click (or equiv) on the build.xml inside of the "projects" project and Run As=>Ant Build ... | ||
45 | 1. Switch to the Classpath tab and "Add Jar" | ||
46 | 1. Browse to projects/lib and select jdom-b8.jar | ||
47 | 1. Make sure the target is the default ("dist") | ||
48 | 1. Run | ||
49 | 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. | ||
50 | 1. [[Installing WOLips]] | ||
51 | |||
52 | == Checking out and Building inside of Eclipse for Development (PDE) == | ||
53 | |||
54 | 1. install jmechanic plugin from [[The JMechanic Site>>http://sourceforge.net/project/showfiles.php?group_id=68316&release_id=136699]] | ||
55 | 11. just untar this into your plugins folder | ||
56 | 1. Add the wolips CVS repository | ||
57 | 11. host = cvs.sourceforge.net | ||
58 | 11. root = /cvsroot/woproject | ||
59 | 11. protocol = pserver | ||
60 | 11. login = anonymous | ||
61 | 11. no password | ||
62 | 1. From the Java perspective, Import=>Team Project Set and select wolips.psf (see below) | ||
63 | 1. This will cause a really long checkout and you'll have a TON of build errors ... Don't fret. | ||
64 | 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 | ||
65 | 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) | ||
66 | 1. make ##projects/temp##, ##projects/temp/classes##, and ##projects/temp/doc## folders | ||
67 | 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 | ||
68 | 1. copy ##projects/temp/build/woproject//$build.version/lib/woproject.jar//##// to ##org.objectstyle.wolips.woproject/lib## and refresh the org.objectstyle.wolips.woproject// | ||
69 | |||
70 | You should end up with no source or build path errors. |