Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

automate deployment using ant-script with credentials

user6347075May 20 2013 — edited Jul 16 2013
Hi,

I am trying to automate composite deployment using ant script. The script is working fine but not picking up the login credentials. I put the credentials in the properties file and the ant script picks it up correctly. But during deployment, it is asking for the username/password once again. Am i missing something here.

Here is the output,

deploy:
+[input] skipping input as property serverURL has already been set.+
+[input] skipping input as property sarLocation has already been set.+
+[input] skipping input as property password has already been set.+ //it is picking up the password here. but again asking in deployComposite.
+[deployComposite] setting user/password..., user=weblogic+
+[deployComposite] Processing sar=/u01/app/ipmdev/user_projects/domains/dev1_domain/deploymentscripts/SOA/build/sca_xxTestDeployScript_rev1.0.jar+
+[deployComposite] Adding sar file - /u01/app/ipmdev/user_projects/domains/dev1_domain/deploymentscripts/SOA/build/sca_xxTestDeployScript_rev1.0.jar+
+[deployComposite] INFO: Creating HTTP connection to host:*********.nam.nsroot.net, port:9550+
+[deployComposite] Enter username and password for realm 'default' on host *********.nam.nsroot.net:9550+
+[deployComposite] Authentication Scheme: Basic+
+[deployComposite] Username:+ //Here it is again asking for credentials


+[deployComposite] Password:+

My build.xml script,
+<target name="sca.deploy">+
+<echo message=" =========== Deploying SOA Archive file ${sca.file} ===========" />+
+<ant antfile="${oracle.home}/bin/ant-sca-deploy.xml">+
+<property name="serverURL" value="${framework.soaDeployURL}" />+
+<property name="sarLocation" value="${sca.file}" />+
+<property name="overwrite" value="true" />+
+<property name="user" value="${soa.adminuser}" />+
+<property name="password" value="${soa.adminpassword}" />+
+<property name="partition" value="${framework.partition}" />+
+</ant>+
+<echo message=" =========== Successfully deployed ${sca.file} ===========" />+
+</target>+

Thanks.

Edited by: user6347075 on May 20, 2013 10:16 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2013
Added on May 20 2013
6 comments
2,301 views