1.7.0 Custom build within a dot directory not working

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

1.7.0 Custom build within a dot directory not working

jdoherty
I am trying to run a custom build where one of the directories in the path begins with a dot and I am getting an "error(303) Missing include module for layer. missing: dojo/main; layer: 0"

The build works fine if I rename the dotted directory to not have the dot however due to our build system it must be built within a path like this.

Here is my profile file

var profile = {
        basePath:"./1.7.0",
        packages : [{
                name : "dojo",
                location : "./dojo"
        }]
}

and the command I run

./build.sh -p ../../../test -r

The output:

processing profile resource /home/user/tmp/.ui/dojoroot/test.profile.js
info(107) Package Version: package: dojo; version: 1.7.0
processing profile resource /home/user/tmp/.ui/dojoroot/1.7.0/dojo/dojo.profile.js
discovering resources...
starting reading resources...
starting processing raw resource content...
starting tokenizing resource...
starting processing resource tokens...
starting parsing resource...
starting processing resource AST...
starting executing global optimizations...
starting writing resources...
error(303) Missing include module for layer. missing: dojo/main; layer: 0
error(303) Missing include module for layer. missing: dojo/main; layer: 0
starting cleaning up...
waiting for the optimizer runner to finish...
starting reporting...
Report written to /home/user/tmp/.ui/dojoroot/release/build-report.txt
Process finished normally.
        errors: 2
        warnings: 0
        build time: 0.085 seconds
Reply | Threaded
Open this post in threaded view
|

Re: 1.7.0 Custom build within a dot directory not working

yuanpeng.zhang
dot might be the reserved. The name space like dojox.analytics will be interpreted as dojox/analytics to get the real js files from. I am not sure how to change the builder to neglect that dot. But were you able to change it temporarily to dir name without dot and then change it back to original name after the build?

On Tue, Nov 1, 2011 at 3:06 AM, jdoherty <[hidden email]> wrote:
I am trying to run a custom build where one of the directories in the path
begins with a dot and I am getting an "error(303) Missing include module for
layer. missing: dojo/main; layer: 0"

The build works fine if I rename the dotted directory to not have the dot
however due to our build system it must be built within a path like this.

Here is my profile file

var profile = {
       basePath:"./1.7.0",
       packages : [{
               name : "dojo",
               location : "./dojo"
       }]
}

and the command I run

./build.sh -p ../../../test -r

The output:

processing profile resource /home/user/tmp/.ui/dojoroot/test.profile.js
info(107) Package Version: package: dojo; version: 1.7.0
processing profile resource
/home/user/tmp/.ui/dojoroot/1.7.0/dojo/dojo.profile.js
discovering resources...
starting reading resources...
starting processing raw resource content...
starting tokenizing resource...
starting processing resource tokens...
starting parsing resource...
starting processing resource AST...
starting executing global optimizations...
starting writing resources...
error(303) Missing include module for layer. missing: dojo/main; layer: 0
error(303) Missing include module for layer. missing: dojo/main; layer: 0
starting cleaning up...
waiting for the optimizer runner to finish...
starting reporting...
Report written to /home/user/tmp/.ui/dojoroot/release/build-report.txt
Process finished normally.
       errors: 2
       warnings: 0
       build time: 0.085 seconds


--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/1-7-0-Custom-build-within-a-dot-directory-not-working-tp3468672p3468672.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

[hidden email]
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

[hidden email]
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: 1.7.0 Custom build within a dot directory not working

saihegde
That was helpful... Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: 1.7.0 Custom build within a dot directory not working

gkk1969
Hi,

I'm having the same problem. Could you post your solution if you have one?

I have layers defined like this:

    layers: {    
        "dojo/dojo": {
            include: [ 'dojo/dojo', 'dojo/i18n', 'dojo/domReady', 'rpoAllocs/main', 'rpoAllocs/run' ],
            customBase: true,
            boot: true
        }
    },

And I get:

error(303) Missing include module for layer.
        missing: rpoAllocs/main; layer: dojo/dojo
        missing: rpoAllocs/run; layer: dojo/dojo
        missing: rpoAllocs/main; layer: 0
        missing: rpoAllocs/run; layer: 0
        missing: rpoAllocs/main; layer: 0
        missing: rpoAllocs/run; layer: 0

I have a Win32 box, dojo 1.7.2, and I use Java in build.bat. I tried using node.exe. but I'm having problems with paths construction.

I haven't been able to find a working example of using the dojo build system in 1.7.2. I find this really strange. Could anyone help me? Thanks.

-gkk