Rakefile in jetty-6.1.11.1 vs Rakefile in jetty-6.1.12.1
- old
+ new
@@ -63,11 +63,12 @@
ASSEMBLY = "target/gravitext-testservlets-1.0-bin.dir"
file 'webapps/test.war' => [ 'webapps/test/index.html',
'webapps/test/WEB-INF/web.xml' ] do
- sh( 'jar cvf webapps/test.war -C webapps/test .' )
+ sh( 'jar cvf webapps/test.war ' +
+ '-C webapps/test index.html -C webapps/test WEB-INF/web.xml' )
end
file ASSEMBLY => [ 'pom.xml', 'assembly.xml' ] do
sh( 'mvn package' )
end
@@ -76,13 +77,13 @@
file "lib/jetty/#{jar}" => [ ASSEMBLY ] do
cp_r( File.join( ASSEMBLY, jar ), 'lib/jetty' )
end
end
-[ :gem, :test ].each { |t| task t => JAR_FILES }
+[ :gem, :test ].each { |t| task t => JAR_FILES + [ 'webapps/test.war' ] }
task :mvn_clean do
- rm_f( JAR_FILES )
+ rm_f( JAR_FILES + [ 'webapps/test.war' ] )
sh( 'mvn clean' )
end
task :clean => :mvn_clean
hoe = Hoe.new( "jetty", Jetty::VERSION ) do |p|