Forum: Ruby on Rails rake update_javascripts on edge has no effect

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A88a8da103044de18418f303bf0c1507?d=identicon&s=25 Bill Burcham (bburcham)
on 2006-01-26 16:30
I moved to the edge yesterday and ran rake update_javascripts to get the
latest prototype stuff into my public directory.  To my surprise, the
old files were still there afterward.

I just took a peek at javascripts.rake in
vendor/rails/railties/lib/tasks.  The update_javascripts task is copying
.js files from Dir[RAILTIES_PATH + '/html/javascripts/*.js']  My
railties however has no such html directory so the cp has no effect.

The .js files seem to be located in
vendor/rails/actionpack/lib/action_view/helpers/javascripts

Did I do something wrong to cause the html directory to be absent in my
railties hierarchy?
A88a8da103044de18418f303bf0c1507?d=identicon&s=25 Bill Burcham (bburcham)
on 2006-01-26 17:01
mkay, so my question is a bit of a duplicate of
http://www.ruby-forum.com/topic/51068#20455 Sorry about that.  Anyhoo,
my problem seems to be that my railties hierarchy has only a lib dir.
It has no html dir at all.  I wonder why.
A88a8da103044de18418f303bf0c1507?d=identicon&s=25 Bill Burcham (bburcham)
on 2006-01-26 17:12
Looking at railties lib/tasks/framework.rake
http://dev.rubyonrails.org/browser/trunk/railties/...
I see that the freeze_edge task does not export the html directory at
all, to wit:

  for framework in %w( railties actionpack activerecord actionmailer
activesupport actionwebservice )
    mkdir_p "vendor/rails/#{framework}"
    system  "svn export
http://dev.rubyonrails.org/svn/rails/trunk/#{framework}/lib
vendor/rails/#{framework}/lib #{revision_switch}"
  end

'sup with that?  Does update_javascripts not work with a project that
has been freeze_edge'd?
A88a8da103044de18418f303bf0c1507?d=identicon&s=25 Bill Burcham (bburcham)
on 2006-01-26 17:14
Looking at railties lib/tasks/framework.rake
http://dev.rubyonrails.org/browser/trunk/railties/...
I see that the freeze_edge task does not export the html directory at
all. 'sup with that?  Does update_javascripts not work with a project
that has been freeze_edge'd?
480cd6d5c2d7ff8d7f83a67137eb794d?d=identicon&s=25 Zack Chandler (Guest)
on 2006-01-26 17:21
(Received via mailing list)
This happened to me as well - just copy the javascript files over by
hand
and it should work fine.

Zack
A88a8da103044de18418f303bf0c1507?d=identicon&s=25 Bill Burcham (bburcham)
on 2006-01-26 17:26
Thanks Zack.  That works fine.  But I just wanted to know if it was
_supposed_ to work automatically.  I'm wondering what conditions have to
hold for update_javascripts to work as advertised.  Do you know what
conditions have to hold in order for the html directory to be present in
the railties hierarchy?
This topic is locked and can not be replied to.