Does it have to be from the command line or are you willing to tolerate
pop-up dialog boxes asking for input? You also must be willing to add a
custom task to ant. If you're up to it then I've created a task that
will do it. Just let me know and I'll post it.

--- "Praveen.C" <[EMAIL PROTECTED]> wrote:
> Hello everyone,
> 
> How to make ant read command line input ?
> 
> Becoz in my project Iam writing ant buildfile
> for obfuscation.
> 
> Since I dont know how to use command line
> input, I do something like this
> 
> ############ant build file#############
> <target name="obfuscate" depends="init" description="">
>   <taskdef name="Retroguard" classname="Obfuscation"/>
>   <Retroguard message="The files are obfuscated"/>
>  </target>
> 
> #### java file ###### In execute() method 
> System.out.println("Enter file name to be obfuscated. :");
> DataInputStream file = new DataInputStream(System.in);
> String fileName = file.readLine();   
> Runtime.getRuntime().exec("java RetroGuard "+fileName+
>                 " Obfuscatedefs.jar script.rgs elixir.log");
> ####################################
> 
> How to avoid this java file and make the xml file itself
> do this task.
> 
> Any help on this will be highly appreciated.
> 
> Thanks and Regards,
> Praveen.C
> 
> 


=====
Don

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to