Ryan,

yes I want to link to a default property file for use with all Flash 
projects. The property file will be stored in a sub folder in the Eclipse 
workspace (i.e .'default/AS2'). But you just gave me the hint with setting 
default Ant properties under Preferences/Ant/Runtime/Properties. I've added 
my Eclipse workspace as a variable there (eclipse.workspace) and it can be 
used in the Ant build file with ${eclipse.workspace}! This just was what I 
was looking for! Thanks alot Ryan!

So let's say I create a default property file in the Eclipse workspace that 
contains properties like the path to MTASC and SWFMill etc.. Then I can 
import this property file into the buildfile of all ActionScript projects 
with ...

<property file="${eclipse.workspace}/.default/AS2/as2.properties"/>

And in case the path to some of the used tools changes I don't need to dig 
trough all my projects to change them but I only have to change the path in 
the properties file. I will try later if this works!


Sascha


----- Original Message ----- 
From: "Ray Chuan" <[EMAIL PROTECTED]>
To: "osflash mailing list" <[email protected]>
Sent: Monday, March 13, 2006 8:21 PM
Subject: [osflash] Using Eclipse workspace loc in Ant build file?


> Hi,
> afaik there are 2 ways to do this.
>
> 1. This task may be helpful:
>
> http://ant.apache.org/manual/CoreTasks/property.html
>
>>From what I gather you should use:
>
> <property file="${eclipse.home}/workspace/default.properties"/>
>
> This method allows for in-file expansion of properties.
>
> 2. Another way to do it would be from withing Eclipse Preferences, but
> the disadvantage is that in-file expansion doesn't work.
>
> Window --> Preferences... --> Properties
>
> Under "Global property file", add a *.properties file.
>
> --
> Ray Chuan
>
> _______________________________________________
> 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

Reply via email to