<?xml version="1.0"?> <!-- ====================== create projectName DeployEar ===-================================ --> <project name="DeployEar" default="createEar" basedir="."> <property name = "path" value ="C:\Program Files\IBM\WebSphere\AppServer_Base\bin"/> <target name="deploy-ear"> <!-- Install Web app automatically --> <!-- <exec executable="${path}\wsadmin.bat -lang jython -f installear.py"/> --> <!-- <arg value="-lang jython -f installear.py"/> -->
<exec executable="${path}\wsadmin.bat" /> <arg value="/c -lang jython -f installear.py"/> <exec dir = "${path}" executable = "cmd"> <arg value="/c wsadmin.bat"/> <!--<arg value="/c -lang jython -f 'C:\Program Files\IBM\WebSphere\AppServer_Base\bin\installear.py' "/>--> </exec> </target> <target name="tests"> <antcall target="deploy-ear"/> </target> </project> ***************************************************************** error C:\Program Files\IBM\WebSphere\AppServer_Base\bin>ant tests Buildfile: build.xml tests: deploy-ear: [exec] WASX7209I: Connected to process "server1" on node mcity146Node04 using SOAP connector; The type of process is: UnManagedProcess [exec] WASX7029I: For help, enter: "$Help help" [exec] wsadmin> BUILD FAILED C:\Program Files\IBM\WebSphere\AppServer_Base\bin\build.xml:29: The following error occurred while executing this line: C:\Program Files\IBM\WebSphere\AppServer_Base\bin\build.xml:17: Problem: failed to create task or type arg Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. *************************************************************************** i'm unable to call the .py file from wsadmin using ant script the scenario is ant has to call wsadamin and wsadmin has to call the .py file. can anyone help me out ... Thanx in advance -- View this message in context: http://www.nabble.com/how-to-call-the-.py-from-wsadmin-using-ant-tp20937152p20937152.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]