# Patch for Engines 2.0 warbler support

**URL:** <https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407>\
**Category:** Engines Development\
**Created:** [March 19, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407 "2008-03-19T20:05:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nat\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@Nat\_B](https://www.ruby-forum.com/u/Nat_B)\
**Post date:** [March 19, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407/1 "2008-03-19T20:05:29Z")

</div>

Hi, I’ve recently been playing with deploying a Rails 2.0 application  
on a Java application server using warbler. The application uses the  
beta version of Engines 2.0, and I discovered that the combination  
resulted in a mkdir failure during Engines startup when it tried to  
create the WEB-INF/public/plugin\_assets directory.

As a workaround, I tried changing line 17 of  
vendor/plugins/engines/lib/engines/assets.rb from:

```
      FileUtils.mkdir(dir)

```

to:

```
      FileUtils.mkdir_p(dir)

```

This worked fine, and made Engines 2.0 boot correctly inside the Java  
app server. I don’t think it’s a particularly dangerous change, so I  
was wondering if the maintainers would object to including it in  
Engines 2.0?

Nat

---

<div class="post-metadata">

**Author:** ![Nat\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@Nat\_B](https://www.ruby-forum.com/u/Nat_B)\
**Post date:** [March 22, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407/2 "2008-03-22T23:11:31Z")

</div>

I’ve committed this change as a part of making the 2.0 beta “official”

- [http://dev.rails-engines.org/changeset/671](http://dev.rails-engines.org/changeset/671)

HTH,

James
