mpvreddy123 / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

ant build-all failed #415

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. checkout source
2. ant build-all
3.

What is the expected output?
build succeeded.

What do you see instead?
     [echo] 
     [echo]             Created profile js-Files
     [echo]         
     [java] [ERROR] 4119:41:unterminated string literal
     [java] [ERROR] 4119:41:syntax error
     [java] [ERROR] 4120:20:syntax error
     [java] [ERROR] 4121:7:syntax error
     [java] [ERROR] 4122:21:syntax error
     [java] [ERROR] 4123:11:syntax error
     [java] [ERROR] 4124:6:syntax error
     [java] [ERROR] 4126:3:syntax error
     [java] [ERROR] 4127:22:syntax error
     [java] [ERROR] 4135:12:syntax error
     [java] [ERROR] 4136:13:syntax error
     [java] [ERROR] 4295:2:syntax error
     [java] [ERROR] 4297:10:syntax error
     [java] [ERROR] 4298:8:syntax error
     [java] [ERROR] 4299:2:syntax error
     [java] [ERROR] 4304:9:syntax error
     [java] [ERROR] 4305:71:missing ; before statement
     [java] [ERROR] 4306:24:missing ; before statement
     [java] [ERROR] 4307:10:syntax error
     [java] [ERROR] 4374:4:syntax error
     [java] [ERROR] 4375:10:syntax error
     [java] [ERROR] 4376:4:syntax error
     [java] [ERROR] 4378:2:syntax error
     [java] [ERROR] 4380:32:syntax error
     [java] [ERROR] 4458:10:syntax error
     [java] [ERROR] 4463:2:syntax error
     [java] [ERROR] 4469:16:syntax error
     [java] [ERROR] 4510:10:syntax error
     [java] [ERROR] 4512:9:syntax error
     [java] [ERROR] 4513:3:syntax error
     [java] [ERROR] 4516:22:missing ; before statement
     [java] [ERROR] 4517:9:syntax error
     [java] [ERROR] 4518:3:syntax error
     [java] [ERROR] 4519:3:syntax error
     [java] [ERROR] 4528:25:syntax error
     [java] [ERROR] 4529:90:missing ; before statement
     [java] [ERROR] 4530:33:missing ; before statement
     [java] [ERROR] 4535:4:syntax error
     [java] [ERROR] 4537:4:syntax error
     [java] [ERROR] 4538:9:syntax error
     [java] [ERROR] 4539:33:missing ; before statement
     [java] [ERROR] 4541:4:syntax error
     [java] [ERROR] 4543:4:syntax error
     [java] [ERROR] 4545:2:syntax error
     [java] [ERROR] 4552:21:syntax error
     [java] [ERROR] 4558:9:invalid return
     [java] [ERROR] 4559:2:syntax error
     [java] [ERROR] 4566:26:syntax error
     [java] [ERROR] 4567:10:syntax error
     [java] [ERROR] 4567:53:missing ; before statement
     [java] [ERROR] 4568:56:missing ; before statement
     [java] [ERROR] 4570:4:syntax error
     [java] [ERROR] 4572:9:invalid return
     [java] [ERROR] 4573:3:syntax error
     [java] [ERROR] 4575:28:syntax error
     [java] [ERROR] 4581:11:invalid return
     [java] [ERROR] 4583:11:invalid return
     [java] [ERROR] 4586:10:invalid return
     [java] [ERROR] 4588:2:syntax error
     [java] [ERROR] 4594:7:syntax error
     [java] [ERROR] 4595:29:missing ; before statement
     [java] [ERROR] 4596:10:missing ; before statement
     [java] [ERROR] 4598:10:unlabelled break must be inside loop or switch
     [java] [ERROR] 4600:8:syntax error
     [java] [ERROR] 4610:10:unlabelled break must be inside loop or switch
     [java] [ERROR] 4612:12:not a valid default namespace statement. 
Syntax is: default xml namespace = EXPRESSION;
     [java] [ERROR] 4615:3:syntax error
     [java] [ERROR] 4616:3:syntax error
     [java] [ERROR] 4618:16:syntax error
     [java] [ERROR] 4619:28:missing ; before statement
     [java] [ERROR] 4620:10:missing ; before statement
     [java] [ERROR] 4622:8:syntax error
     [java] [ERROR] 4623:58:missing ; before statement
     [java] [ERROR] 4629:5:syntax error
     [java] [ERROR] 4632:11:not a valid default namespace statement. 
Syntax is: default xml namespace = EXPRESSION;
     [java] [ERROR] 4635:3:syntax error
     [java] [ERROR] 4636:3:syntax error
     [java] [ERROR] 4638:18:syntax error
     [java] [ERROR] 4639:28:missing ; before statement
     [java] [ERROR] 4640:10:missing ; before statement
     [java] [ERROR] 4642:8:syntax error
     [java] [ERROR] 4643:58:missing ; before statement
     [java] [ERROR] 4649:5:syntax error
     [java] [ERROR] 4652:11:not a valid default namespace statement. 
