Hi, when I run the following code _ get this error C:\RakeTest>rake rake aborted! C:/RakeTest/rakefile.rb:2: syntax error, unexpected tDOT3, expecting $end any help would be greatly appreciated. Thanks,\Brian ==========================================================================require "rexml/document" ... OUTPUT_PATH = "output" SVN_LOG_PATH = "#{OUTPUT_PATH}/svn_log.xml" ARTIFACTS_PATH = "#{OUTPUT_PATH}/artifacts" SVN_URL = "http://10.200.68.220/svn/Source/trunk/" VERSION_MAJOR_MINOR_BUILD = "0.1.0" namespace :build do task :all => [:init, :compile] ... "Perform the required initial tasks." task :init do puts "performorming Initializatiom..." puts "Creating folders..." Dir.mkdir(OUTPUT_PATH) Dir.mkdir(ARTIFACTS_PARTH) puts "Getting SVN revision number and saving to #{SVN_LOG_PATH}..." sh "svn log --xml --revision HEAD #{SVN_URL} > \"#{SVN_LOG_PATH}\"" log = REXML::Document.new File.new(SVN_LOG_PATH) logEntry = log.root.elements["logentry"] $svn_revision = logEntry.attributes["revision"] $svn_message = logEntry.elements["msg"].text VERSION = "#{VERSION_MAJOR_MINOR_BUILD}.#{$svn_revision}" puts "Revision #{$svn_revision} found with message: #{$svn_message}" end end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 April 2012 21:09, Brian mr <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > when I run the following code _ get this error > C:\RakeTest>rake > rake aborted! > C:/RakeTest/rakefile.rb:2: syntax error, unexpected tDOT3, expecting > $end > > any help would be greatly appreciated. > Thanks,\Brian > ==========================================================================> require "rexml/document" > ...OK, I give in. I am showing my lack of knowledge on Ruby here, what are the three dots for in this context? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Friday, 13 April 2012 16:09:44 UTC-4, Ruby-Forum.com User wrote:> > Hi, > when I run the following code _ get this error > C:\RakeTest>rake > rake aborted! > C:/RakeTest/rakefile.rb:2: syntax error, unexpected tDOT3, expecting > $end > > any help would be greatly appreciated. > Thanks,\Brian > ==========================================================================> require "rexml/document" > ... >This is not valid Ruby syntax - the author of the post you''ve sourced it from was using the ... to avoid repeating identical code from the preceding figure. You may want to skip to the full version at the end: http://andypike.wordpress.com/2009/08/08/building-net-solution-with-rake-and-teamcity/ --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/dLeon8oeZnMJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Matt Jones wrote in post #1056520:> On Friday, 13 April 2012 16:09:44 UTC-4, Ruby-Forum.com User wrote: >> ==========================================================================>> require "rexml/document" >> ... >> > > This is not valid Ruby syntax - the author of the post you''ve sourced it > from was using the ... to avoid repeating identical code from the > preceding > figure. You may want to skip to the full version at the end: > >http://andypike.wordpress.com/2009/08/08/building-net-solution-with-rake-and-teamcity/> > --Matt JonesHi Matt, I can''t access the full rakefile at http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb do you know hoe to access it? Brent -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Matt, I can''t access the full rakefile at http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb do you know hoe to access it? Brent -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Monday, 16 April 2012 10:21:03 UTC-4, Ruby-Forum.com User wrote:> > Hi Matt, > > I can''t access the full rakefile at > http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb > > do you know hoe to access it? >Looks like Aardvark got devoured by Sitefinity - here''s the archived version: http://web.archive.org/web/20100811225616/http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/IR9ZFywKJdAJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Matt Jones wrote in post #1056929:> On Monday, 16 April 2012 10:21:03 UTC-4, Ruby-Forum.com User wrote: >> >> Hi Matt, >> >> I can''t access the full rakefile at >> http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb >> >> do you know hoe to access it? >> > Looks like Aardvark got devoured by Sitefinity - here''s the archived > version: > >http://web.archive.org/web/20100811225616/http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb> > --Matt JonesMany Thanks Brian! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.