This example tests loading of packages from individual package files.

The test has succeeded if you see the alert popup.

Source files:

Defining package "org.jspkg1.scriptloaders.html.scripttag" with namespace "org.jspkg1"
Defining script "packageApply on org.jspkg1.logging.core"
importsmatch = null for package packageApply on org.jspkg1.logging.core
Mapping package "packageApply on org.jspkg1.logging.core" to dependency "org.jspkg1.logging.core"
Need to load package "org.jspkg1.logging.core"
checkCanExecute(packageApply on org.jspkg1.logging.core): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.logging.core): Package "org.jspkg1.logging.core" hasn't been loaded yet
importsmatch = null for package org.jspkg1.scriptloaders.html.scripttag
Defining package "org.jspkg1.packageloaders.simple" with namespace "org.jspkg1"
importsmatch = null for package org.jspkg1.packageloaders.simple
Defining package "org.jspkg1.packageloaders.singlefile" with namespace "org.jspkg1"
importsmatch = null for package org.jspkg1.packageloaders.singlefile
Defining package "org.jspkg1.util.formatting" with namespace "org.jspkg1.util.formatting"
importsmatch = null for package org.jspkg1.util.formatting
Defining package "org.jspkg1.scriptloaders.generic.xmlhttp" with namespace "org.jspkg1.scriptloaders.generic.xmlhttp"
importsmatch = null for package org.jspkg1.scriptloaders.generic.xmlhttp
Defining package "org.jspkg1.loggers.html.debugdiv" with namespace "org.jscore"
importsmatch = /^org\.jspkg1\.util\.formatting$/ for package org.jspkg1.loggers.html.debugdiv
Mapping package "org.jspkg1.loggers.html.debugdiv" to dependency "org.jspkg1.util.formatting"
Need to load package "org.jspkg1.util.formatting"
Defining script "org.jspkg1.tags.htmltags"
importsmatch = null for package org.jspkg1.tags.htmltags
checkCanExecute(org.jspkg1.tags.htmltags): Starting dependency search
checkCanExecute(org.jspkg1.tags.htmltags): All dependencies satisfied
Assigned packageloader "org.jspkg1.packageloaders.simple" for package pattern "name.edwards.dean.*"
Defining script "Script for initial usings and imports"
importsmatch = null for package Script for initial usings and imports
Mapping package "Script for initial usings and imports" to dependency "org.jspkg1.loggers.html.debugdiv"
Need to load package "org.jspkg1.loggers.html.debugdiv"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
checkCanExecute(Script for initial usings and imports): Starting dependency search
checkCanExecute(org.jspkg1.loggers.html.debugdiv): Starting dependency search
checkCanExecute(org.jspkg1.util.formatting): Starting dependency search
checkCanExecute(org.jspkg1.util.formatting): All dependencies satisfied
Initializing package "org.jspkg1.util.formatting"
Package "org.jspkg1.util.formatting" exported symbol "Formatting"
Package "org.jspkg1.util.formatting" provided package "org.jspkg1.util.formatting"
Checking package "org.jspkg1.loggers.html.debugdiv"
checkCanExecute(org.jspkg1.loggers.html.debugdiv): Starting dependency search
checkCanExecute(org.jspkg1.loggers.html.debugdiv): All dependencies satisfied
Initializing package "org.jspkg1.loggers.html.debugdiv"
Importing symbol "org.jspkg1.util.formatting.Formatting" into package "org.jspkg1.loggers.html.debugdiv"
Package "org.jspkg1.loggers.html.debugdiv" imports package "org.jspkg1.util.formatting"
Imported symbol Formatting
Package "org.jspkg1.loggers.html.debugdiv" exported symbol "Logger"
Package "org.jspkg1.loggers.html.debugdiv" provided package "org.jspkg1.logging.core"
Checking package "packageApply on org.jspkg1.logging.core"
checkCanExecute(packageApply on org.jspkg1.logging.core): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.logging.core): All dependencies satisfied
Importing symbol "org.jscore.Logger" into package "packageApply on org.jspkg1.logging.core"
Package "org.jspkg1.loggers.html.debugdiv" provided package "org.jspkg1.loggers.html.debugdiv"
Checking package "Script for initial usings and imports"
checkCanExecute(Script for initial usings and imports): Starting dependency search
checkCanExecute(Script for initial usings and imports): All dependencies satisfied
Importing symbol "org.jscore.Logger" into package "Script for initial usings and imports"
Defining script "(unnamed script)"
importsmatch = /^name\.edwards\.dean\.[^\.]*$/ for package (unnamed script)
Mapping package "(unnamed script)" to dependency "name.edwards.dean.system"
Need to load package "name.edwards.dean.system"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
Found packageloader match "org.jspkg1.packageloaders.simple"
Defining script "packageApply on org.jspkg1.packageloaders.simple"
importsmatch = null for package packageApply on org.jspkg1.packageloaders.simple
Mapping package "packageApply on org.jspkg1.packageloaders.simple" to dependency "org.jspkg1.packageloaders.simple"
Need to load package "org.jspkg1.packageloaders.simple"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
checkCanExecute(packageApply on org.jspkg1.packageloaders.simple): Starting dependency search
checkCanExecute(org.jspkg1.packageloaders.simple): Starting dependency search
checkCanExecute(org.jspkg1.packageloaders.simple): All dependencies satisfied
Initializing package "org.jspkg1.packageloaders.simple"
Package "org.jspkg1.packageloaders.simple" exported symbol "Loader"
Package "org.jspkg1.packageloaders.simple" provided package "org.jspkg1.packageloaders.simple"
Checking package "packageApply on org.jspkg1.packageloaders.simple"
checkCanExecute(packageApply on org.jspkg1.packageloaders.simple): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.packageloaders.simple): All dependencies satisfied
Importing symbol "org.jspkg1.Loader" into package "packageApply on org.jspkg1.packageloaders.simple"
Defining script "packageApply on org.jspkg1.scriptloaders.html.scripttag"
importsmatch = null for package packageApply on org.jspkg1.scriptloaders.html.scripttag
Mapping package "packageApply on org.jspkg1.scriptloaders.html.scripttag" to dependency "org.jspkg1.scriptloaders.html.scripttag"
Need to load package "org.jspkg1.scriptloaders.html.scripttag"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
checkCanExecute(packageApply on org.jspkg1.scriptloaders.html.scripttag): Starting dependency search
checkCanExecute(org.jspkg1.scriptloaders.html.scripttag): Starting dependency search
checkCanExecute(org.jspkg1.scriptloaders.html.scripttag): All dependencies satisfied
Initializing package "org.jspkg1.scriptloaders.html.scripttag"
Package "org.jspkg1.scriptloaders.html.scripttag" exported symbol "Loader"
Package "org.jspkg1.scriptloaders.html.scripttag" provided package "org.jspkg1.scriptloaders.html.scripttag"
Checking package "packageApply on org.jspkg1.scriptloaders.html.scripttag"
checkCanExecute(packageApply on org.jspkg1.scriptloaders.html.scripttag): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.scriptloaders.html.scripttag): All dependencies satisfied
Importing symbol "org.jspkg1.Loader" into package "packageApply on org.jspkg1.scriptloaders.html.scripttag"
checkCanExecute((unnamed script)): Starting dependency search
checkCanExecute((unnamed script)): Package "name.edwards.dean.system" hasn't been loaded yet
Defining package "name.edwards.dean.system" with namespace "name.edwards.dean"
importsmatch = /^name\.edwards\.dean\.[^\.]*$/ for package name.edwards.dean.system
Mapping package "name.edwards.dean.system" to dependency "name.edwards.dean.common"
Need to load package "name.edwards.dean.common"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
Found packageloader match "org.jspkg1.packageloaders.simple"
Defining script "packageApply on org.jspkg1.packageloaders.simple"
importsmatch = null for package packageApply on org.jspkg1.packageloaders.simple
Mapping package "packageApply on org.jspkg1.packageloaders.simple" to dependency "org.jspkg1.packageloaders.simple"
Need to load package "org.jspkg1.packageloaders.simple"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
checkCanExecute(packageApply on org.jspkg1.packageloaders.simple): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.packageloaders.simple): All dependencies satisfied
Importing symbol "org.jspkg1.Loader" into package "packageApply on org.jspkg1.packageloaders.simple"
Defining script "packageApply on org.jspkg1.scriptloaders.html.scripttag"
importsmatch = null for package packageApply on org.jspkg1.scriptloaders.html.scripttag
Mapping package "packageApply on org.jspkg1.scriptloaders.html.scripttag" to dependency "org.jspkg1.scriptloaders.html.scripttag"
Need to load package "org.jspkg1.scriptloaders.html.scripttag"
Testing packageloader /^name\.edwards\.dean\.[^\.]*$/
checkCanExecute(packageApply on org.jspkg1.scriptloaders.html.scripttag): Starting dependency search
checkCanExecute(packageApply on org.jspkg1.scriptloaders.html.scripttag): All dependencies satisfied
Importing symbol "org.jspkg1.Loader" into package "packageApply on org.jspkg1.scriptloaders.html.scripttag"
checkCanExecute(name.edwards.dean.system): Starting dependency search
checkCanExecute(name.edwards.dean.system): Package "name.edwards.dean.common" hasn't been loaded yet
Defining package "name.edwards.dean.common" with namespace "name.edwards.dean"
importsmatch = null for package name.edwards.dean.common
checkCanExecute(name.edwards.dean.common): Starting dependency search
checkCanExecute(name.edwards.dean.common): All dependencies satisfied
Initializing package "name.edwards.dean.common"
Package "name.edwards.dean.common" exported symbol "Common"
Package "name.edwards.dean.common" provided package "name.edwards.dean.common"
Checking package "name.edwards.dean.system"
checkCanExecute(name.edwards.dean.system): Starting dependency search
checkCanExecute(name.edwards.dean.system): All dependencies satisfied
Initializing package "name.edwards.dean.system"
Importing symbol "name.edwards.dean.Common" into package "name.edwards.dean.system"
Package "name.edwards.dean.system" imports package "name.edwards.dean.common"
Imported symbol Common
Package "name.edwards.dean.system" exported symbol "System"
Package "name.edwards.dean.system" provided package "name.edwards.dean.system"
Checking package "(unnamed script)"
checkCanExecute((unnamed script)): Starting dependency search
checkCanExecute((unnamed script)): All dependencies satisfied
Importing symbol "name.edwards.dean.System" into package "(unnamed script)"
Package "(unnamed script)" imports package "name.edwards.dean.system"
Imported symbol System