Syntax is: default xml namespace = EXPRESSION;
     [java] [ERROR] 4655:3:syntax error
     [java] [ERROR] 4656:3:syntax error
     [java] [ERROR] 4658:9:syntax error
     [java] [ERROR] 4659:28:missing ; before statement
     [java] [ERROR] 4660:10:missing ; before statement
     [java] [ERROR] 4662:8:syntax error
     [java] [ERROR] 4663:39:missing ; before statement
     [java] [ERROR] 4664:11:syntax error
     [java] [ERROR] 4667:5:syntax error
     [java] [ERROR] 4668:10:missing ; before statement
     [java] [ERROR] 4672:49:missing ; before statement
     [java] [ERROR] 4673:11:syntax error
     [java] [ERROR] 4676:5:syntax error
     [java] [ERROR] 4679:2:syntax error
     [java] [ERROR] 4681:7:syntax error
     [java] [ERROR] 4682:22:missing ; before statement
     [java] [ERROR] 4683:9:syntax error
     [java] [ERROR] 4685:3:syntax error
     [java] [ERROR] 4686:3:syntax error
     [java] [ERROR] 4688:7:syntax error
     [java] [ERROR] 4689:23:missing ; before statement
     [java] [ERROR] 4690:9:syntax error
     [java] [ERROR] 4692:3:syntax error
     [java] [ERROR] 4693:3:syntax error
     [java] [ERROR] 4700:23:syntax error
     [java] [ERROR] 4702:10:invalid return
     [java] [ERROR] 4706:10:invalid return
     [java] [ERROR] 4708:10:invalid return
     [java] [ERROR] 4710:2:syntax error
     [java] [ERROR] 4712:14:syntax error
     [java] [ERROR] 4737:9:invalid return
     [java] [ERROR] 4738:2:syntax error
     [java] [ERROR] 4745:23:syntax error
     [java] [ERROR] 4746:9:syntax error
     [java] [ERROR] 4754:9:invalid return
     [java] [ERROR] 4755:2:syntax error
     [java] [ERROR] 4763:18:syntax error
     [java] [ERROR] 4765:2:syntax error
     [java] [ERROR] 4774:15:syntax error
     [java] [ERROR] 4776:2:syntax error
     [java] [ERROR] 4778:11:syntax error
     [java] [ERROR] 4779:3:syntax error
     [java] [ERROR] 1:0:Compilation produced 126 syntax errors.
     [java] org.mozilla.javascript.EvaluatorException: Compilation 
produced 126 syntax errors.
     [java]     at 
com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError
(YUICompressor.java:135)
     [java]     at org.mozilla.javascript.Parser.parse(Parser.java:410)
     [java]     at org.mozilla.javascript.Parser.parse(Parser.java:355)
     [java]     at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse
(JavaScriptCompressor.java:312)
     [java]     at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>
(JavaScriptCompressor.java:533)
     [java]     at com.yahoo.platform.yui.compressor.YUICompressor.main
(YUICompressor.java:112)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown 
Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
     [java]     at java.lang.reflect.Method.invoke(Unknown Source)
     [java]     at com.yahoo.platform.yui.compressor.Bootstrap.main
(Bootstrap.java:20)

BUILD FAILED
E:\oryx\editor\build.xml:214: Java returned: 2

Please provide any additional information below.

Original issue reported on code.google.com by weiwells...@sun.com on 16 Dec 2009 at 5:17

GoogleCodeExporter commented 9 years ago
Hi guys, I'have encountered the same error, can anybody give any clues on that?

Original comment by ken...@gmail.com on 15 Sep 2010 at 6:00

GoogleCodeExporter commented 9 years ago
I haven't checked it, but the log indicates a JS syntax error. However, the 
given excerpt does not tell, where this is located. 
(Unfortunately I will not be able to dig deeper myself soon.)

Original comment by mtku...@googlemail.com on 15 Sep 2010 at 2:59

GoogleCodeExporter commented 9 years ago
Unfortunately, I could not reproduce the problem by checking out and building.
Please, have a look @oryx-editor-trunk\build\editor\oryx.debug.js
and looks at the specific lines mentioned in the error output.

Nevertheless, I have currently no clean system, so I will check this tommorow 
on a clean system.

Original comment by philipp....@student.hpi.uni-potsdam.de on 16 Sep 2010 at 6:57

GoogleCodeExporter commented 9 years ago
I went through the same issue. 
Check the oryx.debug.js, there are specific characters which cannot be 
identified by both ant and YUI codes.
I didn't have time to dig deep enough, so I deleted those chars. Then the build 
job went fine.

Original comment by hufei...@gmail.com on 25 Oct 2010 at 7:17

GoogleCodeExporter commented 9 years ago
yeah, i meet the same problem. when i use yuicompressor.jar to compress the 
oryx.debug.js, it gives 256 syntax errors and the build fail.
Somebody for help? Thanks

Original comment by Hongchao...@gmail.com on 10 Mar 2011 at 7:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i found that we should tell the yuicompressor to use utf-8 explicitly.
modify the editor\build.xml line around line 118 from

<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.2.jar" fork="true" 
failonerror="true" output='${compress.temp}'>
        <arg file='${build}/oryx.debug.js' />
</java>

to

<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.2.jar" fork="true" 
failonerror="true" output='${compress.temp}'>
        <arg line='--charset utf-8' />  #add this line!
        <arg file='${build}/oryx.debug.js' />
</java>

will just work fine.

Original comment by Hongchao...@gmail.com on 10 Mar 2011 at 8:03

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3934.

Original comment by philipp....@student.hpi.uni-potsdam.de on 10 Jun 2011 at 11:15