Hi All,
Currently I am having a JSON file for building a java component with build.xml present in mydir (mydir/build.xml) which is a checkout path from SCM.
{
“method”:“ant”,
“ant”:{
“buildFile”:“mydir/build.xml”,
“commands”:"clean buildall "
}
}
But what I want is to change dir to “mydir” and execute build.xml with ant tool as given below in my JSON file.
{
“method”:“ant”,
“ant”:{
cd mydir
"buildFile":“mydir/build.xml”,
“commands”:"clean buildall "
}
}
Can you please suggest how this can be done in JSON file.