Ant target Create-Component after selecting n it create the component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Ant target Create-Component after selecting n it create the component

ansh jain
Hello All,

I m facing an problem after running Ant target that is ant create-component.

I followed following steps *:*

create-component:
    [input] Component name:
Pactice
    [input] Component resource name:
Practice
    [input] Webapp name:
Practice
    [input] Base permission:

     [echo] The following hot-deploy component will be created:
     [echo]               Name: Pactice
     [echo]               Resource Name: Practice
     [echo]               Webapp Name: Practice
     [echo]               Base permission:
     [echo]               Folder:
/home/common/ofbiz_dev/ofbiz/hot-deploy/Pactice
     [echo]
    [input] Confirm:  (Y, [N], y, n)

After selecting option:   *n
*still it will create the Component which it should not create.
Because after selecting N it will not create *
 *
Reply | Threaded
Open this post in threaded view
|

Re: Ant target Create-Component after selecting n it create the component

gopal gautam
Hello Ansh,
                   For this you would have to use another <fail>element
for "n"
  As...
         <fail message="Component creation canceled by the user.">
            <condition>
                <equals arg1="${confirm-component-creation}" arg2="n"/>
            </condition>
          </fail>


On Mon, Mar 9, 2009 at 6:42 PM, ansh jain <[hidden email]> wrote:

> Hello All,
>
> I m facing an problem after running Ant target that is ant
> create-component.
>
> I followed following steps *:*
>
> create-component:
>    [input] Component name:
> Pactice
>    [input] Component resource name:
> Practice
>    [input] Webapp name:
> Practice
>    [input] Base permission:
>
>     [echo] The following hot-deploy component will be created:
>     [echo]               Name: Pactice
>     [echo]               Resource Name: Practice
>     [echo]               Webapp Name: Practice
>     [echo]               Base permission:
>     [echo]               Folder:
> /home/common/ofbiz_dev/ofbiz/hot-deploy/Pactice
>     [echo]
>    [input] Confirm:  (Y, [N], y, n)
>
> After selecting option:   *n
> *still it will create the Component which it should not create.
> Because after selecting N it will not create *
>  *
>
Reply | Threaded
Open this post in threaded view
|

Re: Ant target Create-Component after selecting n it create the component

Jacques Le Roux
Administrator
Fixed at revision: 751734  (it's simple than that)

Jacques

From: "gopal gautam" <[hidden email]>
Hello Ansh,
                   For this you would have to use another <fail>element
for "n"
  As...
         <fail message="Component creation canceled by the user.">
            <condition>
                <equals arg1="${confirm-component-creation}" arg2="n"/>
            </condition>
          </fail>


On Mon, Mar 9, 2009 at 6:42 PM, ansh jain <[hidden email]> wrote:

> Hello All,
>
> I m facing an problem after running Ant target that is ant
> create-component.
>
> I followed following steps *:*
>
> create-component:
>    [input] Component name:
> Pactice
>    [input] Component resource name:
> Practice
>    [input] Webapp name:
> Practice
>    [input] Base permission:
>
>     [echo] The following hot-deploy component will be created:
>     [echo]               Name: Pactice
>     [echo]               Resource Name: Practice
>     [echo]               Webapp Name: Practice
>     [echo]               Base permission:
>     [echo]               Folder:
> /home/common/ofbiz_dev/ofbiz/hot-deploy/Pactice
>     [echo]
>    [input] Confirm:  (Y, [N], y, n)
>
> After selecting option:   *n
> *still it will create the Component which it should not create.
> Because after selecting N it will not create *
>  *
>