Hi All,

          I am trying to use <condition> but not finding a good way to
resolve my problem, problem goes like this:

I had one build-properties.xml file which contains



//----------------------------------------------------------------------
----



build-properties.xml

--------------------

<property name="mapped.folder" value="T:"/>

<property name="baseline.name" value="CASH26420060206"/>

<property name="debug.name" value="CONT_P2"/>

<! -- Please enter valid type for build in Develop and Ready format -->

<property name="type.build.name" value="Develop"/>



and my build.xml files contains the two <parallel> tasks,



build.xml

---------

<target name="pvcs-get" description="Get from PVCS">

            <! -- Parallel task 1-->

            <parallel>

                        <exec executable="SerenaLoginbat.bat"
failonerror="true"/>

                        <exec executable="download.exe"
failonerror="true" searchpath="true">

                                    <arg line="-r -C
${mapped.folder}/${newfolder.name}${today.date} -D \\ -B
WASHCON:${baseline.name}"/>

                        </exec>

            </parallel>



            <! -- Parallel task 2-->

            <parallel>

                        <exec executable="SerenaLoginbat.bat"
failonerror="true"/>

                        <exec executable="download.exe"
failonerror="true" searchpath="true">

                                    <arg line=" -W CASHCON:${debug.name}
-D ${mapped.folder}/${newfolder.name}${today.date} -r "/>

                        </exec>

            </parallel>

</target>

//----------------------------------------------------------------------
--------



Now if I want to do a Ready build I will change the value of
"type.build.name" property in my build-properties.xml file like this



<property name="type.build.name" value="Ready"/>,



And when build.xml file is executed it will execute the first <parallel>
task and if I want to do a Develop build I will make appropriate changes
to the same property, and when build.xml file is executed this time it
will run the second <parallel> task and not the first one.



Can anybody give some thoughts on this?





+91 80 30298143(O)






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to