Calling a variable defined in build.xml
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2014 07:09 AM
Hello Community
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
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.

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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2014 07:15 AM
One way is to add your value to a .properties file and then read that .properties file from your amp.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2014 08:30 AM
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.
