Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
Help with running different target based on user input?

Help with running different target based on user input?

2007-02-23       - By Priest, James (NIH/NIEHS) [C]
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I'm just getting started using Ant (from within Eclipse) to help deploy
my ColdFusion projects and Oracle sql scripts.

I've had great success so far but I have finally ran into a problem I
can't figure out.

I'm trying to run some Oracle scripts - but would like to prompt the
user while running them:

So I have:

<target name="script1">
  do something
<target name="script2">
  do something

<input  message="Populate people tables with test data? (run script3)"
validargs="y,n"  defaultvalue="n"/>

<target name="script3">
  do something

<input  message="Populate checklist tables with test data? (run
script4)" validargs="y,n"  defaultvalue="n"/>

<target name="script4">
  do something

I've dug through the ant tasks docs and the mailing list archives but
regardless of what I've tried - I can get it to work correctly.

Does anyone have a good example of how something like this is done?

Thanks much!

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.