You probably want to use glassfish.home/bin/appclient -client ...
Cheng
Olanrewaju Oyebanjo wrote:
> I was using the asadmin command : -client to in my ant script the
> following way:
>
> <target name="run-client" depends="deploy">
> <exec executable="${glassfish.home}/bin/asadmin"
> failonerror="true" vmlauncher="false">
> <arg line="-client ${client.j2ee}/sampleClient.jar"/>
> </exec>
> </target>
>
> but on the console it says:
>
>
> run-client:
>
> [exec] CLI001 Invalid Command, -client. Use "asadmin help" for a
> list of va
> lid commands.
>
> BUILD SUCCESSFUL
> Total time: 13 seconds
>
> Its saying that the -client command is an invalid command. Is there
> another command I am to use un place of "-client" or is there
> something that I am doing wrong that I seem unaware of. Your help and
> assistance is greatly appreciated. Thank you.
>
> - Lanre Oyebanjo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>