ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need help on build scripts

Post new topic  Reply to topic
 Need help on build scripts « View previous topic :: View next topic » 
Author Message
Vanshul_MB
PostPosted: Mon Apr 11, 2011 5:23 pm    Post subject: Need help on build scripts Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 68

I created build scripts in this way:

1. Master.xml : which is master file for calling other files
2. build.conf- some properties
3. build_xxx.xml -- Individual bar files

I need to run the individual file from master file and its working.
Now its required toi set some flags in conf file for each bar file wjere bar file gets created only when flag is true.

I did something like this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="Master Build" default="buildBar" basedir=".">
<property file="build.conf"/>
<target name="EI0012">
<ant antfile="build_EI0012.xml"/>
</target>

<target name="EI0013" >
<ant antfile="build_EI0013.xml"/>
</target>
<target name="buildBar" depends="EI0012,EI0013">
<echo message="Successfully build from main file" />
</target>
</project>



#WMB tool kit home
toolkit.home=C:\\Program Files (x86)\\ibm\\WMBT700
workspaces.dir=C:\\travelport\\WS2
qm.ip=""
qm.port=""
qm.name=""
broker.name=""
EI0012.Bool="true"

But how to write if condition?

some sites say:

<target name="EI0012" if="${EI0012.Bool}>
<ant antfile="build_EI0012.xml"/>
</target>
but its not working

Please let me know.

Thanks
Back to top
View user's profile Send private message
Vanshul_MB
PostPosted: Mon Apr 11, 2011 5:24 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 68

Master file


<?xml version="1.0" encoding="UTF-8"?>
<project name="Master Build" default="buildBar" basedir=".">
<property file="build.conf"/>
<target name="EI0012">
<ant antfile="build_EI0012.xml"/>
</target>

<target name="EI0013" >
<ant antfile="build_EI0013.xml"/>
</target>
<target name="buildBar" depends="EI0012,EI0013">
<echo message="Successfully build from main file" />
</target>
</project>


Conf file
#WMB tool kit home
toolkit.home=C:\\Program Files (x86)\\ibm\\WMBT700
workspaces.dir=C:\\travelport\\WS2
qm.ip=""
qm.port=""
qm.name=""
broker.name=""
EI0012.Bool="true"
Back to top
View user's profile Send private message
ganesh
PostPosted: Tue Apr 12, 2011 1:00 pm    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

Code:

<condition property="xyz">
    <equals arg1="${xyz}" arg2="0" />
  </condition>
<target name="x" if="${xyz}"></target>
<target name="y" unless="${xyz}"></target>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need help on build scripts
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.