I did what you asked but this is the result:
============================================================================
INITIALIZING: SWEP
============================================================================
>>> Configuration: config.json
>>> Jobs: build
>>> Resolving jobs...
Traceback (most recent call last):
File "C:\qooxdoo-sdk\tool\bin\generator.py", line 133, in <module>
main()
File "C:\qooxdoo-sdk\tool\bin\generator.py", line 114, in main
expandedjobs = config.resolveExtendsAndRuns(options.jobs[:])
File "C:\qooxdoo-sdk\tool\pylib\generator\config\Config.py", line 291, in
reso
lveExtendsAndRuns
self._resolveExtends(jobList)
File "C:\qooxdoo-sdk\tool\pylib\generator\config\Config.py", line 309, in
_res
olveExtends
job.resolveExtend()
File "C:\qooxdoo-sdk\tool\pylib\generator\config\Job.py", line 96, in
resolveE
xtend
entryJob.resolveExtend(entryTrace + [self.name])
File "C:\qooxdoo-sdk\tool\pylib\generator\config\Job.py", line 93, in
resolveE
xtend
raise RuntimeError, "No such job: \"%s\" (trace: %s)" % (entry,
entryTrace+[
self.name])
RuntimeError: No such job: "appconf::build-resources" (trace:
[u'build::build-re
sources', u'build-resources'])
build-resources is defined in base.json, not in application.json.
Here are what I have for base.json and application.json:
base:
// base.json
{
"name" : "base.json",
"let" :
{
"ROOT" : ".",
"QOOXDOO_PATH" : "../../framework",
"QOOXDOO_URI" : "../${QOOXDOO_PATH}",
"CACHE" : "cache",
"QXTHEME" : "qx.theme.Classic",
"QXVERSION" : "0.8",
"LOCALES" : [ "en" ],
"BUILD_PATH" : "${ROOT}/build"
},
/*
"export" :
[
"build",
"clean",
"distclean",
"fix",
"lint",
"migration",
"pretty",
"profiling",
"publish",
"source",
"translation"
],
*/
"jobs" :
{
// the next one is needed wherever the local lib is to be scanned
"scan-local-lib" :
{
"library" :
[
{
"manifest" : "${ROOT}/Manifest.json",
"uri" : ".."
}
],
"cache" :
{
"compile" : "${CACHE}"
}
},
"common" :
{
"library" :
[
{
"manifest" : "${QOOXDOO_PATH}/Manifest.json",
"uri" : "${QOOXDOO_URI}"
},
{
"manifest" : "${ROOT}/Manifest.json",
"uri" : ".."
}
],
"include" :
[
"${APPLICATION}.Application",
"${QXTHEME}"
],
"cache" :
{
"compile" : "${CACHE}"
},
"settings" :
{
"qx.version" : "${QXVERSION}",
"qx.theme" : "${QXTHEME}",
"qx.application" : "${APPLICATION}.Application"
}
},
// -- source jobs --------------------------------------------------
"source-script" :
{
"extend" : ["common"],
"compile-source" :
{
"file" : "${ROOT}/source/script/${APPLICATION}.js",
"locales" : "${LOCALES}",
"root" : "source"
}
},
"source" :
{
"run" :
[
"source-script"
]
},
// -- build jobs ---------------------------------------------------
"build-script" :
{
"extend" : ["common"],
"variants" :
{
"qx.debug" : ["off"]
},
"compile-dist" :
{
"target" : "${BUILD_PATH}",
"file" : "${BUILD_PATH}/script/${APPLICATION}.js",
"uri" : "script/${APPLICATION}.js",
"root" : "${BUILD_PATH}",
"format" : "on",
"locales" : "${LOCALES}",
"optimize" : ["basecalls", "variables", "privates", "strings"]
}
},
"build-files" :
{
"extend" : ["common"],
"copy-files" :
{
"files" :
[
"index.html"
],
"target" : "${BUILD_PATH}"
}
},
"build-resources":
{
"extend" : ["common"],
"copy-resources" :
{
"target" : "${BUILD_PATH}",
"resource-filter" : true
}
},
"build" :
{
"run" :
[
"build-resources",
"build-script",
"build-files"
]
},
// -- various jobs -------------------------------------------------
"translation" :
{
"extend" : ["common"],
"translate" :
{
"locales": "${LOCALES}",
"namespaces" : ["${APPLICATION}"]
}
},
// can be used as an 'extend' to activate profiling
"profiling" :
{
"variants" :
{
"qx.aspects" : ["on"]
},
"require" :
{
"qx.Class" : [ "qx.core.Aspect", "qx.dev.Profile" ]
}
},
"pretty" :
{
"extend" : [ "scan-local-lib" ],
"include" : [ "=${APPLICATION}.*" ],
"pretty-print" : {}
},
"clean" :
{
// scan-local-lib is here (like various similar others) only in for
the cache setting;
// can be removed once the forced library scan for each job is
disabled
"extend" : [ "scan-local-lib" ],
"clean-files" :
{
"Cleaning up build" :
[
"${BUILD_PATH}/script/${APPLICATION}.js",
"${BUILD_PATH}/script/${APPLICATION}[_-]*.js"
],
"Cleaning up source" :
[
"${ROOT}/cache",
"${ROOT}/source/script/${APPLICATION}.js"
],
"Cleaning up framework" :
[
]
}
},
"distclean" :
{
"extend" : [ "scan-local-lib" ],
"clean-files" :
{
"Deleting build" :
[
"${BUILD_PATH}"
],
"Deleting api" :
[
"${ROOT}/api"
],
"Deleting debug" :
[
],
"Deleting AIR application" :
[
],
"Deleting buildtool" :
[
"${ROOT}/tool/buildtool"
],
"Deleting test" :
[
"${ROOT}/test"
],
"Cleaning up source" :
[
"${ROOT}/source/script"
],
"Cleaning up framework" :
[
"${CACHE}"
]
}
},
"lint" :
{
"extend" : [ "scan-local-lib" ],
"lint-check" :
{
"allowed-globals" : [ "qx", "qxsettings", "qxvariants",
"${APPLICATION}" ]
}
},
"migration" :
{
"extend" : [ "scan-local-lib" ],
"migrate-files" :
{
//"from-version" : "0.7",
"migrate-html" : false
}
},
"publish" :
{
"extend" : [ "scan-local-lib" ],
"shell" :
{
"command" : "rsync --checksum --compress --recursive --delete
--inplace --links --safe-links --exclude .svn ${BUILD_PATH}/*
[EMAIL PROTECTED]:/var/www/qooxdoo/demo/${QXVERSION}/${APPLICATION}"
}
},
"fix" :
{
"extend" : [ "scan-local-lib" ],
"fix-files" : {}
}
}
}
On Fri, Nov 7, 2008 at 2:09 AM, thron7 <[EMAIL PROTECTED]> wrote:
> Jim,
>
> Please do the following:
>
> Edit the files {qx}/tool/data/config/[base,application].json and comment
> out the "export" key in both (e.g. by enclosing it in /* ... */). This
> ensures all jobs will be exported by the configs.
>
> Then try the following config for you app (this is working fine with a
> skeleton):
>
> {
> "name" : "swep",
>
> "include" :
> [
> {
>
> "path" : "../../tool/data/config/application.json",
> "as" : "appconf"
> }
>
> ],
>
> "let" :
> {
> "APPLICATION" : "swep",
> "QOOXDOO_PATH" : "../qooxdoo-0.8-sdk/framework",
> "QOOXDOO_URI" : "../${QOOXDOO_PATH}",
> "QXTHEME" : "qx.theme.Modern",
> "API_EXCLUDE" : ["qx.legacy.*"],
> "LOCALES" : [ "en" ],
> "ROOT" : "."
> },
>
> "jobs":
> {
> "build-script" :
> {
> "extend" : ["appconf::build-script"],
>
> "variants" :
> {
> "qx.debug" : ["off"]
> },
> "compile-dist" :
> {
> "target" : "${BUILD_PATH}",
> "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
> "uri" : "script/${APPLICATION}.js",
> "root" : "${BUILD_PATH}",
> "format" : "on",
> "locales" : "${LOCALES}",
> "optimize" : []
> }
> },
>
>
> "build-files" :
> {
> "extend" : ["appconf::build-files"],
>
> "copy-files" :
> {
> "files" :
> [
> "index.html"
> ],
>
> "target" : "${BUILD_PATH}"
> }
> },
>
>
> "build-resources":
> {
> "extend" : ["appconf::build-resources"],
>
> "copy-resources" :
> {
> "target" : "${BUILD_PATH}",
> "resource-filter" : true
> }
> },
>
>
> "build" :
> {
> "run" :
> [
> "build-resources",
> "build-script",
> "build-files"
> ]
> }
> }
> }
>
>
application.josn:
{
"name" : "Generic application.json",
"include" :
[
{
"path" : "./base.json"
},
{
"path" : "../../../component/apiviewer/api.json",
"as" : "apiconf"
},
{
"path" : "../../../component/testrunner/testrunner.json",
"as" : "testrunner"
}
],
/*
"export" :
[
"api",
"build",
"clean",
"distclean",
"fix",
"lint",
"migration",
"pretty",
"profiling",
"publish",
"source",
"test",
"test-source",
"translation"
],
*/
"let" :
{
"ROOT" : ".",
"QOOXDOO_PATH" : "../../framework",
"QOOXDOO_URI" : "../${QOOXDOO_PATH}",
"CACHE" : "cache",
"QXTHEME" : "qx.theme.Classic",
"QXVERSION" : "0.8",
"LOCALES" : [ "en" ],
"BUILD_PATH" : "${ROOT}/build"
},
"jobs" :
{
"api" :
{
"extend" : ["apiconf::build"],
"let" :
{
"APIVIEWER_ROOT" : "${QOOXDOO_PATH}/../component/apiviewer",
"BUILD_PATH" : "./api",
"API_INCLUDE" : ["qx.*", "${APPLICATION}.*"]
},
"library" :
[
{
"manifest" : "Manifest.json",
"uri" : ".."
}
]
},
"test" :
{
"extend" : ["testrunner::build"],
"let" :
{
"TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/../component/testrunner",
"TEST_INCLUDE" : "${APPLICATION}.test.*",
"BUILD_PATH" : "./test"
},
"library" :
[
{
"manifest" : "Manifest.json",
"uri" : ".."
}
]
},
"test-source" :
{
"extend" : ["testrunner::build-with-tests-source"],
"let" :
{
"TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/../component/testrunner",
"TEST_INCLUDE" : "${APPLICATION}.test.*",
"BUILD_PATH" : "./test"
},
"library" :
[
{
"manifest" : "Manifest.json",
"uri" : ".."
}
]
}
}
}
and lastly, config.json:
{
"name" : "swep",
"include" :
[
{
"path" : "../../tool/data/config/application.json",
"as" : "appconf"
}
],
"let" :
{
"APPLICATION" : "swep",
"QOOXDOO_PATH" : "../qooxdoo-0.8-sdk/framework",
"QOOXDOO_URI" : "../${QOOXDOO_PATH}",
"QXTHEME" : "qx.theme.Modern",
"API_EXCLUDE" : ["qx.legacy.*"],
"LOCALES" : [ "en" ],
"ROOT" : "."
},
"jobs":
{
"build-script" :
{
"extend" : ["appconf::build-script"],
"variants" :
{
"qx.debug" : ["off"]
},
"compile-dist" :
{
"target" : "${BUILD_PATH}",
"file" : "${BUILD_PATH}/script/${APPLICATION}.js",
"uri" : "script/${APPLICATION}.js",
"root" : "${BUILD_PATH}",
"format" : "on",
"locales" : "${LOCALES}",
"optimize" : []
}
},
"build-files" :
{
"extend" : ["appconf::build-files"],
"copy-files" :
{
"files" :
[
"index.html"
],
"target" : "${BUILD_PATH}"
}
},
"build-resources":
{
"extend" : ["appconf::build-resources"],
"copy-resources" :
{
"target" : "${BUILD_PATH}",
"resource-filter" : true
}
},
"build" :
{
"run" :
[
"build-resources",
"build-script",
"build-files"
]
}
}
}
Thanks for your assistance so far,
Jim
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel