I ran into this issue too because I frequently use "source" instead of "src".
It is indeed true that "src" is hard coded, along with "src/main/flex" (for Maven). I wonder if it would be better to simply produce bin in the current working directory by default, instead of having these two hard coded values. Usually, the cwd will be the parent of the main source path. The -js-output compiler option may be used to customize where the bin directory is created for JS. To force it to be the current working directory, you should be able to use: -js-output=. - Josh On Jun 1, 2017 5:04 AM, "sankar" <santanu4...@gmail.com> wrote: > 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. >