# ----------------------------------------------------------------------------
# Sling Crankstart startup file generated by the CrankstartInventoryPrinter
#
# This file is meant to recreate an existing Sling instance using the 
# Sling Crankstart launcher.
# ----------------------------------------------------------------------------

# TODO adapt this: default values for our variables
defaults http.port 8080
defaults osgi.storage.path cq-crankstart
defaults felix.http.jetty.version 2.2.0

# TODO adapt this: Bootstrap classpath (variables are not supported here)
classpath mvn:org.apache.felix/org.apache.felix.framework/4.3.0-R1558704
classpath mvn:org.apache.sling/org.apache.sling.crankstart.core/0.0.1-SNAPSHOT
classpath mvn:org.apache.sling/org.apache.sling.crankstart.api/0.0.1-SNAPSHOT
classpath mvn:org.slf4j/slf4j-api/1.7.6

# TODO adapt this: OSGi properties
osgi.property org.osgi.service.http.port ${http.port}
osgi.property org.osgi.framework.storage ${osgi.storage.path}
osgi.property sling.home SLING-HOME
osgi.property felix.startlevel.bundle 22
osgi.property org.osgi.framework.startlevel.beginning 32

# TODO adapt this: Logging
osgi.property org.apache.sling.commons.log.level INFO
osgi.property org.apache.sling.commons.log.file logs/error.log
osgi.property org.apache.sling.commons.log.file.number 5
osgi.property org.apache.sling.commons.log.file.size '.'yyyy-MM-dd

# Start the framework
start.framework

