Skip to Main Content

New to Java

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!

passing paramter to build.xml

850392Jun 30 2011 — edited Jul 1 2011
I am trying to run test cases with some system aruguments given below. Arguments is not considering for build.xml through eclipse.

Steps followed are given below.

1) by command prompt
ant5 junit -DappRoot=ECM -DappName=ESW -Dapp.module=FNT -Dapp.env=LOC -DcloneNumber=1
2) by Eclipse:
Eclipse->myproject->right click on build.xml->Arguments->VM Arguments -DappRoot=ECM -DappName=ESW -Dapp.module=FNT -Dapp.env=LOC -DcloneNumber=1

But it works fine while running individual java test file through eclipse.
3) Java file through Eclipse:
Eclipse-> right click on test java file->arguments and enter above parameter

How can i solve by running build.xml through eclipse?
error getting is:  Could not resolve placeholder 'appRoot'. This parameter I have passed through eclipse arguments.
Note: found following point in eclipse main->arguments tab as,
Note:Enclose an argument containing spaces using double quotes. Is there any changes i need to make for this?

Edited by: 847389 on 01-Jul-2011 03:25
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2011
Added on Jun 30 2011
2 comments
1,609 views