File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes How to specify ejbdeploy classpath arugement in Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to specify ejbdeploy classpath arugement in Ant" Watch "How to specify ejbdeploy classpath arugement in Ant" New topic
Author

How to specify ejbdeploy classpath arugement in Ant

Simon Song
Ranch Hand

Joined: Feb 01, 2002
Posts: 217
I follow the Ant sample from SG246134, but I need specify the classpath for ejbdeploy. I just failed to make it in the Ant, the arguments cannot be appended correctly. Any suggestion?
<target name="deploy" unless="ejb.deploy.uptodate">
<echo>Deploying EJB JAR file</echo>
<exec executable="${global.was.dir}/bin/ejbdeploy.bat" dir="${global.was.dir}/bin">
<arg value="${ejb.jar.file}"/>
<arg value="${global.temp.dir}"/>
<arg value="${global.temp.dir}/${ejb.jar.name}"/>
<arg value='-cp "d:\lib\log4j.jar;d:\lib\parser.jar"'/>
<arg value="-quiet"/>
</exec>
<move file="${global.temp.dir}/${ejb.jar.name}" tofile="${ejb.jar.file}"/>
<echo>Finished deploying EJB JAR file</echo>
</target>


Simon Song
Certified Entperise Developer of Websphere
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to specify ejbdeploy classpath arugement in Ant
 
Similar Threads
Error starting EJBDeploy environment: null.
EJB Task--ejbjar error
generating deployment code for websphere using Ant's ejbjar
The project was not built since its build path is incomplete Websphere error
using ant to generate ejb deploy code