cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a variable defined in build.xml

sofia
Champ in-the-making
Champ in-the-making
Hello Community Smiley Wink

I ve created  an amp for some alfresco WebScripts customisation .For my AMP development, I ve used eclipse and ant , and it's working fine( I deploy my amp correctly ) .
But now I need to define some variables outside the amp , I mean at ant files , and I want to call those variables from inside the amp . For example :

I need to define a property called site url in my build.xml

 <property name="siteurl" value="http://localhost:8080/share/page/site/test1/documentlibrary" /> ‍


and in my webscript in the amp , I 'll call this property and store its value into an other variable in myscript.get.properties:  " site_path "

I know that's complicated but it's a client requirement.

Is this action possible ?  Do you have any idea about how to make the call ?


Regards,
Sofia.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
One way is to add your value to a .properties file and then read that .properties file from your amp.

sofia
Champ in-the-making
Champ in-the-making

Thank you for the reply . But I really don't know how to call this file into my amp , exactly into myscript.get.properties.


Regards,
Sofia.