You probably need to set the dir attribute on your exec so that it
knows that the current working directory is the path of your project.
Then you can have the path to the xml file that swfmill uses be
relative. I am using this currently:
<exec dir="." executable="swfmill">
<arg line="simple swf.xml ${web.dir}/output.swf"/>
</exec>
the swfmill executable is in my path, that's why the executable
portion only says "swfmill" and swf.xml is in the same directory as my
build.xml
Hope this helps.
Dan
On 7/13/05, John Giotta <[EMAIL PROTECTED]> wrote:
> Here is an example of my Ant Build file:
> <target name="compileSWF">
> <exec executable="C:\SWFMill\swfmill.exe">
> <arg line='simple "${libXML}" "${SWFFile}"' />
> </exec>
> </target>
> <target name="compileMTASC">
> <exec executable="C:\Program Files\MTASC\mtasc.exe">
> <arg line='-swf "${SWFFile}" -main "${ASFile}" -cp
> "${classPath}"
> -cp "${MacromediaClassPath}" ${additionalParams}'/>
> </exec>
> </target>
>
> Everything works fine except when I write the import value of the
> SWFMill config XML I have to use absolute paths. When I'd rather use
> relative.
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org