Changes for page Building and Installing a Framework with Ant
Last modified by Pascal Robert on 2013/12/18 02:55
From version 30.1
edited by David Avendasora
on 2011/04/25 17:37
on 2011/04/25 17:37
Change comment:
There is no comment for this version
To version 31.1
edited by David Avendasora
on 2011/04/25 18:08
on 2011/04/25 18:08
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,9 @@ 1 +{{tip title="Pro Tip"}} 2 +If you use Hudson/Jenkins to build your WebObjects Frameworks and Applications, then you do not need to build or install either the Project Wonder frameworks or even your own Frameworks on your development machine, just having yours and the individual Wonder source code projects (ERJars, ERExtensions, AJAX, etc) open in your eclipse workspace is sufficient. 3 +{{/tip}} 4 + 5 +{{toc maxLevel="3"}}{{/toc}} 6 + 1 1 = Building = 2 2 3 3 {{note title="Requires WebObjects"}} ... ... @@ -8,8 +8,8 @@ 8 8 9 9 Otherwise you will get compiler errors like this: 10 10 {noformat} 11 -[wocompile] / Wonder/WonderGit/WonderSource/Frameworks/Core/JavaWOExtensions/Sources/com/webobjects/woextensions/JSAlertPanel.java:10:12 - package com.webobjects.appserver does not exist 17 +[wocompile] /MyProjects/MyFramework/Sources/com/mycompany/myapp/myclass:10: 18 + package com.webobjects.appserver does not exist 13 13 [wocompile] import com.webobjects.appserver.WOContext; 14 14 {noformat} 15 15 ... ... @@ -29,8 +29,9 @@ 29 29 30 30 By default, the built framework will be put in a ##dist## directory in your project's root. 31 31 32 -* h5. **Project Wonder Frameworks 33 -If you are building Project Wonder's frameworks you will use these commands instead:** 38 +* h5. Project Wonder Frameworks 39 +This assumes that you have already downloaded the Wonder source code. Make a note of the location of the Wonder directory. 40 +If you are building Project Wonder's frameworks you will use these commands instead: 34 34 35 35 {{code value="none"}} 36 36 ... ... @@ -39,21 +39,27 @@ 39 39 40 40 {{/code}} 41 41 42 -By default, all the Wonder frameworks will be built to (##/Roots##) directory in your home directory.49 +By default, all the Wonder frameworks will be built to (##/Roots##) (in your home directory). 43 43 44 44 === Eclipse/WOLips === 45 45 53 +* h5. Standard WebObjects Framework 54 +Right-Click on your project in Eclipse and select **WOLips Ant Tools > Install** 55 +[[image:WOLipsAntInstall.png||border="1"]] 56 +This will build and install the framework in the location defined in the WOLips preferences, overwriting any previously installed version of the framework. 57 + 58 +* h5. Project Wonder Frameworks 59 +**You can not build projects from Wonder this way.** You must either use the command line or Hudson/Jenkins methods 60 + 46 46 === Hudson/Jenkins === 47 47 48 48 In general, it is recommended that you use Hudson/Jenkins to build your WebObjects frameworks and applications, but it is not required. You can build either from the Terminal as outlined below, or from within Eclipse directly. 49 49 50 -{{tip title="Pro Tip"}} 51 -If you use Hudson/Jenkins to build your WebObjects applications, then you do not need to actually build or install the Project Wonder frameworks on your development machine, just having the individual Wonder source code projects open in your eclipse workspace is sufficient. Your Hudson/Jenkins server will need the built frameworks installed. See the [Hudson/Jenkins Page|WO:Installing and Using the Hudson build server] for more information. 52 -{{/tip}} 65 += Customizing the Build = 53 53 54 -= ==Installing ===67 += Installing = 55 55 56 -Assuming you already cloned and i nstalledWonder from source using the method outlined above, you can use the following procedure pull the latest changes into your local repository.69 +Assuming you already cloned and built Wonder from source using the method outlined above, you can use the following procedure pull the latest changes into your local repository. 57 57 58 58 ===== Install the frameworks ===== 59 59