學習過程
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=">
????? </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 閱讀(1266)
評論(3) 編輯 收藏