<!-- change this to your local installation, if different --> <property name="wasHome.dir" value="C:/Program Files/IBM/WebSphere/AppServer" /> <property name="was.profilename" value="AppSrv01" />
<classpath> <fileset dir="${wasHome.dir}/plugins/" includes="*.jar" /> <fileset dir="${wasHome.dir}/lib/" includes="*.jar" /> </classpath> </taskdef> <!-- <wsInstallApp wasHome="location of websphere installation" ear="the ear file you wish to install" options="the options to pass to the installation process" properties="java properties file containing attributes to set in the JVM System properties" profile="a script file to be executed before the main command or file" profileName="the profile name of the desired server" conntype="specifies the type of connection to be used." host="the host to connect to" port="the port on the host to connect to" user="user ID to authenticate with" password="password to authenticate with" failonerror="true | false"/> --> <target name="installEar"> <echo message="EAR File located: ${deployEar.dir}/${deployEar}" /> <wsInstallApp profileName="${was.profilename}" ear="${deployEar.dir}/${project.name}.war" wasHome="${wasHome.dir}" conntype="${remoteConnType}" options=" -MapWebModToVH {{${project.name} ${project.name}.war,WEB-INF/web.xml ${remoteHostName} }} -MapModulesToServers {{${project.name} ${project.name}.war,WEB-INF/web.xml WebSphere:cell=cary-mf2t9id1nhNode01Cell,node=cary-mf2t9id1nhNode01,server=server1}} -context-root /jrepot -appname ${project.name}" host="${remoteHostName}" user="${remoteUserId}" password="${remotePassword}" /> </target>
添加新评论4 条评论
2011-09-22 13:09
2011-09-22 11:25
<fileset dir="${wasHome.dir}/plugins/" includes="*.jar" />
<fileset dir="${wasHome.dir}/lib/" includes="*.jar" />
</classpath>
2011-09-22 11:23
2011-09-21 22:43