# Install the helloworld application
# TODO: use app from wasdev

application "HelloworldApp" do

 serverName = "Test1"

  path "/usr/local/helloworldApp"
  repository "http://central.maven.org/maven2/org/apache/tuscany/sca/samples/helloworld-webapp/2.0/helloworld-webapp-2.0.war"
  scm_provider Chef::Provider::RemoteFile::Deploy
  owner "wlp"
  group "wlp-admin"

  wlp_webapp do

    description "Helloworld App"
    features [ "jsp-2.2", "servlet-3.0" ]

    # TODO: derive app_location automatically
    application_location "/usr/local/helloworldApp/current/helloworld-webapp-2.0.war"

#   application name and location default to above "HelloworldApp" and path
#   config other application attributes via attributes here, eg:
#      application_type "war"
#      application_context_root "someroot"
#      application_auto_start "true"
#   or, to use a custom xml template from this cookbook:
#    application_xml_template "HelloworldApp.xml.erb"

  end

  wlp

end

# TODO: where should this start go?
wlp_server serverName do
  action :start
end

Add a recipe that shows how to use the application_wlp cookbook
Add a recipe that shows how to use the application_wlp cookbook
