JavaScud | Forum | JIRA | Blog |
  Dashboard > SpringSide > ... > SS20Quickstart > SS20Newproject
  SpringSide Log In View a printable version of the current page.  
  SS20Newproject
Added by calvin, last edited by calvin on Oct 01, 2006  (view change)
Labels: 
(None)

使用SpringSide生成项目

1.使用SpringSide的Eclipse插件生成项目

    要求 Eclipse 3.1 或以上的版本。

    1.将tools/springside-tools/eclipse-plugins/org.springside.eclipse_1.0.0.jar 复制到Eclipse的plugins目录

    2.重起Eclipse, 在Windows->Prefrence->Springside2 菜单下,设置SpringSide 2的目录

    3.使用新出现的SpringSide菜单,生成项目。

      新项目参数包括:

  • 项目名
  • 项目路径
  • 要安装的构件--以逗号分隔,构件名为components下的目录名eg.(mvc/struts,schedule/quartz, web/ec,见构件列表

 系统会复制components/main/中的的template文件和lib文件作为项目框架,进行某些必要的字符串替换,然后安装前面设定的构件。

2.使用Ant 脚本快速生成项目

     双击SpringSide 目录中的build.bat 选择new--- 

     系统会提示输入如下参数:

  • 项目名
  • 项目路径
  • 要安装的构件--以逗号分隔,构件名为components下的目录名eg.(schedule/quartz, web/ec,见构件列表

    输入参数时直接按回车会使用参数的默认值,输入后会将新的输入作为默认值。默认值可以在tools/ant/build_base.properties中修改。

    系统会复制components/main/中的的template文件和lib文件作为项目框架,进行某些必要的字符串替换。最后安装前面设定的构件。

    注意:有些文件如Ant的build_base文件,属于SpringSide核心不断改进,且项目部署时并不需要的,就不会复制到项目目录里,只在需要时以springside.home变量指回SpringSide下载目录。

2.安装更多的构件

    如果新项目需要更多Components,双击新项目的build.bat, 选择install-com, 并输入构件名。构件名见构件列表

    构件的安装会首先从component目录中复制jar和template模版文件,合并web.xml 等公共配置文件,如果component目录下有build.xml文件,就会在复制后执行该文件中的install任务。

    如果构件安装后所依赖的jar被升级, 运行upgrade-com任务更新jar。

3. 开始开发

    阅读CRUD教程

HibernateTools (SpringSide)

SpringSide2的Eclipse plugin 是适用于Eclipse 3.2的。这个应该注明一下吧

Posted by Anonymous at Sep 30, 2006 16:41 | Reply To This

好的,注明一下。

    貌似3.1也能用吧?

建议用Eclipse plugin生成新项目可以直接生成MyEclipse项目啊

Posted by Anonymous at Oct 10, 2006 00:43 | Reply To This

springside-2.0-M1-alpha2-allinone 中的build_newproject.xml中,下面这段错了吧:
<fail message="你必须设定正确的SpringSide2安装路径">
<condition>
<or>
<equals arg1="$

Unknown macro: {springside.default.home}

" arg2=""/>
<equals arg1="$

" arg2="."/>
<not>
<available file="$
Unknown macro: {springside.default.home}

"/>
</not>
</or>
</condition>
</fail>

$

应该是 $
Unknown macro: {springside.home}

Posted by Anonymous at Oct 10, 2006 00:50 | Reply To This
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators