2013-12-23 168 views
0

我运行下面的代码在WebSphere 7上运行我的代码,Ant任务

<taskdef name="wasejbjar" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy" classpath="D:/IBM/WebSphere/AppServer/plugins/com.ibm.ws.runtime.jar"> 
     <classpath> 
      <pathelement path="D:/IBM/WebSphere/AppServer/plugins/com.ibm.ws.runtime.jar" />    
     </classpath> 
    </taskdef> 
    <wasejbjar inputJar="${build.root.dir}/ejbtemp/${undeployed.ejb.name}-TMP.jar" wasHome="D:/IBM/WebSphere/AppServer/" workingDirectory="${build.root.dir}/ejbtemp" outputJar="${build.lib.dir}/${undeployed.ejb.name}.jar" noValidate="false" noWarnings="false" noInform="true" trace="false" quiet="false"/> 

当我尝试运行我的WebSphere 7,我总是收到错误,无法解析setupCmdLine:空\ bin \ setupCmdLine.bat(系统找不到指定的路径)。

有人可以帮忙吗?

回答

0

这意味着Ant不知道您的服务器上安装了WebSphere的位置。 This IBM post建议您需要将user.install.root设置为您的WebSphere安装目录。

+0

我试着添加user.install.root作为我的计算机属性中的一个变量作为环境变量,并尝试在路径中添加值。但仍然无法正常工作。你能帮我吗? –

+0

请任何帮助 –