× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



By golly I think we have it figured out - at least the "roughed out" first
round.

I have an article due on Monday and being I haven't even picked a topic yet,
this might be a good weekend project :-)

Later,
Aaron Bartell
http://mowyourlawn.com


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: Thursday, November 29, 2007 4:40 PM
To: midrange-l@xxxxxxxxxxxx
Subject: RE: Automate source code backup to SVN

It looks like the svnkit works perfectly from QSH.

As a test I checked out a project from SVN into the IFS using the
Tortoise client.

I checked it out to /rjssvntest

Then I made a change and was able to commit using SVNKIT from qshell:

cd /rjssvntest
java org.tmatesoft.svn.cli.SVN commit

Seems to work.

Process maybe more like this:
1.) (RPG pgm) Read config file to determine what source physical file to
"sync".

2.) Command might be:
SVNSYNC
File(DEVLIB/QCLSRC)
IFSProjectFolder(/devlib/qclsrc)
Include(*ALL/*CHANGED)
ChangeInt(*TODAY-mm/dd/yyyy)

<Then whatever RPG/Java code runs>

3.) CPYTOSTMF would be easier than reading the source with RPG. Less
programing :-)

4) (Java) During the commit all responses from the SVN server would be
logged in a DB2 Physical File for later review (i.e. see if there are
errors
committing).

Regards,
Richard Schoen
RJS Software Systems Inc.
"Get the information you need. Now!"
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 898-3038
Fax: (952) 898-1781
Toll Free: (888) RJSSOFT

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

message: 4
date: Thu, 29 Nov 2007 15:38:19 -0600
from: "Aaron Bartell" <albartell@xxxxxxxxx>
subject: RE: Automate source code backup to SVN

I don't think Mark released a command line version of the SVN command
line
program caller so you might need to see if there's a PASE version of the
svn
commit code.

You might have missed this on my first post, but the SVNKit
(http://svnkit.com) would be a perfect fit as it is 100% pure Java that
can
talk to an SVN server.

So here's how I envision it working:
1) (RPG pgm) Read config file to determine what source physical file to
"sync".
2) (RPG pgm) Read each source member individually, line by line, and
write
it to a same named IFS file in a temp directory. The sequence number
and
date area would NOT be included in this new file.
3) (RPG and Java) Have RPG program submit to data queue the name of a
file
to sync. Java on other end of data queue processes entry and uses
SVNKit to
sync with server. Obviously this part would have to have an alias so
the
Java would know this file should go in xyz repository in xyz folder.
4) (Java) During the commit all responses from the SVN server would be
logged in a DB2 Physical File for later review (i.e. see if there are
errors
committing).

If we keep going like this we will have a pretty polished design
requirements document by EOD Friday :-)

Thoughts?
Aaron Bartell
http://mowyourlawn.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.