Changes for page Create a WebObjects Framework
Last modified by Pascal Robert on 2007/12/15 18:15
From version 28.1
edited by Kieran Kelleher
on 2007/01/16 14:02
on 2007/01/16 14:02
Change comment:
There is no comment for this version
To version 29.1
edited by Kieran Kelleher
on 2007/01/16 14:07
on 2007/01/16 14:07
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -24,19 +24,22 @@ 24 24 25 25 WOLips Bug: If your new framework project DOES NOT look like the one in the picture then you have come across a known elusive WOLips bug that the team is trying to solve. In the case that your project does not look like this, the fix is to select the project and then select the Project->Close in the main menu bar. Afterward select Project->Open and then expand your project and it should be OK. 26 26 27 -Another Minor Bug: In the latest build I was using, the default framework project does not contain a folder named 'Components' which it needs to have a successful build later. So just create a new folder in the project named Components 27 +Another Minor Bug: In the latest build I was using, the default framework project does not contain a folder named 'Components' which it needs to have a successful build later. So just create a new folder in the project named Components. Right-click the project -> New -> Folder 28 +[[image:newComponentsFolder.jpg]] 28 28 29 29 ===== Next add any 3rd party jar files to your project that you want bundled with this framework. This is probably the "best practice" way to make 3rd party jars available to your WebObjects apps rather than stuffing them into /Library/WebObjects/Extensions. ===== 30 30 31 31 To do this simply locate the jar in the Finder and drag and drop it on the Libraries folder in your project as shown here: 32 -dragJarToLibraries.jpg 33 +[[image:dragJarToLibraries.jpg]] 33 33 34 34 ===== Next, edit the build path so that it sees the classes in this jar. Right-click on the project > Build Path > Configure Build Path. ===== 35 35 37 +[[image:configureBuildPath.jpg]] 38 + 36 36 Click on the Libraries tab. 37 37 Click the Add Jars button and navigate to the jar inside your project. 38 38 Select the jar and click OK. 39 -buildPath-jarSelection.jpg 42 +[[image:buildPath-jarSelection.jpg]] 40 40 41 41 Adding dependencies on other frameworks can be done at this stage if your wish. The procedure is the same as for adding framework dependencies to a WOApplication which also has a tutorial. 42 42 ... ... @@ -43,11 +43,11 @@ 43 43 ===== Now I want to create a package for my reusable classes. ===== 44 44 45 45 Right-click on the Sources folder and select New > Package as shown here: 46 -Sources-new-package.jpg 49 +[[image:Sources-new-package.jpg]] 47 47 48 48 Enter a name for the package and Eclipse automatically creates the appropriate folder structure in the file system: 49 -NewJavaPackage.jpg 52 +[[image:NewJavaPackage.jpg]] 50 50 51 51 ===== Add classes to your package. You can drag java files from the file system or XCode to the package: ===== 52 52 53 -dragClassToPackage.jpg 56 +[[image:dragClassToPackage.jpg]]