Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag 1.3.pre1 Ant Build Failure on rhino-env target #32

Open
rishikhds opened this issue Apr 29, 2011 · 3 comments
Open

Tag 1.3.pre1 Ant Build Failure on rhino-env target #32

rishikhds opened this issue Apr 29, 2011 · 3 comments

Comments

@rishikhds
Copy link

I checked out the master branch and ran the build. Then I tried the tag and ran the build for some reason they are both failing. I know the reason but fixing that leads to more failures: (See In Attachment: Ant Build Log # Run 1)

env-js/specs/platform/rhino.js has invalid path to dependencies
#5 load('dist/platform/core.js');
#6 load('dist/platform/rhino.js');
#7 load('dist/console.js');

/dist should actually point to envjs folder. I fixed it here but that lead to more problems. (See In Attachment: Ant Build Log # Run 2)

I don't have the time or expertise to fix the problem at the moment, would appreciate if someone could point me to the fix.

Thanks,
Rishik

Ant Build Log # Run 1

Buildfile: C:\Users\rdhar\env-js\build.xml
[echo] {
[echo] 'BUILD_PROPERTIES': {
[echo] 'PROJECT': 'env-js',
[echo] 'BUILD_MAJOR': '1',
[echo] 'BUILD_MINOR': '3',
[echo] 'BUILD_ID': 'pre01',
[echo] 'BUILD_VERSION': '1.3.pre01',
[echo] 'BUILD': 'env-js.1.3.pre01',
[echo] 'VERSION': 'env-js.1.3.pre01 20110429'
[echo] },
[echo] 'ENVIRONMENT':{
[echo] 'BASEDIR': 'C:\Users\rdhar\env-js',
[echo] 'SRC_DIR': 'C:\Users\rdhar\env-js\src',
[echo] 'TOOLS_DIR': 'C:\Users\rdhar\env-js\tools',
[echo] 'RHINO_JAR': 'C:\Users\rdhar\env-js\rhino\js.jar',
[echo] 'PREFIX': 'C:\Users\rdhar\env-js\envjs',
[echo] 'DOCS_DIR': 'C:\Users\rdhar\env-js\envjs\docs',
[echo] 'TEST_DIR': 'C:\Users\rdhar\env-js\specs',
[echo] 'DIST_DIR': 'C:\Users\rdhar\env-js\envjs',
[echo] 'HAS_LOCAL': '${HAS_LOCAL}'
[echo] },
[echo] 'DISTRIBUTABLES': {
[echo] 'CORE_DIST': 'C:\Users\rdhar\env-js\envjs\platform\core.js',
[echo] 'RHINO_DIST': 'C:\Users\rdhar\env-js\envjs\platform\rhino.js',
[echo] 'NODE_DIST': 'C:\Users\rdhar\env-js\envjs\platform\node.js',
[echo] 'CONSOLE_DIST': 'C:\Users\rdhar\env-js\envjs\console.js',
[echo] 'DOM_DIST': 'C:\Users\rdhar\env-js\envjs\dom.js',
[echo] 'EVENT_DIST': 'C:\Users\rdhar\env-js\envjs\event.js',
[echo] 'TIMER_DIST': 'C:\Users\rdhar\env-js\envjs\timer.js',
[echo] 'HTML_DIST': 'C:\Users\rdhar\env-js\envjs\html.js',
[echo] 'PARSER_DIST': 'C:\Users\rdhar\env-js\envjs\parser.js',
[echo] 'XHR_DIST': 'C:\Users\rdhar\env-js\envjs\xhr.js',
[echo] 'CSS_DIST': 'C:\Users\rdhar\env-js\envjs\css.js',
[echo] 'WINDOW_DIST': 'C:\Users\rdhar\env-js\envjs\window.js',
[echo] 'ENV_DIST': 'C:\Users\rdhar\env-js\envjs\env.js',
[echo] 'ENV_RHINO': 'C:\Users\rdhar\env-js\envjs\env.rhino.js',
[echo] 'ENV_NODE': 'C:\Users\rdhar\env-js\envjs\env.node.js',
[echo] 'ENV_SPYDERMONKEY':'C:\Users\rdhar\env-js\envjs\env.spydermonkey.js',
[echo] 'ENV_RUBYRACER':'C:\Users\rdhar\env-js\envjs\env.rubyracer.js'
[echo] }
[echo] }
core-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\core.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\core.js
rhino-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\rhino.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\rhino.js
node-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\node.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\node.js
spydermonkey-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\spydermonkey.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\spydermonkey.js
rubyracer-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\rubyracer.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\rubyracer.js
johnson-env:
[echo] Building C:\Users\rdhar\env-js\envjs\platform\johnson.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\johnson.js
console:
[echo] Building C:\Users\rdhar\env-js\envjs\console.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\console.js
dom:
[echo] Building C:\Users\rdhar\env-js\envjs\dom.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\dom.js
event:
[echo] Building C:\Users\rdhar\env-js\envjs\event.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\event.js
timer:
[echo] Building C:\Users\rdhar\env-js\envjs\timer.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\timer.js
html:
[echo] Building C:\Users\rdhar\env-js\envjs\html.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\html.js
parser:
[echo] Building C:\Users\rdhar\env-js\envjs\parser.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\parser.js
xhr:
[echo] Building C:\Users\rdhar\env-js\envjs\xhr.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\xhr.js
css:
[echo] Building C:\Users\rdhar\env-js\envjs\css.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\css.js
window:
[echo] Building C:\Users\rdhar\env-js\envjs\window.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\window.js
zip:
rhino-env-spec:
[echo] Executing Rhino Env Spec
[java] js: Couldn't read source file "dist/platform/core.js: dist\platform\core.js (The system cannot find the path specified)".
[java] js: Couldn't read source file "dist/platform/rhino.js: dist\platform\rhino.js (The system cannot find the path specified)".
[java] js: Couldn't read source file "dist/console.js: dist\console.js (The system cannot find the path specified)".
[java] js: uncaught JavaScript runtime exception: ReferenceError: "Envjs" is not defined.

BUILD FAILED
C:\Users\rdhar\env-js\build.xml:212: Java returned: 3

Ant Build Log # Run 2

Buildfile: build.xml
[echo] {
[echo] 'BUILD_PROPERTIES': {
[echo] 'PROJECT': 'env-js',
[echo] 'BUILD_MAJOR': '1',
[echo] 'BUILD_MINOR': '3',
[echo] 'BUILD_ID': 'pre01',
[echo] 'BUILD_VERSION': '1.3.pre01',
[echo] 'BUILD': 'env-js.1.3.pre01',
[echo] 'VERSION': 'env-js.1.3.pre01 20110429'
[echo] },
[echo] 'ENVIRONMENT':{
[echo] 'BASEDIR': 'C:\Users\rdhar\env-js',
[echo] 'SRC_DIR': 'C:\Users\rdhar\env-js\src',
[echo] 'TOOLS_DIR': 'C:\Users\rdhar\env-js\tools',
[echo] 'RHINO_JAR': 'C:\Users\rdhar\env-js\rhino\js.jar',
[echo] 'PREFIX': 'C:\Users\rdhar\env-js\envjs',
[echo] 'DOCS_DIR': 'C:\Users\rdhar\env-js\envjs\docs',
[echo] 'TEST_DIR': 'C:\Users\rdhar\env-js\specs',
[echo] 'DIST_DIR': 'C:\Users\rdhar\env-js\envjs',
[echo] 'HAS_LOCAL': '${HAS_LOCAL}'
[echo] },
[echo] 'DISTRIBUTABLES': {
[echo] 'CORE_DIST': 'C:\Users\rdhar\env-js\envjs\platform\core.js',
[echo] 'RHINO_DIST': 'C:\Users\rdhar\env-js\envjs\platform\rhino.js',
[echo] 'NODE_DIST': 'C:\Users\rdhar\env-js\envjs\platform\node.js',
[echo] 'CONSOLE_DIST': 'C:\Users\rdhar\env-js\envjs\console.js',
[echo] 'DOM_DIST': 'C:\Users\rdhar\env-js\envjs\dom.js',
[echo] 'EVENT_DIST': 'C:\Users\rdhar\env-js\envjs\event.js',
[echo] 'TIMER_DIST': 'C:\Users\rdhar\env-js\envjs\timer.js',
[echo] 'HTML_DIST': 'C:\Users\rdhar\env-js\envjs\html.js',
[echo] 'PARSER_DIST': 'C:\Users\rdhar\env-js\envjs\parser.js',
[echo] 'XHR_DIST': 'C:\Users\rdhar\env-js\envjs\xhr.js',
[echo] 'CSS_DIST': 'C:\Users\rdhar\env-js\envjs\css.js',
[echo] 'WINDOW_DIST': 'C:\Users\rdhar\env-js\envjs\window.js',
[echo] 'ENV_DIST': 'C:\Users\rdhar\env-js\envjs\env.js',
[echo] 'ENV_RHINO': 'C:\Users\rdhar\env-js\envjs\env.rhino.js',
[echo] 'ENV_NODE': 'C:\Users\rdhar\env-js\envjs\env.node.js',
[echo] 'ENV_SPYDERMONKEY':'C:\Users\rdhar\env-js\envjs\env.spydermonkey.js',
[echo] 'ENV_RUBYRACER':'C:\Users\rdhar\env-js\envjs\env.rubyracer.js'
[echo] }
[echo] }

core-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\core.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\core.js
[echo]

rhino-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\rhino.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\rhino.js
[echo]

node-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\node.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\node.js
[echo]

spydermonkey-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\spydermonkey.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\spydermonkey.js
[echo]

rubyracer-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\rubyracer.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\rubyracer.js
[echo]

johnson-env:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\platform\johnson.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\platform\johnson.js
[echo]

console:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\console.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\console.js
[echo]

dom:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\dom.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\dom.js
[echo]

event:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\event.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\event.js
[echo]

timer:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\timer.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\timer.js
[echo]

html:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\html.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\html.js
[echo]

parser:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\parser.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\parser.js
[echo]

xhr:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\xhr.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\xhr.js
[echo]

css:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\css.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\css.js
[echo]

window:
[echo]
[echo] Building C:\Users\rdhar\env-js\envjs\window.js
[echo] Finished Building C:\Users\rdhar\env-js\envjs\window.js
[echo]

zip:

rhino-env-spec:
[echo]
[echo] Executing Rhino Env Spec
[java] js: uncaught JavaScript runtime exception: ReferenceError: "exports" is not defined.
[java]
[java] js: uncaught JavaScript runtime exception: ReferenceError: "require" is not defined.
[java]
[java] js: uncaught JavaScript runtime exception: ReferenceError: "require" is not defined.
[java]
[java] js: uncaught JavaScript runtime exception: TypeError: Cannot call method "onExit" of undefined
[java]

BUILD FAILED
C:\Users\rdhar\env-js\build.xml:212: Java returned: 3

Total time: 1 second

@bunnymatic
Copy link

i'm running into the same issue trying to get env-js built with _Element instead of Element so that i can use it with new versions of prototype. I think the link from dist to envjs should be fine. I'd love to know if anyone else has figured out how to get around these issues. I'm currently getting this report from the rhino specs using version 1.3pre03


rhino-env-spec:
     [echo] 
     [echo] Executing Rhino Env Spec
     [java] js: uncaught JavaScript runtime exception: ReferenceError: "exports" is not defined.
     [java] 
     [java] js: uncaught JavaScript runtime exception: ReferenceError: "require" is not defined.
     [java] 
     [java] js: uncaught JavaScript runtime exception: ReferenceError: "require" is not defined.
     [java] 
     [java] js: uncaught JavaScript runtime exception: TypeError: Cannot call method "config" of undefined
     [java] 
     [java] js: uncaught JavaScript runtime exception: TypeError: Cannot call method "onExit" of undefined
     [java] 
 

@bunnymatic
Copy link

on a related note, it seems like the specs may not be requiring things in the right order - i found that core-env-spec also fails for what seems like a possibly related reason


core-env-spec:
     [echo] 
     [echo] Executing Core Env Spec
     [java] js: uncaught JavaScript runtime exception: ReferenceError: "require" is not defined.
     [java] 

@robrez
Copy link

robrez commented Jun 11, 2014

I'm still unable to build this. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants