学习过程
1,首先了解Documentum的架构
2,了解Dfc是什么,Dmcl是什么,使用Dfc进行相应的开发。其使用习惯大概和Hibernate相似。
3,了解WDK开发过程,什么是组件,什么是Container,什么是Action,什么是Strings
为了开发wdk,必须使用Eclipse建立一个标准的web项目才能进行,所以必须要有个部署方便的策略
<?xml version="1.0" encoding="gb2312"?>
<!--
Build file for "WebTop WDK FILE LIST FUNCTION"
Creation date : 2006-05-15
Updated date : 2006-05-15
Author: ljl
-->
<project name="BmccBaseSp" default="main" basedir=".">
<property name="work.path" value="C:/workspace"/>
<property name="webtop.war.path" value="C:/Program Files/WebSphere/AppServer/installedApps/10.4.7.140/webtop_war.ear/webtop.war"/>
<property name="version" value="1.0"/>
<!-- Tell ant to use my environment variables -->
<property name="productName" value="FILE LIST for WORK FLOW"/>
<property name="build.dir" value="${basedir}/WebRoot/WEB-INF/classes" />
<property name="src.dir" value="${basedir}/src"/>
<property name="docs.dir" value="${basedir}/docs"/>
<property name="custom.dir" value="${basedir}/WebRoot/custom"/>
<property name="encoding.name" value="GB2312"/>
<!-- Win XP -->
<property name="deploy.WinXP.dir" value="${work.path}/WinXP/deploy${version}"/>
<property name="deploy.WebTop.dir" value="${webtop.war.path}"/>
<!-- class path -->
<path id="class.path">
<fileset dir="${basedir}/WebRoot/WEB-INF/lib/">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<!-- clean dir -->
<target name="remove">
<delete dir="${build.dir}" includeEmptyDirs="true"/>
<delete dir="${deploy.WinXP.dir}" includeEmptyDirs="true"/>
</target>
<!-- construct dir -->
<target name="makeDir">
<mkdir dir="${build.dir}"/>
<mkdir dir="${deploy.WinXP.dir}"/>
</target>
<!-- compile -->
<target name="compile" depends="makeDir">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
debug="on"
deprecation="off">
<include name="**/*.java"/>
<classpath refid="class.path"/>
</javac>
</target>
<!-- start target task -->
<target name="main" depends="remove, makeDir, compile"/>
<!-- ============================================================= -->
<!-- api docs -->
<!-- ============================================================= -->
<!-- remove old javadocs -->
<target name="removeDocDir">
<delete dir="${docs.dir}" includeEmptyDirs="true"/>
</target>
<!-- make docs dir -->
<target name="makeDocDir">
<mkdir dir="${docs.dir}"/>
</target>
<!-- create javadocs -->
<target name="docs" depends="removeDocDir, makeDocDir">
<javadoc packagenames="com.documentum.custom.*"
sourcepath="${basedir}"
destdir="${docs.dir}"
author="true"
version="true"
use="true"
charset="${encoding.name}"
windowtitle="${productName}: ${version}">
</javadoc>
<doctitle><![CDATA[<h1>Test</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2006 Dummy Corp. All Rights Reserved.</i>]]></bottom>
<link href="http://java.sun.com/j2se/1.4/docs/api/usr/web/work/j2se/1.4/docs/api"/>
</target>
<!-- ============================================================= -->
<!-- WinXP deploy -->
<!-- ============================================================= -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- start deployWin2KBE task -->
<target name="deployWinXP" >
<delete dir="${deploy.WinXP.dir}" includeEmptyDirs="true"/>
<mkdir dir="${deploy.WinXP.dir}"/>
<!-- difference -->
<copy todir="${deploy.WinXP.dir}/classes">
<fileset dir="${basedir}/WebRoot/WEB-INF/classes"
includes="**/**"/>
</copy>
<copy todir="${deploy.WinXP.dir}">
<fileset dir="${basedir}/WebRoot/custom"
includes="**/**"
excludes="**/.bak"/>
</copy>
</target>
<target name="deployTOwebtop">
<copy todir="${deploy.WebTop.dir}/WEB-INF/classes">
<fileset dir="${basedir}/WebRoot/WEB-INF/classes"
includes="**/**"/>
</copy>
<copy todir="${deploy.WebTop.dir}/custom">
<fileset dir="${basedir}/WebRoot/custom"
includes="**/**"
excludes="**/.bak"/>
</copy>
</target>
<!-- run all tasks -->
<target name="newDeployWin2k" depends="main, deployWinXP"/>
<target name="realDeployWebTop" depends="deployTOwebtop"/>
</project>
posted on 2006-07-18 17:32
北国狼人的BloG 阅读(1263)
评论(3) 编辑 收藏