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 IndexWebSphere Message Broker SupportAnt Deployment

Post new topicReply to topic
Ant Deployment View previous topic :: View next topic
Author Message
shrusonu
PostPosted: Thu Apr 19, 2018 6:16 am Post subject: Ant Deployment Reply with quote

Novice

Joined: 20 Dec 2013
Posts: 13

Hi All,

I am deploying applications using ant.
I am facing problem while conditionally passing arguments for ant.

Ant:
apache-ant-1.10.1

IIB v10.0.0.9

I want "-deployAsSource" argument only when an application name starts with TEST*

Code:

  <target name="mqsicreatebar.buildbar">
     <condition property="optional" value="-deployAsSource" else="" >
      <matches pattern="TEST_*" string="${app.name}"/>
   </condition>
     <exec executable="${drive.home}\IBM\IIB\10.0.0.9\tools\mqsicreatebar.exe" spawn="false">
      <arg value="-data" />
       <arg value="${workspaces.dir}\..\" />
      <arg value="-b" />
       <arg value="${workspaces.dir}\..\${bar.name}" />
       <arg value="-cleanBuild" />
       <arg value="-a" />
      <arg value="${app.name}" />
     <arg value="${optional}" />
    </exec>
  </target>

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 19, 2018 6:21 am Post subject: Re: Ant Deployment Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25250
Location: Ohio, USA

shrusonu wrote:
I am facing problem


Perhaps if you told us what the problem was? Error message? Lack of desired parameter? Invasion by aliens? Invasion by ants (possibly giant)?

You might also want to include a quick word about what you've already tried, and why it didn't help, so we don't suggest the same thing.

You might also want to cross post on a ant-centric forum.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportAnt Deployment
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.