lib/warbler/jar.rb
def create(config_or_path)
      path = config_or_path
      if Warbler::Config === config_or_path
        path = "#{config_or_path.jar_name}.#{config_or_path.jar_extension}"
        path = File.join(config_or_path.autodeploy_dir, path) if config_or_path.autodeploy_dir
      end
      rm_f path
      ensure_directory_entries
      puts "Creating #{path}"
      create_jar path, @files
    end
# Create the jar or war file. The single argument can either be a
# Warbler::Config or a filename of the file to create.
Create the jar or war file. The single argument can either be a
Warbler::Config or a filename of the file to create.
Create the jar or war file . The single argument can either be a Warbler :: Config or a filename of the file to create .
def create(config_or_path)
      path = config_or_path
      if Warbler::Config === config_or_path
        path = "#{config_or_path.jar_name}.#{config_or_path.jar_extension}"
        path = File.join(config_or_path.autodeploy_dir, path) if config_or_path.autodeploy_dir
      end
      rm_f path
      ensure_directory_entries
      puts "Creating #{path}"
      create_jar path, @files
    end
def create ( config_or_path ) path = config_or_path if Warbler :: Config === config_or_path path = "#{config_or_path.jar_name}.#{config_or_path.jar_extension}" path = File . join ( config_or_path . autodeploy_dir , path ) if config_or_path . autodeploy_dir end rm_f path ensure_directory_entries puts "Creating #{path}" create_jar path , @files end
Create the jar or war file.
Create the jar or war file .
config_or_path