complete custom build

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

complete custom build

Fink, Andreas
Hi,

I have a little problem with the build version of my application.
I have a lot of classes which get not accessed directly through the
source code, but reference to them with the following function:

callFrontend : function(paramMap)
{
  var clazz = qx.Class.getByName(paramMap.clazz);
  clazz[paramMap.method](paramMap);
}

The class, method and parameters came from a backend call.
The problem is, that the build version did not include the classes,
referenced with this function.

Is there something I can do instead of using the make setting
"APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require" and add each
class.
I've also tried "APPLICATION_COMPLETE_BUILD = true" but then my .js file
grows to more than 1,2 MB instead of round about 0,8 MB (seems many
unneeded qooxdoo-classes are included) and all the themes and icons get
copied too.

Thanks for help.

Best regards

Andreas

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

Dirk Wellmann
Hi Andreas,

just enter the needed Classes in your main-class, the build-system will include them:

#require(qvis.PvTimeBarChartCellRenderer)
#require(qvis.PvTimeBarChartHeaderRenderer)

so this classes will be included.

Regards

Dirk

Fink, Andreas schrieb:
Hi,

I have a little problem with the build version of my application.
I have a lot of classes which get not accessed directly through the
source code, but reference to them with the following function:

callFrontend : function(paramMap)
{
  var clazz = qx.Class.getByName(paramMap.clazz);
  clazz[paramMap.method](paramMap);
}

The class, method and parameters came from a backend call.
The problem is, that the build version did not include the classes,
referenced with this function.

Is there something I can do instead of using the make setting
"APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require" and add each
class.
I've also tried "APPLICATION_COMPLETE_BUILD = true" but then my .js file
grows to more than 1,2 MB instead of round about 0,8 MB (seems many
unneeded qooxdoo-classes are included) and all the themes and icons get
copied too.

Thanks for help.

Best regards

Andreas

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

  


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

Fink, Andreas
In reply to this post by Fink, Andreas
Ok, that's another solution which is new to me... but I also don't want
to use ;)
It's nearly the same as the make setting I mentioned.

The classes I'm using with the function (see below) getting more and
more over time and I not really want to manually add each one in a make-
or js-file (of course I could).
My hope is that there is another setting I'm not familiar with,
something where I can use wildcards for example
"APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require
reform.Application:reform.dynamicClasses.*" (I know, this doesn't work
I've tried it :D).
Or a make setting which only add ALL custom files in the build-version
without defining each one by hand but exclude the unneeded qooxdoo
classes.

Of course if there is nothing like this I've to use one of the solutions
I mentioned or that one you mentioned. All work, but are not really nice
to use in my case. :)

Best regards

Andreas

------------------------------------------------------------------------
-------------------------------------------------------------

Von: [hidden email]
[mailto:[hidden email]] Im Auftrag von Dirk
Wellmann
Gesendet: Donnerstag, 31. Juli 2008 16:15
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] complete custom build

Hi Andreas,

just enter the needed Classes in your main-class, the build-system will
include them:

#require(qvis.PvTimeBarChartCellRenderer)
#require(qvis.PvTimeBarChartHeaderRenderer)

so this classes will be included.

Regards

Dirk

Fink, Andreas schrieb:
Hi,

I have a little problem with the build version of my application.
I have a lot of classes which get not accessed directly through the
source code, but reference to them with the following function:

callFrontend : function(paramMap)
{
  var clazz = qx.Class.getByName(paramMap.clazz);
  clazz[paramMap.method](paramMap);
}

The class, method and parameters came from a backend call.
The problem is, that the build version did not include the classes,
referenced with this function.

Is there something I can do instead of using the make setting
"APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require" and add each
class.
I've also tried "APPLICATION_COMPLETE_BUILD = true" but then my .js file
grows to more than 1,2 MB instead of round about 0,8 MB (seems many
unneeded qooxdoo-classes are included) and all the themes and icons get
copied too.

Thanks for help.

Best regards

Andreas

------------------------------------------------------------------------
-
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

 


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

Dirk Wellmann
Hi Anderas,

what about a nice awk - Script doing the job for you with the help of
the find - command?

like this, witch output has to be included at some point:

find ./qx/ui/table/cellrenderer -name '*.js' -print | awk '{
printf("#required \"%s\"\n", substr($1,3))}'

output of this Example exec at qooxdoo/frontend/framework/source/class  
would be:
#required "qx/ui/table/cellrenderer/Icon.js"
#required "qx/ui/table/cellrenderer/Html.js"
#required "qx/ui/table/cellrenderer/Conditional.js"
#required "qx/ui/table/cellrenderer/Abstract.js"
#required "qx/ui/table/cellrenderer/Password.js"
#required "qx/ui/table/cellrenderer/Image.js"
#required "qx/ui/table/cellrenderer/Date.js"
#required "qx/ui/table/cellrenderer/Boolean.js"
#required "qx/ui/table/cellrenderer/Replace.js"
#required "qx/ui/table/cellrenderer/Default.js"
#required "qx/ui/table/cellrenderer/Number.js"
#required "qx/ui/table/cellrenderer/Dynamic.js"
#required "qx/ui/table/cellrenderer/String.js"
#required "qx/ui/table/cellrenderer/__init__.js"

