Hey Guys (and gals),
I am having some trouble with trying to use antcall with input tasks.
See attached build file (called whats_up.xml).
The two targets that don't work (realwork1 and realwork2) both use helper targets that use <antcall> tasks to invoke the <input> tasks, while the third target (realwork3) seems to work okay and so that why it think it is related to my usage of <antcall> task and not the <input> task.
The first target (realwork1) asks for the import.user name but is unable to expand its value in the messge for the input password.
The second target (realwork2) asks for the import.user the first time, and asks for it again the second time (due to a intentional typo) even though it should not.
Any ideas as to why the <antcall> invoked input tasks do not seem to honor the property set by previous <antcall> tasks
Ninju
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
<!-- *********************************************************************************************************** * Why are things not working * ************************************************************************************************************ --> <project name="Whats_up" basedir="."> <target name="get.import.user" unless="import.user"> <input message="Please enter username you wish to import from:" addproperty="import.user" /> </target> <target name="get.import.password"> <input message="Please enter the password for the import account (${import.user}):" addproperty="import.password" /> </target>
<target name="get.bypass.user"> <input message="Please enter username you wish to import from:" addproperty="export.user" /> </target> <target name="get.bypass.password"> <input message="Please enter the password for the export account (${bypass.user}):" addproperty="bypass.user" /> </target> <target name="get.import.info"> <antcall target="get.import.user"/> <antcall target="get.import.password"/> </target> <target name="get.bypass.info"> <antcall target="get.bypass.user"/> <antcall target="get.bypass.password"/> </target> <target name="works.fine"> <input message="Please enter username you wish to override from:" addproperty="override.user" /> <input message="Please enter the password for the override account (${override.user}):" addproperty="override.password" /> <!-- try to re-input an already set property and the task merely no-ops (yea!)" --> <input message="Please enter the password for the override account (${override.user}):" addproperty="override.password" /> </target> <target name="real_work1" depends="get.import.info"> <echo message="do real work1..."/> </target> <target name="real_work2" depends="get.bypass.info"> <echo message="do real work 2..."/> </target> <target name="real_work3" depends="works.fine"> <echo message="do real work 3..."/> </target> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]