Re: Java to CF translation
andrew, Thanks for the push here is what I ended up with: >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. > > > 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:" ); > > > > > > >On 3/9/07, Duncan <[EMAIL PROTECTED]> wrote: >> ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272329 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Java to CF translation
Sorry - on closer examination that isnt the case. I will get back to you and we can see if this is more on the right lines. >Andrew, > >Are you saying that I can almost directly copy and paste that java >example into a cfscript block? > >What you have in this email seems to be a copy of the wiki example... > > >>> ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272321 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Java to CF translation
Andrew, Are you saying that I can almost directly copy and paste that java example into a cfscript block? What you have in this email seems to be a copy of the wiki example... >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. > > > 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:" ); > > > > > > >On 3/9/07, Duncan <[EMAIL PROTECTED]> wrote: >> ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272320 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Java to CF translation
I am working on a project where I translate CF into Java (JSP 2.x - BEA WL). Any tips would be appreciated! :-) ~~~ OÄuz Demirkapı TeraTech Inc. | Senior Developer 405 East Gude Dr Suite 207, Rockville, MD 20850, USA Voice: +1 (301) 424-3903 ext 111 | Fax: +1 (301) 762-8185 Web: http://www.teratech.com | E-mail: oguz.demirkapi teratech.com Winner in CFDJ awards Best Consulting. Member Team Fusebox. ~~~ ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272151 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Java to CF translation
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. 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:" ); On 3/9/07, Duncan <[EMAIL PROTECTED]> wrote: > > 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 > > > > > createObject("java","org.tmatesoft.svn.core.SVNLogEntry").init()> > > > > > > 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 > [EMAIL PROTECTED] > > ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272125 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4