neilac333 wrote:
I am running an Ant script that generates a WAR file, copies it from my
desktop to my development server, and calls a target in another Ant script
on that development server which runs a WebLogic script that deploys the WAR
file to the WebLogic instance on the development server.
Incidentally, this issue has nothing to do with WebLogic.
Here is the Ant target on my desktop:
<target name="deploy-war-to-dev" depends="war-for-dev">
<copy todir="${deploy.dir}">
<fileset dir="${dist.dir}"/>
</copy>
<ant dir="${deploy.dir}" antfile="build-weblogic-deployment.xml"
target="deploy-to-weblogic" inheritrefs="false" inheritall="false">
</ant>
</target>
Here is the target on the dev server:
<target name="deploy-to-weblogic">
<exec executable="${weblogic.bin.dir}/setWLSEnv.cmd" />
<wlst debug="true" failOnError="true">
<script>
WL Jython stuff
</script>
</wlst>
</target>
When the <exec> target is run, I get the following error:
java.io.IOException: CreateProcess:
..\..\weblogic92\server\bin\setWLSEnv.cmd error=2
error 2 is DOS for file not found.
try resolving weblogic bin dir early on, as the executable attribute of
exec doesnt this, to allow you do call anything on the path
<property name="to.exec" location="${weblogic.bin.dir}/setWLSEnv.cmd" />
<exec executable="${to.exec}" >
...
-steve
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]