Sascha Balkau wrote:
Your setup looks good! How do I create folders with an ant task and what do I have to do to execute the ant task when creating a new project? I have no answers for your questions as I'm looking for these answers as well unfortunately. I name my project like Java packages. If I do a project named App for company xyz.com then I name the project com.xyz.app etc. etc. ... just an idea to keep order.
-sascha


create a build.xml file in your ASDT project root and paste:

<?xml version='1.0' encoding="utf-8"?>
<project name="Flash Project" default="usage" basedir=".">
<description>mybuild_file</description>
        
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>

<target name="usage">
        <echo message=""/>
        <echo message="--------------"/>
        <echo message="we have:"/>
        <echo message=""/>
        <echo message="make folder"/>
        <echo message="copy folder"/>
        <echo message="--------------"/>
        <echo message=""/>
</target>

<target name="make folder" description="make some folders" >
        <mkdir dir="${src}"/>
        <mkdir dir="${build}"/>
        <mkdir dir="${lib}"/>
</target>
        
<target name="copy folder" description="copy folder" >
        <copy todir=".">
                <fileset dir="D:/whatever/ASDT_Assets" />
        </copy>
</target>
        
</project>



save the build.xml
then right-click on build.xml and select either:

->run as->1 Ant build // default task will be executed

or

->run as->2 Ant build

// select tasks to be executed and define refresh etc

you could later on call a task via the smaller, green circle
on the menubar

regards
david



_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to