AW: Calling task in another xml file from main build file

2007-12-12 Thread Jan.Materne
You should be more precise with the terms "tasks" and "targets" ... There are multiple options to call external defined collections of tasks: 1. or Calls the specified (one or multiple) targets in another buildfile. 2. Calls the specified target in multiple other buildfiles. 3. Impor

rexec

2007-12-12 Thread Bourzeix , Hervé
question regarding rexec task , how I can build dymically the classpath used by this task ? it required commons-net-xx.jar I want to avoid to put the dependency jars in the ant lib. I tried to redefine the task and use a user defined classpath but it seems the task is still using the main ant

Re: Setting final strings at compile time

2007-12-12 Thread Wayne Cannon
Eric, We create an almost-Java source file, e.g., Version.txt, containing replacement targets. We extract version information from Subversion (or ClearCase, etc.) into a property with Ant, which we then in an Ant from Version.txt to Version.java. The advantages of this approach are (1) th

Re: Calling task in another xml file from main build file

2007-12-12 Thread Francisco Tolmasky
http://ant.apache.org/manual/CoreTasks/ant.html Francisco On Dec 12, 2007, at 3:25 PM, Z W wrote: Hi I have multiple tasks and I like to move a few tasks into another xml file. What's the syntax to call another task in another xml file from the original buildfile ? Eg: task_f

Calling task in another xml file from main build file

2007-12-12 Thread Z W
Hi I have multiple tasks and I like to move a few tasks into another xml file. What's the syntax to call another task in another xml file from the original buildfile ? Eg: task_file.xml Any example similar to this is appreciated also. Thanks

What does the warning "selected war files include a WEB-INF/web.xml which will be ignored" mean?

2007-12-12 Thread Todd Patrick
Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task) I've googled this warning without a lot of results. I have currently have the web.xml in the WEB-INF directory, so is this error thrown because I'm trying to overwrite the web.xml

war task question.

2007-12-12 Thread Todd Patrick
Please forget me for this question, I've never used the war task before and I'm looking at example at: http://www.java-tips.org/other-api-tips/ant/how-to-use-war-task.html I have a directory labeled "resources" and I have ten .gif files. To include the .gif files, I must use the zipfileset task