cancel
Showing results for 
Search instead for 
Did you mean: 

What is the use of ant localproperties command ?

Former Member
0 Kudos

Hi , I wanted to understand all the targets that are available in Hybris ant build. Request to help me on this.I tried with ant localproperties but no result found.

Please let me know how to test that.

Regards, Hena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can add a property from the command line to the local.properties file. Please try this example:

 ant localproperties -Dlocal.property.foo=bar

Ant will write this to the console output:

 [localproperties] appending foo=bar

... and adds the property "foo" to the local.properties file.

The Ant task is defined here:

 hybris/bin/platform/resources/ant/antmacros.xml


Cheers, Thomas

bhavirisetty
Active Participant
0 Kudos

In addition to your answer, if local.properties doesn't exist it will create new one too.

Former Member
0 Kudos

Thanks Thomas.But can we get the properties file in the in HAC after adding it through the command line.Is this aviailable online.Please confirm. I am working in the stream lining deployment process through the command prompt without using the HAC for my project. Thanks, Hena

Former Member
0 Kudos

Hey Thomas

Can we make changes into antmacros.xml?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Hena

Here is a list of available ant targets for your SAP Hybris Commerce version, call ant -p from the ${HYBRIS_BIN_DIR}/platform directory of SAP Hybris Commerce.

Thanks

Yan