Author |
Message
|
bobbee |
Posted: Fri Jun 14, 2013 6:37 am Post subject: ANT Subversion |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Have to build a WMB ANT deploy using subversion. Before i build I would rather recycle and reuse. Anyone want to share a copy of a deploy script using subversion as a SCM. I searched the net, could not find one but I see alot of posts on the subject in the forum. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jun 14, 2013 6:50 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Code: |
<exec executable=""${env.MQSI_BASEDIR}/bin/${env.MQSI_DEPLOY}"">
<arg value="-n"/>
<arg value="${env.brokername}"/>
<arg value="-e"/>
<arg value="${env.egname}"/>
<arg value="-a"/>
<arg value="${env.barname}"/>
<arg value="-m"/>
<arg value="-w"/>
<arg value="${env.waittime}"/>
</exec>
|
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bobbee |
Posted: Fri Jun 14, 2013 7:02 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
That appears to be the last step in what i was looking for. Thanks.
I am interested in:
Subversion checkout to a workspace
Build the bar file
Deploy to one or more brokers
I think I have one from a prior client. I may just need the subversion checkout commands/code. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jun 14, 2013 7:08 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
ANT is a pretty simple language, you cannot work this out?
Code: |
<exec executable=""${env.MQSI_BASEDIR}/bin/${env.MQSI_PACKAGEBAR}"">
<arg value="-w"/>
<arg value="${env.workspace_location}"/>
<arg value="-a"/>
<arg value="${env.bar_output_location_1}"/>
<arg value="-o"/>
<arg value="${mflow1}"/>
<arg value="${mflow2}"/>
<arg value="${mflow3}"/>
|
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bobbee |
Posted: Fri Jun 14, 2013 7:22 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Sure, but both you and I both know that there is working models out there of exactly what I am asking for. From a project stand point wouldn't it be easier to reuse what is available than waste time generating the same exact stuff. That my compadre is a big waste of time. I just want sometime that has most of the foundation that I may or may not have to tweek. I am suspecting you don't have it so i will wait to see if someone else offers something up. I post code here whenever I get it. Like the Database cleanup scripts for the FTE DBLogger that EXISTED nowhere. That too was easy to create, if you were a DBA and understood the tables. I just made alot of peoples lives easier. No big deal.
Get it. One hand washes the other. That is what we are here to do. Or at least thought that was what this list was about.
Again, thanks for your insight and help. It is much appreciated. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jun 14, 2013 7:24 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
bobbee wrote: |
than waste time generating the same exact stuff. |
I dunno, took about five minutes to write those two examples. How much time are you talking about? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bobbee |
Posted: Fri Jun 14, 2013 8:06 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Again, thanks for your insight and help. It is much appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 14, 2013 8:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
bobbee wrote: |
Again, thanks for your insight and help. It is much appreciated. |
you need to make sure you have the command line tool for svn installed.
Commands are prefixed with svn.
Help for the command can be obtained with svn --help.
Should be a breeze from there...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bobbee |
Posted: Fri Jun 14, 2013 9:22 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Thanks, maybe off the hook, just got a resume of someone to interview for this task |
|
Back to top |
|
 |
bobbee |
Posted: Fri Jun 14, 2013 9:25 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
poking around I found this snippett for SVN checkout. If the workspace gets build after i customize this for WMB I am 1/2 way there.
Code: |
<?xml version="1.0"?>
<project name="SVN" default="build" basedir=".">
<property name="ANT_HOME" value="/dun/d67loc1/software/apache-ant-1.6.5"/>
<path id="svnant.classpath">
<pathelement location="${ANT_HOME}/lib"/>
<fileset dir="${ANT_HOME}/lib/">
<include name="**/*.jar"/>
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath"/>
<target name="checkout">
<echo>svn checkout </echo>
<svn username="...." password="....">
<checkout url="https://svm.acnielsen.com/repos/IDOArchitecture/Ascent/Bin/Config/trunk/Production/TIBCO/FavConfig" destPath="SRC" />
</svn>
</target>
<target name="build" depends="checkout">
<description>Main target</description>
</target>
</project> |
|
|
Back to top |
|
 |
smdavies99 |
Posted: Sat Jun 15, 2013 4:37 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Please consider removing real file paths and real URL's from any examples you post.
Some places I've worked in, if I'd posted your last post I would be given the sack pronto for a clear breach of security.
 _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
bobbee |
Posted: Sun Jun 16, 2013 1:42 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Thanks, that post WAS cut/paste directly from a post on a public internet site. |
|
Back to top |
|
 |
|