This discussion is archived
2 Replies Latest reply: Jun 9, 2010 4:17 AM by 843804 RSS

deploy a jar file on remote glassfish server with ant

843804 Newbie
Currently Being Moderated
Hi!
I have writing an ant script but I to jam.
With antcall (+2param) I call one target,
from this based on a condition I call with an antcall again (+2param) another target,
My question: the previous params why could not to overwrite.
Another question: if I make a loop invites the first input target, how can I stop it without that all my threads separated to do.
Thank You
  • 1. Re: deploy a jar file on remote glassfish server with ant
    EJP Guru
    Currently Being Moderated
    I cannot make any sense of this question whatsoever.

    Please try again, this time in standard English.
  • 2. Re: deploy a jar file on remote glassfish server with ant
    843804 Newbie
    Currently Being Moderated
    Hi!
    I have writing an ant script but I stopped.
    A command with antcall and two parameters
    (<param name="Param1" value="${project.p1}"/>)
    (<param name="Param2" value="${project.p2}"/>) from this based on a condition I call one target,


    <condition property="condition">
    <available file="${deploy.dir}/${Param2}" type="file"/>
    </condition>
    <antcall target="listProjectFiles">
    <param name="Param1" value="${Param1}"/>
    <param name="Param2" value="${Param2}"/>
    </antcall>
    <!--if did not find it, start from begining-->
    <antcall target="listProjectFiles">
    <param name="Param1" value="${Param1}"/>
    <param name="Param2" value="${Param0}"/>
    </antcall>

    My question: the previous params why could not to overwrite in later antcall?
    Another question: if I make a loop invites the first input target(antcall target="1"), how can I stop it without that all my threads separated to do.
    Thank You Again