You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Tigran Najaryan <ti...@gmail.com> on 2013/04/03 16:09:11 UTC
ASJS Publisher error
Hi,
I downloaded and built develop branch of Flex SDK (successful), then built
falcon and falconjx (successful), adjusted build.properties in the ASJS
directory and then tried to publish the sample using ASJS publisher using
the following command line as advised in the README:
ant -Dproject.main.file=../examples/VanillaSDK_POC/src/Example.as
However I get errors at both falconJx and closureBuilding steps which I do
not understand how to fix. Can anyone advise what am I doing wrong?
Thanks,
Tigran.
Full output of ASJS publisher with the error message below:
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher>ant
-Dproject.main.file=../examples/VanillaSDK_POC/src/Example.as
Buildfile:
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml
cleanIntermediate:
cleanRelease:
clean:
[echo] Delete 'intermediate' and 'release' directories
createDirs:
[echo] Create 'intermediate' and 'release' directory structure
[mkdir] Created dir:
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate
[mkdir] Created dir:
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-release
prepareOutput:
[echo]
[echo] Creating 'intermediate' and 'release' target
directory requirements
[echo]
[copy] Copying 1745 files to
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate\goog
[copy] Copied 133 empty directories to 16 empty directories under
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate\go
og
[copy] Copying 15 files to
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate\goog_thirdParty
[copy] Copied 13 empty directories to 1 empty directory under
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate\goog_t
hirdParty
[copy] Copying 7 files to
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
OC\js-intermediate\VanillaSDK
ifWindows:
ifOtherOS:
falconJx:
[echo] Compiling the AS project into intermediate JS
[exec] Using Flex SDK:
D:\WORK\Projects\ApacheFlex\repo\sdk\branches\develop
[exec] Exception in thread "main"
java.lang.UnsupportedOperationException
[exec] at
org.apache.flex.compiler.internal.driver.as.ASBackend.getSourceFileHandlerIn
stance(ASBackend.java:70)
[exec] at
org.apache.flex.compiler.clients.MXMLJSC.<init>(MXMLJSC.java:201)
[exec] at
org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:169)
[exec] Result: 1
calculateDependencies:
[echo] Calculating dependencies and writing them to 'deps.js'
closureBuilding:
[echo] Creating combined and compiled output JS
[exec]
D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
uild/closurebuilder.py: Scanning paths...
[exec]
D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
uild/closurebuilder.py: 869 sources scanned.
[exec]
D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
uild/closurebuilder.py: Building dependency tree..
[exec] Traceback (most recent call last):
[exec] File
"D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
build/closurebuilder.py", line 256, in <module>
[exec] main()
[exec] File
"D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
build/closurebuilder.py", line 223, in main
[exec] deps = [base] + tree.GetDependencies(input_namespaces)
[exec] File
"D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
build\depstree.py", line 80, in GetDependencies
[exec] namespace, [], self._provides_map, []):
[exec] File
"D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
build\depstree.py", line 118, in _ResolveDependencies
[exec] raise NamespaceNotFoundError(required_namespace)
[exec] depstree.NamespaceNotFoundError: Namespace "Example" never
provided.
BUILD FAILED
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml:1
40: The following error occurred while executing this line:
D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml:6
6: exec returned: 1
Total time: 8 seconds
Re: ASJS Publisher error
Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ah, yes, the ASJS Publisher. My bad... I never updated that. I moved
the functionality it provided into FalconJx, so building a project
using that should also provide you with a 'debug' and 'release' build.
So, the Publisher is obsolete, I'll remove it a.s.a.p.
EdB
On Wed, Apr 3, 2013 at 9:09 AM, Tigran Najaryan <ti...@gmail.com> wrote:
> Hi,
>
> I downloaded and built develop branch of Flex SDK (successful), then built
> falcon and falconjx (successful), adjusted build.properties in the ASJS
> directory and then tried to publish the sample using ASJS publisher using
> the following command line as advised in the README:
>
> ant -Dproject.main.file=../examples/VanillaSDK_POC/src/Example.as
>
> However I get errors at both falconJx and closureBuilding steps which I do
> not understand how to fix. Can anyone advise what am I doing wrong?
>
> Thanks,
> Tigran.
>
>
> Full output of ASJS publisher with the error message below:
>
>
>
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher>ant
> -Dproject.main.file=../examples/VanillaSDK_POC/src/Example.as
> Buildfile:
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml
>
> cleanIntermediate:
>
> cleanRelease:
>
> clean:
> [echo] Delete 'intermediate' and 'release' directories
>
> createDirs:
> [echo] Create 'intermediate' and 'release' directory structure
> [mkdir] Created dir:
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate
> [mkdir] Created dir:
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-release
>
> prepareOutput:
> [echo]
> [echo] Creating 'intermediate' and 'release' target
> directory requirements
> [echo]
> [copy] Copying 1745 files to
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate\goog
> [copy] Copied 133 empty directories to 16 empty directories under
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate\go
> og
> [copy] Copying 15 files to
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate\goog_thirdParty
> [copy] Copied 13 empty directories to 1 empty directory under
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate\goog_t
> hirdParty
> [copy] Copying 7 files to
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\examples\VanillaSDK_P
> OC\js-intermediate\VanillaSDK
>
> ifWindows:
>
> ifOtherOS:
>
> falconJx:
> [echo] Compiling the AS project into intermediate JS
> [exec] Using Flex SDK:
> D:\WORK\Projects\ApacheFlex\repo\sdk\branches\develop
> [exec] Exception in thread "main"
> java.lang.UnsupportedOperationException
> [exec] at
> org.apache.flex.compiler.internal.driver.as.ASBackend.getSourceFileHandlerIn
> stance(ASBackend.java:70)
> [exec] at
> org.apache.flex.compiler.clients.MXMLJSC.<init>(MXMLJSC.java:201)
> [exec] at
> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:169)
> [exec] Result: 1
>
> calculateDependencies:
> [echo] Calculating dependencies and writing them to 'deps.js'
>
> closureBuilding:
> [echo] Creating combined and compiled output JS
> [exec]
> D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
> uild/closurebuilder.py: Scanning paths...
> [exec]
> D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
> uild/closurebuilder.py: 869 sources scanned.
> [exec]
> D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\b
> uild/closurebuilder.py: Building dependency tree..
> [exec] Traceback (most recent call last):
> [exec] File
> "D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
> build/closurebuilder.py", line 256, in <module>
> [exec] main()
> [exec] File
> "D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
> build/closurebuilder.py", line 223, in main
> [exec] deps = [base] + tree.GetDependencies(input_namespaces)
> [exec] File
> "D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
> build\depstree.py", line 80, in GetDependencies
> [exec] namespace, [], self._provides_map, []):
> [exec] File
> "D:\WORK\Projects\ApacheFlex\dependencies\GoogleClosure\library\closure\bin\
> build\depstree.py", line 118, in _ResolveDependencies
> [exec] raise NamespaceNotFoundError(required_namespace)
> [exec] depstree.NamespaceNotFoundError: Namespace "Example" never
> provided.
>
> BUILD FAILED
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml:1
> 40: The following error occurred while executing this line:
> D:\WORK\Projects\ApacheFlex\repo\asjs\branches\develop\publisher\build.xml:6
> 6: exec returned: 1
>
> Total time: 8 seconds
>
>
>
--
Ix Multimedia Software
Jan Luykenstraat 27
3521 VB Utrecht
T. 06-51952295
I. www.ixsoftware.nl