AppFuseQuickStart |
|
Your trail: |
Difference between
version 129
and
version 128:
At line 8 changed 1 line. |
# From the appfuse directory, run __ant new -Dapp.name=YOURAPPNAME -Ddb.name=YOURDBNAME__. This will create a directory named YOURAPPNAME in the same directory as appfuse. <div class="note" style="margin: 10px; background-color: #fcc"> __WARNING:__ Some app.name values will not work - don't use "test", anything with "appfuse" in it or anything that starts with numbers. Also, two dashes (-) in a name will mess things up.</div> |
# From the appfuse directory, run __ant new__. You will be prompted for an application name, database name and package name. After entering these, a directory containing your new application will be created in the same directory as appfuse. <div class="note" style="margin: 10px; background-color: #fcc"> __WARNING:__ Some application values will not work - don't use "test", anything with "appfuse" in it or anything that starts with numbers. Also, two dashes (-) in a name will mess things up.</div> |
At line 22 changed 1 line. |
* If you don't want to install iBATIS, Spring MVC or WebWork - you should delete their installers in the {{extras}} folder before checking your project into source control. |
* If you don't want to install iBATIS, Spring MVC, WebWork, JSF or Tapestry - you should delete their installers in the {{extras}} folder before checking your project into source control. |
At line 25 removed 16 lines. |
|
---- |
|
Usually, after you get all this to work - it's likely you'll want to change all your package names to "com.company" rather than "org.appfuse". Thanks to Ben Gill, this is now <strong>much</strong> easier than it used to be. ''Thanks Ben!'' |
|
All you need is the [rename-packages tool|https://appfuse.dev.java.net/files/documents/1397/7833/rename-packages-0.9.zip]. View the [README|https://appfuse.dev.java.net/servlets/ProjectDocumentView?documentID=7836] file instructions for installing and using. The source for this project can also be [downloaded|https://appfuse.dev.java.net/servlets/ProjectDocumentList?folderID=2072]. This tool should work regardless of whether you've installed any options or not. |
|
%%note __NOTE:__ Don't forget to back up your project directory before using it! Just in case... ;-)%% |
|
If you rename the org.appfuse.webapp.form package to, say test.web.form, you also have to edit the ConverterUtil in the src/service package. Method getOpposingObject is your friend, take a look at |
|
[{Java2HtmlPlugin |
|
name = StringUtils.replace(name, "model", "webapp.form"); |
name = StringUtils.replace(name, "webapp.form", "model"); |
}] |
Back to AppFuseQuickStart,
or to the Page History.
|