|
From: albartell@xxxxxxxxx
To: midrange-l@xxxxxxxxxxxx
Subject: Automate source code backup to SVN
Date: Wed, 28 Nov 2007 08:18:24 -0600
Hi all,
I have been playing around with using SVN to change manage my RPG code. I
have installed SVN on the i5 but decided not to go that route once I found
that SVN on the i5 has a good chance of NOT being supported anymore (i.e.
Mark Phippard isn't in the i5 space anymore).
I then started using WDSC's iSeries Projects to get the source into a place
where SVN could be enacted on it using the eclipse tooling and SVN plugin.
This would have been fine except I DON'T do my development from iSeries
Projects and instead like to work directly with the members on the i5
(faster). The problem comes into play when debugging because the debugger
looks at iSeries Projects first for the source member to bring up before
looking on the server - major bummer.
So my next attempt at change management with SVN is as follows:
1) Setup a netserver allowance for
/QSYS.LIB/LIBTOBACKUP.LIB/SRCPFTOBACKUP.FILE
2) Write a script (thinking .bat file or Java) that logs into that folder
each night and downloads the source to a folder on the PC server (Windows).
3) Execute the SVN commands to sync up that folder with the repository.
Right now I have TortioseSVN loaded on the Windows server and am thinking
there must be some automated things I could do with that to get the source
into SVN at 2am each morning.
Before I dive too far into this I am wondering if anybody else has already
tried it, or if somebody has a better way to get code into SVN?
Actually, the more I think of it, a guy could easily write a Java app that
resides on the iSeries and does ALL of this without involving the Windows
side at all. All that would be needed would be a config file stating which
source physical files should be backed up, the repository location/user/pwd,
and you should be set! BTW, I found this completely Java open source tool:
http://svnkit.com
Thoughts?
Aaron Bartell
http://mowyourlawn.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.