Small problem when running generate.py build (absent index.html)

View: New views
4 Messages — Rating Filter:   Alert me  

Small problem when running generate.py build (absent index.html)

by Bugzilla from elvanor@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

When I tried to build my app today (first time), I had an initial error because "index.html" was not present in the source folder. I dont have this index.html, and dont need it. I created a dummy empty file just so that the build finished, but is there a way to avoid this problem by configuring something somewhere?

I also had a much more seriours problem, than I analyzed, and which resulted in

http://bugzilla.qooxdoo.org/show_bug.cgi?id=2514

Jean-Noel

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

_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Small problem when running generate.py build (absent index.html)

by Christian Schmidt-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jean-Noel,

If you never want to copy a HTML file, you can remove the "build-files"
job from the run statement of the "build" job.

Use this line off code in your config.json to remove the "build-files"
job from the run statement:
"build" :
{
   "=run" :
   [
     "build-resources",
     "build-script"
  ]
}

I think that's it. (I'm not a generator expert and I would try this first)

Cheers,
Chris

Jean-Noël Rivasseau schrieb:

> Hi all,
>
> When I tried to build my app today (first time), I had an initial
> error because "index.html" was not present in the source folder. I
> dont have this index.html, and dont need it. I created a dummy empty
> file just so that the build finished, but is there a way to avoid this
> problem by configuring something somewhere?
>
> I also had a much more seriours problem, than I analyzed, and which
> resulted in
>
> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2514
>
> Jean-Noel
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>  


--
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
schmidt.christian@...

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Small problem when running generate.py build (absent index.html)

by Bugzilla from elvanor@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Christian, it worked very well. Now for my next problem, I have this in my config.json:

        "libraries":
        {
            "library":
            [
                {
                    "manifest": "Manifest.json",
                    "uri": "http://static.example.com/js/editor/"
                },

                {
                    "manifest": "${QOOXDOO_PATH}framework/Manifest.json",
                    "uri": "http://static.example.com/qooxdoo/framework/"
                },

                {
                    "manifest": "/opt/UploadWidget/Manifest.json",
                    "uri": "http://static.example.com/UploadWidget/"
                }
            ]
        },

The generator correctly picks this up when doing a source, but when doing a build, the loader script does not have the correct URIs. Am I doing something wrong or is this a bug?

Jean-Noel

On Fri, Jun 26, 2009 at 8:33 AM, Christian Schmidt <schmidt.christian@...> wrote:
Hi Jean-Noel,

If you never want to copy a HTML file, you can remove the "build-files"
job from the run statement of the "build" job.

Use this line off code in your config.json to remove the "build-files"
job from the run statement:
"build" :
{
  "=run" :
  [
    "build-resources",
    "build-script"
 ]
}

I think that's it. (I'm not a generator expert and I would try this first)

Cheers,
Chris

Jean-Noël Rivasseau schrieb:
> Hi all,
>
> When I tried to build my app today (first time), I had an initial
> error because "index.html" was not present in the source folder. I
> dont have this index.html, and dont need it. I created a dummy empty
> file just so that the build finished, but is there a way to avoid this
> problem by configuring something somewhere?
>
> I also had a much more seriours problem, than I analyzed, and which
> resulted in
>
> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2514
>
> Jean-Noel
> ------------------------------------------------------------------------



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

_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Small problem when running generate.py build (absent index.html)

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Jean-Noël Rivasseau wrote:

> Thanks Christian, it worked very well. Now for my next problem, I have
> this in my config.json:
>
>         "libraries":
>         {
>             "library":
>             [
>                 {
>                     "manifest": "Manifest.json",
>                     "uri": "http://static.example.com/js/editor/"
>                 },
>
>                 {
>                     "manifest": "${QOOXDOO_PATH}framework/Manifest.json",
>                     "uri": "http://static.example.com/qooxdoo/framework/"
>                 },
>
>                 {
>                     "manifest": "/opt/UploadWidget/Manifest.json",
>                     "uri": "http://static.example.com/UploadWidget/"
>                 }
>             ]
>         },
>
> The generator correctly picks this up when doing a source, but when
> doing a build, the loader script does not have the correct URIs. Am I
> doing something wrong or is this a bug?
>

Jean-Noel,

for the build version, the generator grabs all the necessary parts of
each library and put them together into the build/* directory. So there,
the library boundaries are blurred, all is coalesced into one big,
self-contained application. It wouldn't make much sense to maintain
different URIs for different libraries anymore.

What you can do is tweak the ULRs to the different parts of the build
version, using the compile-dist config key:

"compile-dist" :
{

  "uris" :
  {
    "script"   : "http://static.example.com/myApp/script",
    "resource" : "http://static.example.com/myApp/resource"
  }
}


See
http://qooxdoo.org/documentation/0.8/generator_config_ref#compile-dist 
for details. You could e.g. put this key definition into a custom
"build-script" job, to make it effective when you invoke generate.py build.


HTH,
Thomas

>
> On Fri, Jun 26, 2009 at 8:33 AM, Christian Schmidt
> <schmidt.christian@... <mailto:schmidt.christian@...>> wrote:
>
>     Hi Jean-Noel,
>
>     If you never want to copy a HTML file, you can remove the
>     "build-files"
>     job from the run statement of the "build" job.
>
>     Use this line off code in your config.json to remove the "build-files"
>     job from the run statement:
>     "build" :
>     {
>       "=run" :
>       [
>         "build-resources",
>         "build-script"
>      ]
>     }
>
>     I think that's it. (I'm not a generator expert and I would try
>     this first)
>
>     Cheers,
>     Chris
>
>     Jean-Noël Rivasseau schrieb:
>     > Hi all,
>     >
>     > When I tried to build my app today (first time), I had an initial
>     > error because "index.html" was not present in the source folder. I
>     > dont have this index.html, and dont need it. I created a dummy empty
>     > file just so that the build finished, but is there a way to
>     avoid this
>     > problem by configuring something somewhere?
>     >
>     > I also had a much more seriours problem, than I analyzed, and which
>     > resulted in
>     >
>     > http://bugzilla.qooxdoo.org/show_bug.cgi?id=2514
>     >
>     > Jean-Noel
>     >
>     ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>  

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel