Seam - 用Seam gen建立環境
C:\Isaac\projects\lib\jboss-seam-2.0.2.SP1>seam setup
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.0_06\lib\tools.jar
Buildfile: C:\Isaac\projects\lib\jboss-seam-2.0.2.SP1\seam-gen\build.xml
init:
setup:
[echo] Welcome to seam-gen :-)
[input] Enter your Java project workspace (the directory that contains your Seam projects) [C:/Projects] [C:/Projects]
C:/Isaac/projects
[input] Enter your JBoss home directory [C:/Program Files/jboss-4.2.2.GA] [C:/Program Files/jboss-4.2.2.GA]
C:\JBoss\jboss-4.2.0.GA
[input] Enter the project name [myproject] [myproject]
TestSeam
[echo] Accepted project name as: TestSeam
[input] Do you want to use ICEFaces instead of RichFaces [n] (y, [n])
[input] skipping input as property icefaces.home.new has already been set.
[input] Select a RichFaces skin [blueSky] ([blueSky], classic, ruby, wine, deepMarine, emeraldTown, sakura, DEFAULT)
[input] Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support) [ear] ([ear], war)
war
[input] Enter the Java package name for your session beans [com.mydomain.TestSeam] [com.mydomain.TestSeam]
[input] Enter the Java package name for your entity beans [com.mydomain.TestSeam] [com.mydomain.TestSeam]
[input] Enter the Java package name for your test cases [com.mydomain.TestSeam.test] [com.mydomain.TestSeam.test]
[input] What kind of database are you using? [hsql] ([hsql], mysql, oracle, postgres, mssql, db2, sybase, enterprisedb, h2)
enterprisedb
[input] Enter the Hibernate dialect for your database [org.hibernate.dialect.PostgreSQLDialect] [org.hibernate.dialect.PostgreSQLDialect]
org.hibernate.dialect.DerbyDialect
[input] Enter the filesystem path to the JDBC driver jar [../lib/hsqldb.jar] [../lib/hsqldb.jar]
../lib/derbyclient.jar
[input] Enter JDBC driver class for your database [com.edb.Driver] [com.edb.Driver]
org.apache.derby.jdbc.ClientDriver
[input] Enter the JDBC URL for your database [jdbc:edb://localhost:5444/edb] [jdbc:edb://localhost:5444/edb]
jdbc:derby://localhost:1527/testseam
[input] Enter database username [sa] [sa]
testseam
[input] Enter database password [] []
testseam
[input] Enter the database schema name (it is OK to leave this blank) [] []
[input] Enter the database catalog name (it is OK to leave this blank) [] []
[input] Are you working with tables that already exist in the database? [n] (y, [n])
[input] Do you want to drop and recreate the database tables and data in import.sql each time you deploy? [n] (y, [n])
[propertyfile] Creating new property file: C:\Isaac\projects\lib\jboss-seam-2.0.2.SP1\seam-gen\build.properties
[echo] Installing JDBC driver jar to JBoss server
[copy] Copying 1 file to C:\JBoss\jboss-4.2.0.GA\server\default\lib
[echo] Type 'seam create-project' to create the new project
BUILD SUCCESSFUL
Total time: 2 minutes 32 seconds
Posted at 02:59下午 七月 09, 2008 by shooeugenesea in Java | 迴響[0]