hi Josh- I got this build to work and it produced 2 .js files one for TableExample.js and the other for MyInitialView.js. I picked too tricky an example for my first try with ant with the AI. I will go and try it on a single .mxml file. The other project has a main form, so it probably has the 'entry point'.
I will try to find about 2 or more .mxml files another day. I am not sure what the main entry point is. I will have to do research and try again a different day, but if it is building the .js files and that is a big step in the right direction for me because i never used ant, and I am just starting out with it. Thanks for the cool help - again. thanks, j. Sent with [Proton Mail](https://proton.me/mail/home) secure email. On Saturday, April 5th, 2025 at 1:10 PM, Josh Tynjala <[email protected]> wrote: >> Error: a target file must be specified. > Hi Jim, > > This error message from mxmlc means that you didn’t pass it an .mxml or .as > file to use as your project’s main entry point. > > I should also note that the Ant build doesn’t use asconfig.json, so it is > irrelevant here. The asconfig.json file is used to configure vscode-as3mxml > only. The Ant script needs to configure the same compiler options separately. > However, there is an asconfigc tool available that can use the same > asconfig.json file to compile a project on the command line without VSCode. > > -- > Josh Tynjala > Bowler Hat LLC > https://bowlerhat.dev/ > > On Sat, Apr 5, 2025 at 7:47 AM Jim McNamara <[email protected]> wrote: > >> Hi - >> >> I tried to get this ant build to go. here is the printout my dir structure >> and my build.xml and asconfig.json and error output please help me. IM >> STUCK...by a little! >> compile: >> [mkdir] Created dir: /home/funnysys/royalePlus/bin >> [exec] Using Royale SDK: >> /home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs >> [exec] MXMLJSC >> [exec] --targets=js >> [exec] --source-path=src/main/royale >> [exec] --output=bin/MyApp.js >> [exec] >> --library-path=/home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs/frameworks/js/libs >> [exec] --include-classes=mx.core.Application >> [exec] --verbose >> [exec] 0.693782439 seconds >> [exec] Error: a target file must be specified. >> [exec] >> [exec] >> [exec] >> [exec] Result: 2 >> [echo] Compilation completed: bin/MyApp.js >> >> main: >> [echo] Starting the full build... >> >> BUILD SUCCESSFUL >> <?xml version="1.0" encoding="UTF-8"?> >> <project name="Apache Royale Example" default="main" basedir="."> >> >> <!-- Set the root directory for your project --> >> <property name="src.dir" value="src/main/royale"/> >> <property name="bin.dir" value="bin"/> >> <property name="lib.dir" value="libs"/> >> <property name="royale.bin.dir" >> value="/home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs"/> >> >> <!-- Full build target --> >> <target name="main" depends="clean, compile" description="Full build of >> ${ant.project.name}.js"> >> <echo message="Starting the full build..."/> >> </target> >> >> <!-- Clean build --> >> <target name="clean" description="Clean the bin directory"> >> <delete dir="${bin.dir}"/> >> <echo message="Cleaned the bin directory"/> >> </target> >> >> <!-- Compile ActionScript (MXML) files --> >> <target name="compile" description="Compile ActionScript (MXML) source >> files"> >> <mkdir dir="${bin.dir}"/> >> >> <!-- Compile MXML files using Royale compiler --> >> <exec executable="${royale.bin.dir}/bin/mxmlc"> >> <arg value="--source-path=${src.dir}"/> >> <arg value="--output=${bin.dir}/MyApp.js"/> >> <arg value="--library-path=${royale.bin.dir}/frameworks/js/libs"/> >> <arg value="--include-classes=mx.core.Application"/> >> <arg value="--verbose"/> >> </exec> >> >> <echo message="Compilation completed: ${bin.dir}/MyApp.js"/> >> </target> >> >> <!-- Optional: Run your project (could be opening a browser or doing >> something else) --> >> <target name="run" depends="compile"> >> <echo message="Running the SWF or JS file..."/> >> <!-- Add your code here to launch the SWF/JS file or perform any other >> actions --> >> </target> >> >> </project> >> >> and asconfig.json attached >> >> my dir structure is RoyalePlus -> src build lib asconfig.xml build.xml >> -> main >> -> royale >> -> the *.mxml and other files that are files for project like model or >> resource etc. >> >> I thought i got it really close, but I can't slam it home yet. Please >> quickly lend a set of eyes if you get a chance to help the novice that got >> stuck. >> >> I am compiling or attempting to compile the app in examples that is the >> tableexample.mxml under royale. >> >> thanks, >> j. >> >> Sent with Proton Mail secure email.
