flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sankar <santanu4...@gmail.com>
Subject [FlexJS] Why FlexJS compiler statically looks for 'src' folder
Date Thu, 01 Jun 2017 11:49:17 GMT
Hello,

I'm using current release branch 0.8.0 FlexJS SDK. I noticed running FlexJS
project compilation always produce me 'bin' folder to somewhere unexpected
when I have source folder named anything but 'src'. 

I have my project's source folder in project root named "*srcx*" and
contains on FlexJS application file. 

I tried to run following command in my project root:
set FLEX_HOME=E:\out\apache-flex-flexjs-0.8.0-bin&&
E:\out\apache-flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat
-load-config+=obj/OldFlexJSBrowserProjectConfig.xml  -optimize=false
-compiler.targets=JSFLEX

(Here's the config file: https://kobra.io/#/e/-KlYWM07_bjF8CDhUgF6)

If I ran the above command I noticed the 'bin' folder always produces inside
the 'srcx' folder - not in the root project directory where I ran the
command. 

Furthermore, if I have my application file resides anywhere in more deep
sub-folder, and run the command in project root, it's anyway produce the
'bin' folder in 'srcx'!

If I modify the folder name from "srcx" to "*src*" (and also does requisite
changes in the config file above), FlexJS compiler produce the 'bin' folder
now correctly in project root! 

It seems like compiler statically checks for 'src' folder existence and
therefore (if exists) produce the 'bin' folder to it's parent. 

This may not right when a situation when source folder named something other
than 'src' (like in my case) and the compiler produce the 'bin' folder and I
was keep thinking where is the 'bin' folder by just searching into the
project root! 

Thanks!



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Why-FlexJS-compiler-statically-looks-for-src-folder-tp61991.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
View raw message