ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Beela Avinash <>
Subject how to call the .py from wsadmin using ant
Date Wed, 10 Dec 2008 15:11:57 GMT

<?xml version="1.0"?>
<!-- ====================== create projectName DeployEar
===-================================ -->
<project name="DeployEar" default="createEar" basedir=".">
<property name = "path" value ="C:\Program
<target name="deploy-ear">
	        <!-- Install Web app automatically -->
           <!-- <exec executable="${path}\wsadmin.bat -lang jython -f"/> -->
			<!-- <arg value="-lang jython -f"/> -->

			 <exec executable="${path}\wsadmin.bat" /> 
			 <arg value="/c -lang jython -f"/> 
			  <exec dir = "${path}" executable = "cmd">
     		  <arg value="/c wsadmin.bat"/>
			  <!--<arg value="/c -lang jython -f 'C:\Program
Files\IBM\WebSphere\AppServer_Base\bin\' "/>-->  
 <target name="tests">
		<antcall target="deploy-ear"/>										



C:\Program Files\IBM\WebSphere\AppServer_Base\bin>ant tests
Buildfile: build.xml


     [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>

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:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message