syntax error, unexpected tDOT3, expecting $end

38 views
Skip to first unread message

Brian mr

unread,
Apr 13, 2012, 4:09:44 PM4/13/12
to rubyonra...@googlegroups.com
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/.

Colin Law

unread,
Apr 13, 2012, 4:28:26 PM4/13/12
to rubyonra...@googlegroups.com
On 13 April 2012 21:09, Brian mr <li...@ruby-forum.com> 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

Matt Jones

unread,
Apr 14, 2012, 2:38:47 PM4/14/12
to rubyonra...@googlegroups.com


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:


--Matt Jones

Brian mr

unread,
Apr 16, 2012, 10:20:39 AM4/16/12
to rubyonra...@googlegroups.com
Matt Jones wrote in post #1056520:

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

Brian mr

unread,
Apr 16, 2012, 10:21:03 AM4/16/12
to rubyonra...@googlegroups.com
Hi Matt,

do you know hoe to access it?

Brent

--
Posted via http://www.ruby-forum.com/.

Matt Jones

unread,
Apr 17, 2012, 7:53:47 AM4/17/12
to rubyonra...@googlegroups.com


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:


--Matt Jones 

Brian mr

unread,
Apr 23, 2012, 3:04:24 PM4/23/12
to rubyonra...@googlegroups.com
Matt Jones wrote in post #1056929:
Many Thanks Brian!
Reply all
Reply to author
Forward
0 new messages