<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/sample/README</filename>
    </added>
    <added>
      <filename>spec/sample/Rakefile</filename>
    </added>
    <added>
      <filename>spec/sample/app/controllers/application.rb</filename>
    </added>
    <added>
      <filename>spec/sample/app/helpers/application_helper.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/boot.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/database.yml</filename>
    </added>
    <added>
      <filename>spec/sample/config/environment.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/environments/development.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/environments/production.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/environments/test.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/initializers/inflections.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/initializers/mime_types.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/initializers/new_rails_defaults.rb</filename>
    </added>
    <added>
      <filename>spec/sample/config/routes.rb</filename>
    </added>
    <added>
      <filename>spec/sample/lib/tasks/utils.rake</filename>
    </added>
    <added>
      <filename>spec/sample/public/404.html</filename>
    </added>
    <added>
      <filename>spec/sample/public/422.html</filename>
    </added>
    <added>
      <filename>spec/sample/public/500.html</filename>
    </added>
    <added>
      <filename>spec/sample/public/favicon.ico</filename>
    </added>
    <added>
      <filename>spec/sample/public/index.html</filename>
    </added>
    <added>
      <filename>spec/sample/public/robots.txt</filename>
    </added>
    <added>
      <filename>sun-web.xml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -184,6 +184,7 @@ module Warbler
         desc &quot;Create an exploded war in the app's public directory&quot;
         task &quot;exploded&quot; =&gt; [&quot;webxml&quot;, &quot;java_classes&quot;, &quot;gems&quot;, *libs] do
           cp &quot;#{@config.staging_dir}/WEB-INF/web.xml&quot;, &quot;.&quot;
+          cp File.join(WARBLER_HOME, &quot;sun-web.xml&quot;), &quot;.&quot; unless File.exists?(&quot;sun-web.xml&quot;)
           ln_sf &quot;#{@config.staging_dir}/WEB-INF/gems&quot;, &quot;.&quot;
           if File.directory?(&quot;#{@config.staging_dir}/WEB-INF/classes&quot;)
             ln_sf &quot;#{@config.staging_dir}/WEB-INF/classes&quot;, &quot;.&quot;
@@ -198,7 +199,7 @@ module Warbler
             [&quot;gems&quot;, &quot;public/WEB-INF&quot;, &quot;classes&quot;]).each do |l|
             rm_f l if File.exist?(l) &amp;&amp; File.symlink?(l)
           end
-          rm_f &quot;web.xml&quot;
+          rm_f &quot;*web.xml&quot;
         end
       end
     end</diff>
      <filename>lib/warbler/task.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,29 +10,25 @@ describe Warbler::Task do
   before(:each) do
     @rake = Rake::Application.new
     Rake.application = @rake
-    mkdir_p &quot;public&quot;
+    verbose(false)
+    @pwd = Dir.getwd
+    Dir.chdir(&quot;spec/sample&quot;)
     mkdir_p &quot;log&quot;
-    touch &quot;public/index.html&quot;
     touch &quot;log/test.log&quot;
     @config = Warbler::Config.new do |config|
-      config.staging_dir = &quot;pkg/tmp/war&quot;
+      config.staging_dir = &quot;tmp/war&quot;
       config.war_name = &quot;warbler&quot;
       config.gems = [&quot;rake&quot;]
-      config.dirs = %w(bin generators log lib)
-      config.public_html = FileList[&quot;public/**/*&quot;, &quot;tasks/**/*&quot;]
       config.webxml.jruby.max.runtimes = 5
     end
-    verbose(false)
   end
 
   after(:each) do
     define_tasks &quot;clean&quot;
     Rake::Task[&quot;warble:clean&quot;].invoke
-    rm_rf &quot;public&quot;
-    rm_rf &quot;config&quot;
     rm_rf &quot;log&quot;
