Changes for page Building WOLips

Last modified by Johann Werner on 2015/02/13 01:40

From version 129.1
edited by Ray Kiddy
on 2015/02/13 01:40
Change comment: works with eclipse 4.4.1
To version 128.1
edited by Pascal Robert
on 2012/02/11 08:50
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kiddyr
1 +XWiki.probert
Content
... ... @@ -26,7 +26,6 @@
26 26  1. Select "Maven Integration for Eclipse"
27 27  1. Click "Next>"
28 28  1. Click "Finish"
29 -(//What is the m2eclipse plugin a prerequisite for? Nothing below refers to it....//)
30 30  
31 31  == Checking out and Building from the Commandline ==
32 32  
... ... @@ -37,40 +37,11 @@
37 37  1. The first build will fail out telling you that it couldn't find {{code language="none"}}wobuild.properties{{/code}} – That's OK
38 38  1. Edit {{code language="none"}}~/Library/wobuild.properties{{/code}}
39 39  1. Add a line: {{code language="none"}}eclipse.home=/path/to/your/eclipse{{/code}}
40 -1. (((
41 -Call ant with the build.version argument:
42 -
43 -{{code}}
44 -ant -Dbuild.version=x.y.z
45 -{{/code}}
46 -
47 -1. If you get the error
48 -
49 -{{code language="none"}}
50 -'build.xml:73: taskdef A class needed by class org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException'
51 -{{/code}}, you can do one of two things. You can build with
52 -
53 -{{code language="none"}}
54 --Dno.docs=true
55 -{{/code}} to skip the javadoc step, or (untested) you can drop
56 -
57 -{{code language="none"}}
58 -jdom-b8.jar
59 -{{/code}} from
60 -
61 -{{code language="none"}}
62 -woproject/projects/lib
63 -{{/code}} into your
64 -
65 -{{code language="none"}}
66 -ANT_HOME/lib
67 -{{/code}} folder.
68 -)))
39 +1. Call ant with the build.version argument:
40 +11. {{code}}ant -Dbuild.version=3.7.SomeNumber{{/code}}If you get the error {{code language="none"}}'build.xml:73: taskdef A class needed by class org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException'{{/code}}, you can do one of two things. You can build with {{code language="none"}}-Dno.docs=true{{/code}} to skip the javadoc step, or (untested) you can drop {{code language="none"}}jdom-b8.jar{{/code}} from {{code language="none"}}woproject/projects/lib{{/code}} into your {{code language="none"}}ANT_HOME/lib{{/code}} folder.
69 69  1. The build went into {{code language="none"}}temp/dist{{/code}}
70 70  1. Profit
71 71  
72 -(Successfully built on Ubuntu 14.04 LTS with eclipse 4.4.1, using "ant -Dbuild.version=4.4.1" as the build command. - 2015/03/12 - ray@ganymede.org with an OMG thanks to stefan.klein@buero-sde.de.)
73 -
74 74  == Checking out and Building inside of Eclipse for Deployment ==
75 75  
76 76  1. Add the wolips Git repository [[https:~~/~~/github.com/wolips/wolips/>>url:https://github.com/wolips/wolips/||shape="rect"]] in the Git Perspective's Repository View
... ... @@ -107,41 +107,32 @@
107 107  1. Copy the necessary plugins from your machine to the Eclipse installation on the server. In this example it has been copied to /usr/local/eclipse
108 108   The currently required plugins for a deployment build are
109 109   ~* JProfiler (Update Site: [[http:~~/~~/wocommunity.org/documents/tools/jprofiler6/>>url:http://wocommunity.org/documents/tools/jprofiler6/||shape="rect"]])
110 - ~* JRebel (Update Site : [[http:~~/~~/www.zeroturnaround.com/update-site/>>url:http://www.zeroturnaround.com/update-site/||shape="rect"]])
80 + ~* JRebel (Update Site : [[http:~~/~~/www.zeroturnaround.com/update-site/>>url:http://www.zeroturnaround.com/update-site/||shape="rect"]])
111 111  1. Create a new job in Jenkins to build WOLips. You can use the [[following sample config>>url:https://github.com/wocommunity/JenkinsJobs/tree/master/WOLips||shape="rect"]] or you can add a new job with the following configuration:
112 112  11. Project Name: WOLips
113 113  11. Git Repositories: git:~/~/github.com/wolips/wolips.git
114 114  11. Use update: Checked
115 115  11. Poll SCM: 59 * * * * //(59 can be replaced with any number between 0 and 59)//
116 -1. (((
117 -Add the following build tasks to the job
118 -
119 -{{code title="Execute Shell"}}
86 +1. Add the following build tasks to the job {{code title="Execute Shell"}}
120 120  echo build.version=3.7.${BUILD_NUMBER} > build.properties
121 121  echo eclipse.home=/usr/local/eclipse >> build.properties
122 122  echo user.home=${WORKSPACE} >> build.properties
123 -
124 -{{/code}}
125 -
126 -{{code title="Invoke Ant"}}
90 +{{/code}} {{code title="Invoke Ant"}}
127 127  Targets: dist
92 +{{/code}} If you want to deploy the build to a web server to serve as an update site add a task that is something like this
128 128  
129 -{{/code}}
130 -
131 -If you want to deploy the build to a web server to serve as an update site add a task that is something like this
132 -
133 133  {{code title="Execute Shell"}}
95 +
134 134  rm -fr /usr/local/www/apache22/data/wolips/*
135 135  /bin/cp -prv ${WORKSPACE}/wolips/temp/dist/ /usr/local/www/apache22/data/wolips/
136 136  
137 137  {{/code}}
138 -)))
139 139  
140 140  == Preparation for building WOLips on Windows operating systems (NT 5.0 and higher) ==
141 141  
142 142  For building WOLips on Windows operating systems, some minor changes have to be made. Instead of following and solving the build errors, you may follow the steps described below.
143 143  
144 -1. Install the [[BuildingWOLips-Prerequisites>>doc:||anchor="BuildingWOLips-Prerequisites"]]. Do also follow the [[BuildingWOLips-CheckingoutandBuildinginsideofEclipseforDeployment>>doc:||anchor="BuildingWOLips-CheckingoutandBuildinginsideofEclipseforDeployment"]]section, but don't run the build until the changes described below have been made.
105 +1. Install the [[BuildingWOLips-Prerequisites>>doc:||anchor="BuildingWOLips-Prerequisites"]]. Do also follow the [[BuildingWOLips-CheckingoutandBuildinginsideofEclipseforDeployment>>doc:||anchor="BuildingWOLips-CheckingoutandBuildinginsideofEclipseforDeployment"]] section, but don't run the build until the changes described below have been made.
145 145  1. Set the VMs encoding to MacRoman
146 146  1*. Right click on {{code language="none"}}build.xml{{/code}} -> Properties -> JRE -> VM arguments
147 147  1**. -Dfile.encoding=MacRoman