Hi
Here is the content of my config.json for the kardpoll application. I
now sure that I see any wrong with it.
{
"name" : "kardpoll",
"include" :
[
{
"path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
}
],
"export" :
[
"api",
"api-data",
"build",
"clean",
"distclean",
"fix",
"info",
"inspector",
"lint",
"migration",
"pretty",
"profiling",
"source",
"source-all",
"source-hybrid",
"simulation-build",
"simulation-run",
"test",
"test-source",
"translation"
],
"default-job" : "source",
"let" :
{
"APPLICATION" : "kardpoll",
"QOOXDOO_PATH" : "../../../../../qooxdoo-1.5-sdk",
"QXTHEME" : "kardpoll.theme.Theme",
"API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*",
"${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
"LOCALES" : [ "en" ],
"CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache",
"ROOT" : "."
},
// You only need to edit the remainder of this file, if you want to
customize
// specific jobs, or add own job definitions.
"jobs" :
{
// Uncomment the following entry to add a contrib or library to your
// project; make sure to adapt the path to the Manifest.json; if
you are
// using a contrib: library, it will be downloaded into the path
specified
// by the 'cache/downloads' config key
"libraries" :
{
"library" :
[
{
"manifest" : "../dcbase/Manifest.json"
}
]
}
// If you want to tweak a job setting, see the following sample where
// the "format" feature of the "build-script" job is overridden.
// To see a list of available jobs, invoke 'generate.py x'.
/*
,"build-script" :
{
"compile-options" :
{
"code" :
{
"format" : false
}
}
}
*/
}
}
On 20/07/2011 3:10 PM, thron7 wrote:
>> Hi
>>
>> I have now changed my structure so that I have two projects "dcbase" for
>> my base classes and a second real project called "kardpoll". I then
>> changed the config.json and added
>>
>> "library" :
>> [
>> {
>> "manifest" : "../dcbase/Manifest.json"
>> }
>> ]
>>
>> I can now simply use dcbase classes in my kardpoll application. The
>> only problem left to solve is the images used in the dcbase classes.
>> When used in the kardpoll application the images are missing. I assume
>> this is due to the relative paths. So is there a way to refer to these
>> images so that they will work in any application?
>
> This should work out of the box. I'm not sure, though, I understand what
> you mean by "relative paths". In qooxdoo, images are referenced by their
> "resource id". This is the trailing end of their file system path, but
> only the part under the "source/resource" root. What you get is a resource
> id that always has to start with a name space, e.g. like
> "dcbase/images/i.png". This resource id, together with the "library" entry
> to the library, is all the build system needs to know to locate the image.
>
> One crucial aspect is that the library containing the image is known to
> *all* relevant build jobs. E.g. it is not enough that dcbase is known to
> the "build-script" job for the script generation, it has also to be known
> to the "build-resources" job which copies resource files to the build
> version. Maybe there is an issue here in your configuration.
>
> An easy way around this is to override the "libraries" (mind the plural)
> job in your own config. This makes sure your additional library gets
> honored in all relevant jobs:
>
> "libraries": {
> "library" : [
> { "manifest" : "../dcbase/Manifest.json" }
> ]
> }
>
> Take a look at the config.json of a vanilla gui skeleton which has a
> commented out example of this.
>
> T.
>
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered include:
> Web security, SSL, hacker attacks& Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel