jupiterjs/jquerymx — Issue #88: js jquery/generate/app not working with dir/appname (apps in subdirs)
Author: bigolo
Created: 2011-11-10 09:32:12+00:00
State: open

Looks like there is a problem with the jquery app generator. It works fine to generate an app in the root dir, but returns an error whenever used with with a subdir:

dev:~/mm/jmvc$ ./js jquery/generate/app company/app1
company/funcunit.html
company/qunit.html
org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: company/test/qunit/company/app1_test.js (No such file or directory) (steal/rhino/file.js#210)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:202)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:281)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:200)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3377)
at script(steal/rhino/file.js:210)
at script(steal/generate/generate.js:14)
at script(steal/generate/generate.js:155)
at script(steal/rhino/file.js:275)
at script(steal/generate/generate.js:172)
at script(steal/rhino/file.js:275)
at script(steal/generate/generate.js:172)
at script(steal/rhino/file.js:275)
at script(steal/generate/generate.js:140)
at script(jquery/generate/app:19)
at script(steal/steal.js:697)
at script(steal/steal.js:1325)
at script.require(steal/steal.js:1255)
at script(steal/steal.js:1249)
at script(steal/steal.js:855)
at script.after_Ret(steal/steal.js:1632)
at script(steal/steal.js:1651)
at script(steal/steal.js:1702)
at script(steal/steal.js:1683)
at script(steal/steal.js:1661)
at script(steal/steal.js:1702)
at script(steal/steal.js:1683)
at script(steal/steal.js:1661)
at script(steal/steal.js:752)
at script.load_calling_loaded(steal/steal.js:856)
at script.require_continue_check(steal/steal.js:1260)
at script(steal/steal.js:1325)
at script.require(steal/steal.js:1255)
at script(steal/steal.js:1249)
at script(steal/steal.js:855)
at script.after_Ret(steal/steal.js:1632)
at script(steal/steal.js:838)
at script.load_calling_loaded(steal/steal.js:856)
at script.require_continue_check(steal/steal.js:1260)
at script(steal/rhino/rhino.js:13)
at script.require(steal/steal.js:1255)
at script(steal/steal.js:1249)
at script(steal/steal.js:855)
at script.after_Ret(steal/steal.js:1632)
at script(steal/steal.js:834)
at script(steal/steal.js:49)
at script(steal/steal.js:833)
at script(steal/steal.js:1534)
at script(steal/steal.js:1538)
at script.steal(steal/steal.js:409)
at script(jquery/generate/app:10)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:178)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:564)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:486)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:452)
at org.mozilla.javascript.tools.shell.Global.load(Global.java:244)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
at script(:1)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:564)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:122)
at org.mozilla.javascript.Context.call(Context.java:515)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
at org.mozilla.javascript.tools.shell.Main.processOptions(Main.java:293)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:170)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Caused by: java.io.FileNotFoundException: company/test/qunit/company/app1_test.js (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:194)
... 28 more