ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaaf Syed M" <shaa...@gmail.com>
Subject Re: how to call the .py from wsadmin using ant
Date Thu, 11 Dec 2008 08:03:43 GMT
The following works okay for me.


              <exec dir="." executable="wsadmin.bat" logError="true"
failonerror="true" output="wsconfig.out">
                <arg line="-lang jython -f ../../createQFactory.py"/>
              </exec>

Fail on error doesnt work if the file was not found. I am not sure if it
works with wsadmin at all.
Also wsadmin is in my PATH env already.

Regards,
-- Shaaf

On Wed, Dec 10, 2008 at 4:24 PM, Francis Galiegue <fge@one2team.com> wrote:

> Le mercredi 10 décembre 2008, Beela Avinash a écrit :
> [...]
> >
> >
> >
> >                        <exec executable="${path}\wsadmin.bat" />
> >
> >                        <arg value="/c -lang jython -f installear.py"/>
> >
>
> It should be ONE argument per <arg>. Ie:
>
> <exec executable="thecommand">
>        <arg value="arg1"/>
>        <arg value="arg2"/>
> </exec>
>
> With this, what you pass as one single argument is "/c -lang jython [etc]"
> which is probably not what you want.
>
> --
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 6 83 87 78 75
> Tel : +33 (0) 1 78 94 55 52
> fge@one2team.com
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message