AppFuseQuickStart_jp |
|
Your trail: |
This is version 9.
It is not the current version, and thus it cannot be edited.
[Back to current version]
[Restore this version]
- This page is under translation. Before the final confirmation, the page will be in the bilingual status.
- このページは翻訳中です。最終の確認終わるまで、バイリンガルの状態のままになります。
AppFuse's main purpose is to help you quickly accelerate the start of your webapp. Here are the basic steps to creating a new project with it.
AppFuse主要な目的はウェブアプリの作成を加速します。新規プロジェクト作成の基本手順は下記のとおりです。
- J2SE 1.4.2+をインストールし、JAVA_HOMEをインストールフォルダに指定する。
- ソースバージョンをダウンロードするか、 Subversion (svn co https://appfuse.dev.java.net/svn/appfuse/branches/BRANCH_1-9-x appfuse)から1.9.x ブランチをチェックアウトする。
- Ant 1.6.5+をインストールし、ANT_HOME環境変数を設定してから、Tomcat 4.1.x+ (recommend 5.0.28) をインストールし、CATALINA_HOME環境変数をTomcatインストールフォルダに設定する。パッケージのリンクと詳しいインストール手順はdevelopment environment setup に参考してください。
- MySQL 3.23.x+ (recommend 5.0+)をインストールする。
NOTE: MySQL 4.1.7を使う場合, UTF-8 キャラクタセットとInnoDB テーブルタイプを設定して下さい。 詳しくは.
- ローカルSMTPサーバを設定 するかmail.properties (web/WEB-INF/classes フォルダの中に)とbuild.properties (ルートフォルダ -- log4j メッセージのため)を存在する場所に指定してください。 - ディフォルトはlocalhostとなってる。
- lib/junit3.8.1/junit.jarを$ANT_HOME/libにコピーする。
NOTE: You may see an ant-junit.jar file already in $ANT_HOME/lib. This jar is not the JUnit library, rather it is for the Ant junit task which will use the junit.jar that you place here.
- If you're planning on using iBATIS (instead of Hibernate) or a web framework other than Struts, install that now using the instructions below.
- Run ant new from the appfuse directory. 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.
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.
- Navigate to your new project's directory and run ant setup (or ant setup-db setup-tomcat deploy) to create the database, configure Tomcat and deploy your application. The database setup will only work if your root user has no password. You can change this in build.properties if necessary. Need assistance with mysql setup?
- If you want to test and make sure everything works, run ant test-all - make sure Tomcat is stopped when you do this. Next, run ant test-reports - there will be a message after it runs telling you how you can view the generated reports.
After you've confirmed your installation using the above steps - take a look at the Tutorials to see how to develop with AppFuse.
Optional Installations
NOTE: If you're developing with AppFuse on Unix, run "ant fixcrlf" before running the installers. You can also download a pre-built version that already has the web framework option you're looking for.
- If you'd like to use iBATIS as a persistence framework option, view the README.txt in extras/ibatis.
- If you'd like to use Spring as the web framework, view the README.txt in extras/spring.
- If you'd like to use WebWork as the web framework, view the README.txt in extras/webwork.
- If you'd like to use JSF as the web framework, view the README.txt in extras/jsf.
- If you'd like to use Tapestry as the web framework, view the README.txt in extras/tapestry.
- If you'd like you can write a script to automate the creation and testing of your project from AppFuse. There are a couple in CVS that I use for testing: spring+ibatis and webwork. Note that using "appfuse" in a real-world project name is a bad idea as it'll find/replace things it shouldn't.
- 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.
NOTE: These installers will modify the Eclipse classpath, but not the IDEA one. You'll need to modify that manually.
|