Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to specify ejbdeploy classpath arugement in Ant

Simon Song
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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}/${}"/>
<arg value='-cp "d:\lib\log4j.jar;d:\lib\parser.jar"'/>
<arg value="-quiet"/>
<move file="${global.temp.dir}/${}" tofile="${ejb.jar.file}"/>
<echo>Finished deploying EJB JAR file</echo>
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic