Need to pass the value to build file.

View: New views
2 Messages — Rating Filter:   Alert me  

Need to pass the value to build file.

by sridhar bitkuri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a build.xml file and calling it from a .batch file and like to pass
the "earFile" and "application" below values like below, how can i do it.
Thanks in advance.

abc.BAT xyz.ear xyz

<property name="earFile" value="${earFile}" />
 <property name="application" value="${application}" />

Re: Need to pass the value to build file.

by J.C. Zhu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

from "ant -h", I think  "-D<property>=<value>   use value for given
property" may help.

On Thu, Oct 22, 2009 at 8:26 AM, sridhar bitkuri <bitkuri@...> wrote:

> Hello,
>
> I have a build.xml file and calling it from a .batch file and like to pass
> the "earFile" and "application" below values like below, how can i do it.
> Thanks in advance.
>
> abc.BAT xyz.ear xyz
>
> <property name="earFile" value="${earFile}" />
>  <property name="application" value="${application}" />
>



--


realalien ( Zhu Jia Cheng)
email: realalien@...