-    rm_f &quot;config.ru&quot;
-    rm_f &quot;web.xml&quot;
+    rm_f FileList[&quot;config.ru&quot;, &quot;*web.xml&quot;, &quot;config/web.xml*&quot;, &quot;config/warble.rb&quot;]
+    Dir.chdir(@pwd)
   end
 
   def define_tasks(*tasks)
@@ -63,7 +59,6 @@ describe Warbler::Task do
     define_tasks &quot;public&quot;
     Rake::Task[&quot;warble:public&quot;].invoke
     file_list(%r{^#{@config.staging_dir}/index\.html}).should_not be_empty
-    file_list(%r{tasks/warbler\.rake}).should_not be_empty
   end
 
   it &quot;should define a gems task for unpacking gems&quot; do
@@ -178,9 +173,9 @@ describe Warbler::Task do
     end
     define_tasks &quot;app&quot;
     Rake::Task[&quot;warble:app&quot;].invoke
-    file_list(%r{WEB-INF/bin/warble$}).should_not be_empty
-    file_list(%r{WEB-INF/generators/warble/warble_generator\.rb$}).should_not be_empty
-    file_list(%r{WEB-INF/lib/warbler\.rb$}).should_not be_empty
+    file_list(%r{WEB-INF/app$}).should_not be_empty
+    file_list(%r{WEB-INF/config$}).should_not be_empty
+    file_list(%r{WEB-INF/lib$}).should_not be_empty
     gems_ran.should == true
   end
 
@@ -198,6 +193,7 @@ describe Warbler::Task do
     define_tasks &quot;webxml&quot;, &quot;exploded&quot;, &quot;java_classes&quot;, &quot;gems&quot;
     Rake::Task['warble:exploded'].invoke
     File.exist?(&quot;web.xml&quot;).should == true
+    File.exist?(&quot;sun-web.xml&quot;).should == true
     File.symlink?(&quot;gems&quot;).should == true
     File.symlink?(&quot;public/WEB-INF&quot;).should == true
     Rake::Task['warble:clean:exploded'].invoke
@@ -227,12 +223,11 @@ describe Warbler::Task do
   end
 
   it &quot;should be able to exclude files from the .war&quot; do
-    @config.dirs &lt;&lt; &quot;spec&quot;
-    @config.excludes += FileList['spec/spec_helper.rb']
+    @config.excludes += FileList['lib/tasks/utils.rake']
     task &quot;warble:gems&quot; do; end
     define_tasks &quot;app&quot;
     Rake::Task[&quot;warble:app&quot;].invoke
-    file_list(%r{spec/spec_helper.rb}).should be_empty
+    file_list(%r{lib/tasks/utils.rake}).should be_empty
   end
 
   it &quot;should be able to define all tasks successfully&quot; do
@@ -420,4 +415,4 @@ describe &quot;Debug targets&quot; do
     capture { Rake::Task[&quot;war:debug:excludes&quot;].invoke }.should =~ /exclude/
     capture { Rake::Task[&quot;war:debug&quot;].invoke }.should =~ /Config/
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/warbler/task_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>761de7bbbf7e3db249163a6fea49745f22cde0fe</id>
    </parent>
  </parents>
  <author>
    <name>Nick Sieger</name>
    <email>nick@nicksieger.com</email>
  </author>
  <url>http://github.com/nicksieger/warbler/commit/8bba464d99cb261448c5c7ca477133af85cc8ba6</url>
  <id>8bba464d99cb261448c5c7ca477133af85cc8ba6</id>
  <committed-date>2008-11-09T09:15:29-08:00</committed-date>
  <authored-date>2008-11-09T09:15:29-08:00</authored-date>
  <message>Move all testing activity to take place in spec/sample app

- also add sun-web.xml that turns symlinks on for exploded mode</message>
  <tree>fd7613a8116c1996c342626fef82fb6d750382ab</tree>
  <committer>
    <name>Nick Sieger</name>
    <email>nick@nicksieger.com</email>
  </committer>
</commit>
