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.
asconfig.json
Description: application/json
