Changes for page Building WOLips
Last modified by Johann Werner on 2015/02/13 01:40
From version 131.1
edited by Bastian Triller
on 2023/11/13 11:54
on 2023/11/13 11:54
Change comment:
Renamed back-links.
To version 128.1
edited by Pascal Robert
on 2012/02/11 08:50
on 2012/02/11 08:50
Change comment:
There is no comment for this version
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,0 @@ 1 -Home - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. btriller1 +XWiki.probert - Tags
-
... ... @@ -1,1 +1,0 @@ 1 -wikitodo|favourite - Content
-
... ... @@ -12,7 +12,7 @@ 12 12 13 13 ==== Install eGit or another Git client ==== 14 14 15 -See [[Getting Started With Git>>doc:WEB. Home.Getting Started.GettingStartedwith Git.WebHome]] for information on how to obtain a Git client.15 +See [[Getting Started With Git>>doc:WEB.Getting Started with Git]] for information on how to obtain a Git client. 16 16 17 17 ==== Install the m2eclipse plugin (Eclipse 3.5 instructions) ==== 18 18 ... ... @@ -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,30 +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"}}'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 50 - 51 -{{code language="none"}}-Dno.docs=true{{/code}} to skip the javadoc step, or (untested) you can drop 52 - 53 -{{code language="none"}}jdom-b8.jar{{/code}} from 54 - 55 -{{code language="none"}}woproject/projects/lib{{/code}} into your 56 - 57 -{{code language="none"}}ANT_HOME/lib{{/code}} folder. 58 -))) 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. 59 59 1. The build went into {{code language="none"}}temp/dist{{/code}} 60 60 1. Profit 61 61 62 -(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.) 63 - 64 64 == Checking out and Building inside of Eclipse for Deployment == 65 65 66 66 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 ... ... @@ -97,41 +97,32 @@ 97 97 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 98 98 The currently required plugins for a deployment build are 99 99 ~* JProfiler (Update Site: [[http:~~/~~/wocommunity.org/documents/tools/jprofiler6/>>url:http://wocommunity.org/documents/tools/jprofiler6/||shape="rect"]]) 100 - ~* 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"]]) 101 101 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: 102 102 11. Project Name: WOLips 103 103 11. Git Repositories: git:~/~/github.com/wolips/wolips.git 104 104 11. Use update: Checked 105 105 11. Poll SCM: 59 * * * * //(59 can be replaced with any number between 0 and 59)// 106 -1. ((( 107 -Add the following build tasks to the job 108 - 109 -{{code title="Execute Shell"}} 86 +1. Add the following build tasks to the job {{code title="Execute Shell"}} 110 110 echo build.version=3.7.${BUILD_NUMBER} > build.properties 111 111 echo eclipse.home=/usr/local/eclipse >> build.properties 112 112 echo user.home=${WORKSPACE} >> build.properties 113 - 114 -{{/code}} 115 - 116 -{{code title="Invoke Ant"}} 90 +{{/code}} {{code title="Invoke Ant"}} 117 117 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 118 118 119 -{{/code}} 120 - 121 -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 122 - 123 123 {{code title="Execute Shell"}} 95 + 124 124 rm -fr /usr/local/www/apache22/data/wolips/* 125 125 /bin/cp -prv ${WORKSPACE}/wolips/temp/dist/ /usr/local/www/apache22/data/wolips/ 126 126 127 127 {{/code}} 128 -))) 129 129 130 130 == Preparation for building WOLips on Windows operating systems (NT 5.0 and higher) == 131 131 132 132 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. 133 133 134 -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. 135 135 1. Set the VMs encoding to MacRoman 136 136 1*. Right click on {{code language="none"}}build.xml{{/code}} -> Properties -> JRE -> VM arguments 137 137 1**. -Dfile.encoding=MacRoman