<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2004 - All Rights reserved. --> <!-- Ant targets for adding WTP plugins --> <property name="WTP_BASE_DIR" value="${WpsInstallLocation}/IBMTrans" /> <property name="WTP_LIB_DIR" value="${WTP_BASE_DIR}/lib" /> <property name="WTP_PLUGINS_DIR" value="${WTP_BASE_DIR}/plugins" /> <!-- ###################################################### --> <!-- SETUP WebSphere Transcoding Technology --> <!-- ###################################################### --> <target name="setup-transcoding" depends=" init, action-copy-transcoding-tld, action-update-wtp-genericjvm, action-wtp-modify-server-attributes, action-add-wtp-all" /> <!-- ###################################################### --> <!-- Copy tld file for WML split joint fix, Heatwave reqs --> <!-- ###################################################### --> <target name="action-copy-transcoding-tld"> <copy file="${WTP_BASE_DIR}/etc/config/transcoding.tld" tofile="${WpsInstallLocation}/shared/app/WEB-INF/tld/transcoding.tld" overwrite="true"/> </target> <!-- ###################################################### --> <!-- Update genericJVMarguments --> <!-- ###################################################### --> <target name="action-update-wtp-genericjvm"> <wsadmin script="${work.dir}/was/setJVMprop.jacl" properties="${work.dir}/was/jacl.properties" conntype="${wsadminConnType}" user="${WasUserid}" password="${WasPassword}" failonerror="yes"> </wsadmin> </target> <!-- ###################################################### --> <!-- Update server attributes genericJVMarguments --> <!-- ###################################################### --> <target name="action-wtp-modify-server-attributes"> <wsadmin properties="${work.dir}/was/jacl.properties" script="${config.dir}/was/wtp_ModifyServerAttributes.jacl" conntype="${wsadminConnType}" user="${WasUserid}" password="${WasPassword}" failonerror="yes"> <arg value="${WpsInstallLocation}"/> </wsadmin> </target> <!-- ###################################################### --> <!-- Add all Portal needed Plugins to Transcoding --> <!-- ###################################################### --> <target name="action-add-wtp-all"> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/HtmlReductionTranscoder.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/URLRewriter.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/MachineTranslationTranscoder.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/XmlStylesheetTranscoder.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/WpsIntegrationPlugin.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/PreferenceModifierPlugin.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/JavaScriptRemovalPlugin.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/WMLTranscoder.jar"/> </antcall> <antcall target="action-add-wtp-one"> <param name="Plugin_Path" value="${WTP_PLUGINS_DIR}/ImodeTranscoder.jar"/> </antcall> </target> <!-- ###################################################### --> <!-- Add a Plugin to Transcoding --> <!-- ###################################################### --> <target name="action-add-wtp-one"> <!-- ###################################################### --> <!-- NOTE: Need to run in ${WTP_BASE_DIR} in order to find --> <!-- wbi.boot file. Need to use fork to specify dir --> <!-- ###################################################### --> <java classname="com.ibm.transform.gui.PluginPackage" dir="${WTP_BASE_DIR}" fork="yes" failonerror="yes"> <jvmarg value="-Xbootclasspath/p:${WTP_BASE_DIR}${path.separator}${WTP_LIB_DIR}/logSupport.jar${path.separator}${WTP_LIB_DIR}/log.jar" /> <jvmarg value="-Dfile.encoding=${file.encoding}"/> <jvmarg value="${jvmArgForZos}"/> <arg value="-add"/> <arg value="${WTP_BASE_DIR}"/> <arg value="${Plugin_Path}"/> <arg value="-enable"/> <arg value="-force"/> <arg value="-debug"/> <arg value=""/> <classpath> <pathelement location="${WTP_LIB_DIR}/wtpadmin.jar" /> <pathelement location="${WTP_LIB_DIR}/wtpcommon.jar" /> <pathelement location="${WTP_LIB_DIR}/wtpserver.jar" /> <pathelement location="${WTP_LIB_DIR}/xerces.jar" /> <pathelement location="${WTP_LIB_DIR}/xalan.jar" /> <pathelement location="${WTP_LIB_DIR}/icu4j.jar" /> <pathelement location="${WTP_LIB_DIR}/jt400.jar" /> <pathelement location="${WTP_LIB_DIR}/log.jar" /> <pathelement location="${WTP_LIB_DIR}/logSupport.jar" /> <pathelement location="${WTP_BASE_DIR}/" /> </classpath> </java> </target> <!-- ###################################################### --> <!-- Update Translation Server:port Replace value="localhost:1098" with actual WTS server host and port Multiple WTS servers should be specified by a comma separated list ex: hostname1:port1,hostname2:port2 --> <!-- ###################################################### --> <target name="update-wtp-translation"> <editfile> <fileset dir="${WTP_BASE_DIR}/etc/plugins/ibm" includes="MachineTranslationTranscoder.prop"/> <setvariable name="servers" value="${WTSserverPortList}"/> </editfile> </target>
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.