House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Java to ColdFusion translation

Author:
Andrew Scott
03/09/2007 03:51 AM

Duncan, This is off the top of my head, but you would be best to do it this way, and remember cfdump is your friend here too. <script>          for ( Iterator entries = logEntries.iterator( ); entries.hasNext( ) ; ) {              logEntry = entries.next( );              WriteOutput( "---------------------------------------------" );              WriteOutput("revision: " + logEntry.getRevision( ) );              WriteOutput( "author: " + logEntry.getAuthor( ) );              WriteOutput( "date: " + logEntry.getDate( ) );              WriteOutput( "log message: " + logEntry.getMessage( ) );              if ( logEntry.getChangedPaths( ).size( ) > 0 ) {                 WriteOutput( );                 WriteOutput( "changed paths:" ); </script> > > I am working on a small page for our intranet, printing out a complete > history of a repository history. I have been taking some leaves out of > CFDIFF (Thanks to Rick Osborne for doing lots of the hard yards!) and > rolling my own bits. > > I have had some reasonable success with SVNKit, but this bit has me > stumped - I think its just my understanding of the docs and lack of > ability to translate it to CF code, so I hope someone can help! > > I have the list of all logEntries, but I now need the files for each > revision. > > The problem is this line: > > SVNLogEntry logEntry = ( SVNLogEntry ) entries.next( ); > > From  https://wiki.svnkit.com/Printing_Out_Repository_History > > I have > > <cfset i=ent.iterator()> > <cfloop condition="i.hasNext()"> > <cfset f=i.next()> > <cfset fileentries = > createObject("java","org.tmatesoft.svn.core.SVNLogEntry").init()> > > > .... > </cfloop> > > but I cant work out how to pass f into the init for SVNLogEntry which > looks to be the equivalent of what they do in the Java example > > > Here is the complete Java tutorial for this > http://svnkit.com/kb/javadoc/org/tmatesoft/svn/core/SVNLogEntry.html > > And thanks to Rick Osborne for publishing cfdiff that has helped me > get this far! > > Can anyone help? > > -- > Duncan I Loxton > duncan.loxton@gmail.com > >


Search cf-talk

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29