Thanks for the info...Actually i went through this blog but as i am new to ant script i find it very difficult to know what each tag does. Is there any doc on all the elements and its function.
plz let me know a way to understand these.
Also I am gonna use only the package and deploy ant files.
if you google a bit you will find enough ant documentation which will explain them.
basically you just need to create the dir structure add the subprojects to the config file and you're done
I tried and modified the build.xml file.
When i execute it iam getting the below error.
failed to create task or type foreach
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Can anyone help me on how to sove this issue.
you need the ant contrib lib. put it in your <ant_home>/lib directory and try again
Thanks..now Iam able to build the file successfully.
But iam getting below server error.
[deployComposite] setting user/password..., user=me
[deployComposite] Processing sar=C:\Users\me\Documents\JDeveloper\mywork\app\..\app\Project\deploy\Project_rev1.0.jar
[deployComposite] Adding sar file - C:\Users\me\Documents\JDeveloper\mywork\app\..\app\Project\deploy\Project_rev1.0.jar
[deployComposite] INFO: Creating HTTP connection to host:server URL, port:0000
[deployComposite] INFO: Received HTTP response from the server, response code=404
[deployComposite] SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
[deployComposite] ---->response code=404, error:null
the servers are up and running fine.
is there anything else that i should check?
Its working now...I am able to deploy.
However now i have another requirement.
I want to undeploy projects using ant scripts.
in the same build.xml file i need to have a target to undeploy the project.
can anyone help me with a code to undeploy a project.