now the job would be to include that into the makefile and to inject the
code in one file included in your Project.

If you need further assistence in customizing the build-process, feel
free to contact me by pm.

Regards Dirk

Fink, Andreas schrieb:

> Ok, that's another solution which is new to me... but I also don't want
> to use ;)
> It's nearly the same as the make setting I mentioned.
>
> The classes I'm using with the function (see below) getting more and
> more over time and I not really want to manually add each one in a make-
> or js-file (of course I could).
> My hope is that there is another setting I'm not familiar with,
> something where I can use wildcards for example
> "APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require
> reform.Application:reform.dynamicClasses.*" (I know, this doesn't work
> I've tried it :D).
> Or a make setting which only add ALL custom files in the build-version
> without defining each one by hand but exclude the unneeded qooxdoo
> classes.
>
> Of course if there is nothing like this I've to use one of the solutions
> I mentioned or that one you mentioned. All work, but are not really nice
> to use in my case. :)
>
> Best regards
>
> Andreas
>
>  


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

Fink, Andreas
Hi Dirk,

thanks for your Help. I thing with this script it is possible to do what I want.
I'll give it a try. If I expect right, I also have to check if the class is also included to avoid multiple includes but I think this is possible.
Thanks again and if I'm running into trouble with customizing the build-process I'll contact you. :)

Greetings,
Andreas

-----Urspr√ľngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Dirk Wellmann
Gesendet: Donnerstag, 31. Juli 2008 19:02
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] complete custom build

Hi Anderas,

what about a nice awk - Script doing the job for you with the help of
the find - command?

like this, witch output has to be included at some point:

find ./qx/ui/table/cellrenderer -name '*.js' -print | awk '{
printf("#required \"%s\"\n", substr($1,3))}'

output of this Example exec at qooxdoo/frontend/framework/source/class  
would be:
#required "qx/ui/table/cellrenderer/Icon.js"
#required "qx/ui/table/cellrenderer/Html.js"
#required "qx/ui/table/cellrenderer/Conditional.js"
#required "qx/ui/table/cellrenderer/Abstract.js"
#required "qx/ui/table/cellrenderer/Password.js"
#required "qx/ui/table/cellrenderer/Image.js"
#required "qx/ui/table/cellrenderer/Date.js"
#required "qx/ui/table/cellrenderer/Boolean.js"
#required "qx/ui/table/cellrenderer/Replace.js"
#required "qx/ui/table/cellrenderer/Default.js"
#required "qx/ui/table/cellrenderer/Number.js"
#required "qx/ui/table/cellrenderer/Dynamic.js"
#required "qx/ui/table/cellrenderer/String.js"
#required "qx/ui/table/cellrenderer/__init__.js"

now the job would be to include that into the makefile and to inject the
code in one file included in your Project.

If you need further assistence in customizing the build-process, feel
free to contact me by pm.

Regards Dirk

Fink, Andreas schrieb:

> Ok, that's another solution which is new to me... but I also don't want
> to use ;)
> It's nearly the same as the make setting I mentioned.
>
> The classes I'm using with the function (see below) getting more and
> more over time and I not really want to manually add each one in a make-
> or js-file (of course I could).
> My hope is that there is another setting I'm not familiar with,
> something where I can use wildcards for example
> "APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require
> reform.Application:reform.dynamicClasses.*" (I know, this doesn't work
> I've tried it :D).
> Or a make setting which only add ALL custom files in the build-version
> without defining each one by hand but exclude the unneeded qooxdoo
> classes.
>
> Of course if there is nothing like this I've to use one of the solutions
> I mentioned or that one you mentioned. All work, but are not really nice
> to use in my case. :)
>
> Best regards
>
> Andreas
>
>  


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

thron7
In reply to this post by Fink, Andreas

> "APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require
> reform.Application:reform.dynamicClasses.*" (I know, this doesn't work
> I've tried it :D).
>  

Try "APPLICATION_ADDITIONAL_BUILD_OPTIONS =
--include=reform.dynamicClasses.*"

T.


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: complete custom build

Fink, Andreas
Works perfekt. Exact what I was looking for.
Thanks a lot!
 
Greetings
Andreas

________________________________

Von: [hidden email] im Auftrag von thron7
Gesendet: Fr 01.08.2008 11:00
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] complete custom build




> "APPLICATION_ADDITIONAL_BUILD_OPTIONS = --add-require
> reform.Application:reform.dynamicClasses.*" (I know, this doesn't work
> I've tried it :D).
>  

Try "APPLICATION_ADDITIONAL_BUILD_OPTIONS =
--include=reform.dynamicClasses.*"

T.


-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

winmail.dat (5K) Download Attachment