Checking version

2008-12-04 Thread Francisco Tolmasky
hanks, Francisco Tolmasky 714-224-6179 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Relative Paths in Imported Files

2008-08-17 Thread Francisco Tolmasky
I have a common.xml file that I import in all my build.xml throughout my project (subdirectories included). One of the tasks defined in this common.xml has to reference a file in a java task, as so:

SubAnt BaseDir Woes With Java Task

2008-08-17 Thread Francisco Tolmasky
I am having issues with the basedir not being correct in SubAnt again. This time it's because it seems that the java task does not seem to respect the basedir. I have the following structure: My-Project/ build.xml Tools/ Tool1/ build.xml Tool2/

Using -buildfile without setting the basedir?

2008-02-03 Thread Francisco Tolmasky
I'm trying to use a build file that is located in a different directory by doing the following: ant -f a/b/thebuild.xml However, this has the side effect of changing my basedir to a/b/ as well, which I don't want, I just want to run ant in my current directory with the build file of a diff

Setting a Property if it exists.

2008-02-03 Thread Francisco Tolmasky
I'd like to use an environment variable for my build directory if it exists, basically: However, I also want a default Build directory "Build", if ENV.BUILD doesn't exist, how do I do this given that setting the property cannot be undone? Thank you, Francisco --

Re: Is there a way to search for a file matching a condition and assign it to a variable ?

2008-01-15 Thread Francisco Tolmasky
Just use a fileset. You can't make it be "just one file", because commons-io-*.jar has the potential of being several files. On Jan 15, 2008, at 11:14 AM, Hariharasudhan R wrote: Hi experts! Is there a way to search for a file matching a condition and assign it to a variable ? Basic

Re: AW: AW: Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
uot;b" is not present. If you want that "a" should always be copied, set "overwrite" attribute to true. See manual::CoreTasks::copy Jan -Ursprüngliche Nachricht- Von: Francisco Tolmasky [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 8. Januar 2008 07:13

Re: AW: Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
Is there a way to have copy not copy regardless of whether there is a newer or older version already there? Francisco On Jan 7, 2008, at 10:05 PM, <[EMAIL PROTECTED]> wrote: Easier would be just to do a would check if the target file exists or is older than the cop

Easier Way To Check and Install jars

2008-01-07 Thread Francisco Tolmasky
I wrote up a "short" install target in my ant file to make sure I have everything necessary to run script tasks, but it seems overly verbose for such a simple task: "Tools/Ant/${JarName}.jar" />

Creating Directories Before They're Used Automatically

2008-01-02 Thread Francisco Tolmasky
I am running into a problem when outputing files using an identity mapper, since sometimes the relative paths don't exist. For example, I use GCC in ant as so: When I run this, if there is a file in "Sources" such as "D

Re: Script Task In Ant

2007-12-31 Thread Francisco Tolmasky
e: javalobby article: http://www.javalobby.org/java/forums/t102936.html What is the JDK version? run: ant -debug What echo message do you get from ${env.CLASSPATH} ? Francisco Tolmasky wrote .. Hello, I am attempting to use JavaScript within ant and am running into a few difficulties. I used to be able to

Script Task In Ant

2007-12-31 Thread Francisco Tolmasky
Hello, I am attempting to use JavaScript within ant and am running into a few difficulties. I used to be able to do the following in Mac OS X Tiger just fine: /* whatever */ However, since moving to Mac OS X Leopard, I get the following error: java.lang.Clas

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

Setting up file dependencies

2007-12-11 Thread Francisco Tolmasky
I would ant to process a certain file if a dependent file has changed. Currently, only if the file in question itself has changed does it process it, which is expected behavior. But what I'm looking for is something similat to makes dependencies: somefile : other files Is this possible?

Re: How to create a file?

2007-12-08 Thread Francisco Tolmasky
1) 2) Francisco On Dec 8, 2007, at 11:59 AM, bsbiran wrote: Hello, Can someone please help me. I need to create a file jim.txt 1) Delete jim.txt 2) create jim.txt Please help BS. -- View this message in context: http://www.nabble.com/How-to-create-a-file--tf4968225.html#a14232007 Sent

Re: AW: Alternative to subant

2007-11-30 Thread Francisco Tolmasky
ah yes, somehow I missed that. thanks! On Nov 30, 2007 7:25 PM, Dominique Devienne <[EMAIL PROTECTED]> wrote: > On Nov 29, 2007 1:21 PM, Dominique Devienne <[EMAIL PROTECTED]> wrote: > > On Nov 29, 2007 12:40 PM, Francisco Tolmasky <[EMAIL PROTECTED]> wrote: &g

Re: AW: Alternative to subant

2007-11-29 Thread Francisco Tolmasky
ies the current (master) script into the projects. Therefore you'll get a cycle between and . Jan -----Ursprüngliche Nachricht- Von: Francisco Tolmasky [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. November 2007 13:43 An: user@ant.apache.org Betreff: Alternative to subant My p

Re: AW: Alternative to subant

2007-11-29 Thread Francisco Tolmasky
:53 AM, <[EMAIL PROTECTED]> wrote: The problem is that you use the "genericantfile" attribute. This implies the current (master) script into the projects. Therefore you'll get a cycle between and . Jan -----Ursprüngliche Nachricht- Von: Francisco Tolmasky [mai

Alternative to subant

2007-11-29 Thread Francisco Tolmasky
e luck. Any thoughts or suggestions? Thanks, Francisco Tolmasky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]