OLD | NEW |
| (Empty) |
1 #!/usr/bin/ruby1.8 -w | |
2 # | |
3 # Copyright:: Copyright 2009 Google Inc. | |
4 # Original Author:: John Woodell (mailto:woodie@google.com) | |
5 # | |
6 # Licensed under the Apache License, Version 2.0 (the "License"); | |
7 # you may not use this file except in compliance with the License. | |
8 # You may obtain a copy of the License at | |
9 # | |
10 # http://www.apache.org/licenses/LICENSE-2.0 | |
11 # | |
12 # Unless required by applicable law or agreed to in writing, software | |
13 # distributed under the License is distributed on an "AS IS" BASIS, | |
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 # See the License for the specific language governing permissions and | |
16 # limitations under the License. | |
17 | |
18 require 'appengine-tools/genxml' | |
19 | |
20 module AppEngine | |
21 module Admin | |
22 def self.due_diligence(app_dir) | |
23 libdir = app_paths(app_dir)[:libdir] | |
24 Dir.mkdir(libdir) unless File.exists?(libdir) | |
25 jars = Dir.entries(libdir).map {|f| f if f[-4,4].eql?('.jar') }.compact | |
26 if jars.size > 1 | |
27 puts "=> Booting DevAppServer" | |
28 puts "=> Press Ctrl-C to shutdown server" | |
29 print "=> " | |
30 else | |
31 puts "Unable to find the required jars in WEB-INF/lib" | |
32 puts "" | |
33 puts "Please see the wiki for more information:" | |
34 puts "http://code.google.com/p/appengine-jruby/wiki/GettingStarted" | |
35 puts "" | |
36 exit(0) | |
37 end | |
38 end | |
39 end | |
40 end | |
OLD | NEW |