|
Hi Srini,
You can use a script block to execute arbitrary
code; for example, the code below prompts for user input, and then stores the
result in a property. You can then refer to this property in the
"tofile" attribute of the <copy> task to get the effect you
want.
Regards,
Alex
<?xml version="1.0"?>
<project name="test" default="run"> <property name="build.test" value=""/> <target name="run"> <call target="getUserInput"/> <echo message="Value of $build.test is ${build.test}"/> </target> <target
name="getUserInput">
<script language="C#" mainclass="GetInput"> <code> <![CDATA[ class GetInput { public static void ScriptMain(Project project) { System.Console.WriteLine("Please enter the build directory"); project.Properties["build.test"] = System.Console.ReadLine(); } } ]]> </code> </script> </target> </project> ----- Original Message -----
|
