Re: If anyone ever wanted to download a bunch of deps specified in a Maven POM for an Ant build

2017-06-11 Thread Thomas Broyer
écrit : > If your 'current directory' is a Maven checkout, I have a Python script > that will download the dependencies into a libs/ folder. Well, > libs/compile/ libs/test/ etc - one subfolder per scope. > > See here: > > https://github.com/paul-hammant/spring-jetty-int

Re: If anyone ever wanted to download a bunch of deps specified in a Maven POM for an Ant build

2017-06-11 Thread Paul Hammant
cies-mojo.html > > Le dim. 11 juin 2017 20:53, Paul Hammant a écrit : > > > If your 'current directory' is a Maven checkout, I have a Python script > > that will download the dependencies into a libs/ folder. Well, > > libs/compile/ libs/test/ etc - one subfolde

If anyone ever wanted to download a bunch of deps specified in a Maven POM for an Ant build

2017-06-11 Thread Paul Hammant
If your 'current directory' is a Maven checkout, I have a Python script that will download the dependencies into a libs/ folder. Well, libs/compile/ libs/test/ etc - one subfolder per scope. See here: https://github.com/paul-hammant/spring-jetty-integrationtest-ant-example/blob/master/m

Re: Execute the target only if source files have changed

2015-01-05 Thread Dominique Devienne
On Fri, Jan 2, 2015 at 9:17 PM, YuGiOhJCJ Mailing-List < yugiohjcj-mailingl...@laposte.net> wrote: > Oh, I have not read correctly the documentation of the task: > "multiple target files are specified using a nested element" > I always recommend using Ant-Contrib's task instead of Ant's older

Re: Execute the target only if source files have changed

2015-01-02 Thread YuGiOhJCJ Mailing-List
l...@laposte.net> wrote: > > > > > Hello, > > > > > > I have a target that transforms files XCF into PNG by calling the > > > "convert" command. > > > I would like that this target does not execute if source files (i.e.

Re: Execute the target only if source files have changed

2015-01-02 Thread YuGiOhJCJ Mailing-List
dea on why it is always setting > png-uptodate > > On Tue, Dec 30, 2014 at 6:17 PM, YuGiOhJCJ Mailing-List < > yugiohjcj-mailingl...@laposte.net> wrote: > > > Hello, > > > > I have a target that transforms files XCF into PNG by calling the > > "convert

Re: Execute the target only if source files have changed

2015-01-02 Thread Harold Putman
t> wrote: > Hello, > > I have a target that transforms files XCF into PNG by calling the > "convert" command. > I would like that this target does not execute if source files (i.e., the > XCF files ) have changed. > I have tried with the "uptodate" t

Execute the target only if source files have changed

2014-12-30 Thread YuGiOhJCJ Mailing-List
Hello, I have a target that transforms files XCF into PNG by calling the "convert" command. I would like that this target does not execute if source files (i.e., the XCF files ) have changed. I have tried with the "uptodate" task but it does not work. Each time I run ant, t

RE: How to gracefully not use a feature if the task jar isn't present?

2014-05-29 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Thursday, May 29, 2014 4:12 PM > To: Ant Users List > Subject: How to gracefully not use a feature if the task jar isn't > present? > > I'm trying to implement an optional feature in a build script that &

How to gracefully not use a feature if the task jar isn't present?

2014-05-29 Thread KARR, DAVID
I'm trying to implement an optional feature in a build script that utilizes the "xmltask" jar. To be less intrusive, I want the feature to be silently disabled if the xmltask jar isn't available. I initially assumed that I would check for the presence of the jar in "

Re: If and unless

2013-08-05 Thread Matt Benson
Hi, Tom. The examples in the manual are wrong. if/unless:set references a property name as described, but for if/unless:true/blank the attribute value should be the actual value you want to evaluate, e.g. ${has.css.overrides}. Sorry for the trouble! :) Matt On Mon, Aug 5, 2013 at 11:31 AM

If and unless

2013-08-05 Thread Tom Cleghorn
Hi, I'm puzzled by the new if and unless functionality - it seems that in 1.9.2, the following, where ${id}.css *does* exist: ...will set $has.css.overrides to 'true' as expected, but the property won't then evaluate as (boolean) true for this: Is this expected behavi

Re: Apache ANT execution error - Problem: failed to create task or type if

2012-09-13 Thread Scot P. Floess
Looks like you are missing ant-contrib if... Surprised there isn't a namespace on the "if" task... Can you send out the contents of C:\Documents and Settings\raora\.ant\build.xml ? Line 10 may be sufficient - I'm curious how that line is defining the ant contrib tasks..

Re: Apache ANT execution error - Problem: failed to create task or type if

2012-09-13 Thread Carlos Araya
As far as I know if is not a built in Ant task but it comes from the ant.contrib package downloadable from sourceforge. http://ant-contrib.sourceforge.net/ Download the package and follow the instructions to get it running on your build. Carlos On Thu, Sep 13, 2012 at 11:19 AM, Rao

Apache ANT execution error - Problem: failed to create task or type if

2012-09-13 Thread Rao, Raghavendra Kunjoor
AV25A\implementation\build_config\build.xml:5: The following error occurred while executing this line: C:\Documents and Settings\raora\.ant\build.xml:10: Problem: failed to create task or type if Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been dec

Re: Ant - continue the target execution ,even if one target completes

2012-06-04 Thread tinhvd
Using attribute spawn="true" as: To resolve this problem. -- View this message in context: http://ant.1045680.n5.nabble.com/Ant-continue-the-target-execution-even-if-one-target-completes-tp5634824p5713313.html Sent from the Ant - Users mailing list archive at

Re: a simple question regarding condition if/unless

2012-05-21 Thread Matt Benson
If I understand your question correctly, yes, you would have to add unless="test" everywhere you want to make target execution optional. Matt On Mon, May 21, 2012 at 11:06 AM, xsli2 wrote: > The target "test" calls two other targets: > > > > Now, I want to ad

a simple question regarding condition if/unless

2012-05-21 Thread xsli2
t "test" only once? Thank you very much. -- View this message in context: http://ant.1045680.n5.nabble.com/a-simple-question-regarding-condition-if-unless-tp5713011.html Sent from the Ant - Users mailing list archive at Nabble.com. -

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Steele, Richard
On Fri, Feb 17, 2012 at 8:30 AM, Dominique Devienne wrote: > >> From: "Steele, Richard" > >> I think it would be convenient to have command-line arguments take > optional > >> if/unless attributes that work much like those on targets. > > On F

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Dominique Devienne
>>  From: "Steele, Richard" >> I think it would be convenient to have command-line arguments take optional >> if/unless attributes that work much like those on targets. On Fri, Feb 17, 2012 at 2:06 PM, Vimil Saju wrote: > Can't you use the if task from

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Vimil Saju
Can't you use the if task from ant-contrib?  From: "Steele, Richard" To: user@ant.apache.org Sent: Friday, February 17, 2012 4:34 AM Subject: Feature request: if/unless on command line arguments I think it would be convenient to have command

Feature request: if/unless on command line arguments

2012-02-17 Thread Steele, Richard
I think it would be convenient to have command-line arguments take optional if/unless attributes that work much like those on targets. My use case is with the task where I want to conditionally pass in an -Xlint option

Re: Macrodef and If

2011-11-11 Thread Stefan Bodewig
On 2011-11-09, Steve Amerige wrote: > Thanks for your reply. This won't work because the macrodef won't > have any knowledge of what to do as per my need. I have to trust you on that. > I think, therefore, my solution of having 2 macrodef elements is as > close as I can get: > > ... > ... >

Re: Macrodef and If

2011-11-09 Thread Steve Amerige
Software Development On 11/8/2011 11:49 PM, Stefan Bodewig wrote: No. macrodef can only be used to define tasks, not conditions (which is what you'd need). What you can do is what Mike suggests. Use your macrodef to set a property and then use isset as condition inside your if. ...

Re: Macrodef and If

2011-11-08 Thread Stefan Bodewig
e solution to be wholly in > Ant (no Java, Groovy, external file use, etc.). > Is it possible? If so, can you show an example of how the mymacrodef would > be coded? No. macrodef can only be used to define tasks, not conditions (which is what you'd need). What you can do is what Mike

Re: Macrodef and If

2011-11-08 Thread Steve Amerige
e in and use AntContrib though, since it gives you an task. -Original Message- From: Steve Amerige [mailto:steve.amer...@sas.com] Sent: Tuesday, November 08, 2011 9:46 AM To: Ant Users List Subject: Macrodef and If I'd like to do something like: ...

RE: Macrodef and If

2011-11-08 Thread Murray, Mike
.amer...@sas.com] Sent: Tuesday, November 08, 2011 9:46 AM To: Ant Users List Subject: Macrodef and If I'd like to do something like: ... ... Within the macrodef, there would be places it would return true and other places it returns fals

Macrodef and If

2011-11-08 Thread Steve Amerige
I'd like to do something like: ... ... Within the macrodef, there would be places it would return true and other places it returns false. I want the solution to be wholly in Ant (no Java, Groovy, external file use, etc.). Is it possible? If so

Re: Checking if a Target Exists

2011-11-03 Thread Rob Seegel
Thanks for the link, I haven't made the jump to 1.8, yet, but quickly read over the documentation you provided. You're right, It is very close, I even have something very much like "onMissingExtensionPoint" with pretty much the same values. If had been present back in 1.6.

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
Ant 1.8 has extension-points which provides something  similar to your use-case http://ant.apache.org/manual/targets.html From: Rob Seegel To: Ant Users List Sent: Thursday, November 3, 2011 6:40 PM Subject: Re: Checking if a Target Exists Steve,   For my

Re: Checking if a Target Exists

2011-11-03 Thread Rob Seegel
between one and three imports, and maybe a few property overrides. Let me take a look at the code tomorrow - perhaps I can share it. It was written for Ant 1.6.5, but I've also used it for 1.7.* The basic idea has worked pretty well for me. Rob On 11/3/11 7:52 AM, Steve Amerige wro

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
You are right Steve, that was an error on my part.  From: Steve Amerige To: user@ant.apache.org Sent: Thursday, November 3, 2011 12:05 PM Subject: Re: Checking if a Target Exists Hi Vimil, Thanks for the code!  I'm pretty sure the fifth line of the s

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
s to check for a macrodef, not sure about targets? The conditions <http://ant.apache.org/manual/Tasks/conditions.html> page tells us: "Types include tasks, datatypes, scriptdefs, macrodefs and presetdefs." So, I'm not sure if target is a task. I'll check it out. Than

RE: Checking if a Target Exists

2011-11-03 Thread Holman, Chris
If I understand the problem correctly, you could use a condition: I've used this to check for a macrodef, not sure about targets? Regards, Chris Holman -Original Message- From: Vimil Saju [mailto:vimils...@yahoo.com] Sent: 03 November 2011 16:02 To: Steve Amerige; Ant

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
Here is an example, I havent tested it though                               the scriptdef can be then invoked as folows the property 'targetExists' will be set to true if the target 'mytarget' is present in the project. Otherwise it will not be set. _

Re: Checking if a Target Exists

2011-11-03 Thread Parag Doke
l for suggesting the way out ! Will keep a watch on the thread if some implementation specific inputs are shared. Regards, Parag Doke Save paper, save trees. Do not print emails/documents unless absolutely necessary. On Thu, Nov 3, 2011 at 7:57 PM, Steve Amerige wrote: > Hi Vimil, > >

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
Hi Vimil, Thanks for the feedback. Any specifics on just how to do what you mention (even if untested)? Thanks again, Steve Amerige SAS Institute, Deployment Software Development On 11/3/2011 9:55 AM, Vimil Saju wrote: I think you can use the scriptdef task to do this. You can write a

Re: Checking if a Target Exists

2011-11-03 Thread Vimil Saju
I think you can use the scriptdef task to do this. You can write a script within the scriptdef object to access the methods of the project object. The project object has methods to list the targets defined under the project, which you can use to test if a given target exists. Btw antcall does

Checking if a Target Exists

2011-11-03 Thread Steve Amerige
Hi all, I want to be able to check if a target exists and hope you can help. I'm looking for a generic solution that doesn't rely any knowledge of the target name to be checked. It is not possible to modify the target code. And, I'd like to avoid any solutions that cause th

Re: target does not fail if file does not exist.

2011-08-09 Thread Oleksandr Gavenko
exist and 'echo' does not executed. is the set of files that actually exist limited by the patterns you provide. It won't fail if the file doesn't exist, it is its contract to accept that some things you specify may or may not be there. I'm afraid that if you want

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Bob Billings
gt; >> OK, I'll fill out a bugzilla report. Thanks for verifying! :) > > Would it be enough if we simply started filtering after the first line > of the stack trace? That fix would be easiest to implement. > > Stefan > > -

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Stefan Bodewig
On 2011-08-04, Robert E. Billings III wrote: > OK, I'll fill out a bugzilla report. Thanks for verifying! :) Would it be enough if we simply started filtering after the first line of the stack trace? That fix would be easiest to implement.

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Robert E. Billings III
using CruiseControl with Ant-run JUnit tests is fairly likely > to > > run into it (it should be fairly common to fail a test when there are > "more > > of X than there should be") > > - it's unlikely that anybody running into this problem will suspect the &g

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Stefan Bodewig
unlikely that anybody running into this problem will suspect the word > "more" as the culprit > - and even if they do know, it's hard to implement a policy of "Okay > everybody, remember not to use the word 'more' in your failure messages." I agree with y

Re: target does not fail if file does not exist.

2011-08-04 Thread Stefan Bodewig
> > > > > $ ant -f my2.xml -emacs > Buildfile: d:\test.xml > test: > getting files > 0 files retrieved > xxx > I expect that build fail as 'my.jar' is not exist and 'echo' does not > executed. is the set of files that

Exec on Windows is not fired if ant started from sinatra

2011-08-03 Thread Radek Simcik
file everything works fine. If I run the same code from sinatra ruby file the target is fired but ant hang at the exec tag. ant -v gives me aftertaf:     [exec] Current OS is Windows XP     [exec] Executing 'C:\Ruby187\bin\ruby.exe' with arguments:     [exec] 'C:\EduTester\oth

target does not fail if file does not exist.

2011-08-02 Thread Oleksandr Gavenko
$ ant -f my2.xml -emacs Buildfile: d:\test.xml test: getting files 0 files retrieved xxx I expect that build fail as 'my.jar' is not exist and 'echo' does not executed. How get this behavior? -- С уважением, Александр Гавенко. ---

junit task xml output omits failure message if it contains the word " more"?

2011-07-28 Thread Bob Billings
I tried searching bugzilla to see if this had been noticed before but couldn't find anything. My project is using Cruise Control to rebuild our development database every night and send out unit test results in the morning to the developers so in the morning they know whether the lates

AW: How can I check if file exists in gz compress file?

2011-05-09 Thread Knuplesch, Juergen
check if file exists in gz compress file? Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in

Re: How can I check if file exists in gz compress file?

2011-05-08 Thread Alexandre Priou
> > >> > >> > >> > >> > >> Nicolas > >> > >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : > >> > >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > >> >> Hi, > >> >&g

Re: How can I check if file exists in gz compress file?

2011-05-08 Thread Matt Benson
condition will do the proper job: >> >> >>     >>       >>         >>       >>     >> >> >> Nicolas >> >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : >> >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: >

How can I check if file exists in gz compress file?

2011-05-07 Thread Ben Tu
Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in myfile.tar.gz without extracting myfile.tar.gz. is

Re: How can I check if file exists in gz compress file?

2011-05-07 Thread Ben Tu
Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > >> Hi, > >> > >> Is there a task in Ant that I can check if the file exists in > myfile.tar.gz > >> file without extracting it? > >> > >> > > > > With the tar being gzipped, I can't thin

Re: How can I check if file exists in gz compress file?

2011-05-07 Thread Nicolas Lalevée
I think this kind of condition will do the proper job: Nicolas Le 6 mai 2011 à 19:14, Matt Benson a écrit : > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: >> Hi, >> >> Is there a task in Ant that I can check if the file exists in

Re: How can I check if file exists in gz compress file?

2011-05-06 Thread Matt Benson
On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > Hi, > > Is there a task in Ant that I can check if the file exists in myfile.tar.gz > file without extracting it? > > With the tar being gzipped, I can't think of anything in core Ant that will just do this. If you want

How can I check if file exists in gz compress file?

2011-05-06 Thread Ben Tu
Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in myfile.tar.gz without extracting myfile.tar.gz. is

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Yes. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381951.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Thanks Matt it works. I ran the script -If and unless is supported in v1.7.1. -- View this message in context: http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381949.html Sent from the Ant - Users mailing list archive at Nabble.com

Re: Alternative to if else task.

2011-02-11 Thread Rick Genter
On Feb 11, 2011, at 11:35 AM, ritchie wrote: > > > Are the if and unless attributes supported in Ant 1.7.1 and lower? I'm pretty sure if and unless have been part of ant since 1.0. They were there when I started to use ant in 2003. -- Rick Genter rick.ge

Re: Alternative to if else task.

2011-02-11 Thread ritchie
http://ant.1045680.n5.nabble.com/Alternate-for-if-else-task-tp3381392p3381898.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands

Re: Alternative to if else task.

2011-02-11 Thread Peter Reilly
: One can do something similar for the antelope jar. Peter On Fri, Feb 11, 2011 at 3:34 PM, ritchie wrote: > > I am using a if else task in my build file and i had to add the additional > jar antelopetasksjar to my lib folder of ant to make this run. My > problem is

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:49 AM, ritchie wrote: > > Matt, > The target option would be good if the other target does not fail, but in > my build file i have target which executes perforce command and i capture > the result of the exec task in resultproperty. If the value of resul

Re: Alternative to if else task.

2011-02-11 Thread ritchie
Matt, The target option would be good if the other target does not fail, but in my build file i have target which executes perforce command and i capture the result of the exec task in resultproperty. If the value of result property is ==0 then i execute another target else execute a different

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:34 AM, ritchie wrote: > > I am using a if else task in my build file and i had to add the additional > jar antelopetasksjar to my lib folder of ant to make this run. My > problem is for this to work for other developers they all have to add the > ja

Alternative to if else task.

2011-02-11 Thread ritchie
I am using a if else task in my build file and i had to add the additional jar antelopetasksjar to my lib folder of ant to make this run. My problem is for this to work for other developers they all have to add the jar file to their ant/lib dir, but my organization is not keen with this idea

Re: exclude A/a if B/a exists

2010-11-04 Thread Dominique Devienne
On Wed, Nov 3, 2010 at 7:52 PM, Daniel Becroft wrote: > [...] However, I only want to apply this selector to a subset of the entries > in the fileset. [...] > I want to select everything, but only apply the selector to > anything under \alpha (everything under \beta and \gamma should be selected

Re: exclude A/a if B/a exists

2010-11-03 Thread Daniel Becroft
On Thu, Nov 4, 2010 at 8:01 AM, Dominique Devienne wrote: > On Wed, Nov 3, 2010 at 4:49 PM, Daniel Becroft > wrote: > > I am trying to construct a definition to exclude any files in > > /alpha if the same filename exists in /beta. > > See the selector in the manual.

Re: exclude A/a if B/a exists

2010-11-03 Thread Dominique Devienne
On Wed, Nov 3, 2010 at 4:49 PM, Daniel Becroft wrote: > I am trying to construct a definition to exclude any files in > /alpha if the same filename exists in /beta. See the selector in the manual. --DD PS: I think that's the 3rd time I answered this questi

exclude A/a if B/a exists

2010-11-03 Thread Daniel Becroft
Hi, Given the following folder structure: /alpha foo.c bar.c /beta foo.c A.txt I am trying to construct a definition to exclude any files in /alpha if the same filename exists in /beta. That is, construct a that returns (from the above example): /alpha/bar.c /beta/foo.c /beta/A.txt

Re: Fail if any of many files contains a string

2010-10-28 Thread chris.holman
://ant.1045680.n5.nabble.com/Fail-if-any-of-many-files-contains-a-string-tp1354791p3240437.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional

AW: avoid ftp get if files are too old?

2010-10-25 Thread Jan.Materne
This will upload only the 'modified' files (independ of the date). Jan >-Ursprüngliche Nachricht- >Von: dangerop [mailto:nabbl...@hotmail.com] >Gesendet: Samstag, 9. Oktober 2010 01:34 >An: user@ant.apache.org >Betreff: avoid ftp get if files are too ol

Re: avoid ftp get if files are too old?

2010-10-11 Thread dangerop
name and use an old datestamp. Thanks! KaJun -- View this message in context: http://ant.1045680.n5.nabble.com/avoid-ftp-get-if-files-are-too-old-tp3205466p3207865.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: avoid ftp get if files are too old?

2010-10-09 Thread David Weintraub
Have you looked at the "depends" parameter? The "depends" property won't download a file if a file with the same name is already there, and the file on the local machine has a newer timestamp than the file on the remote machine. By default, "depends is set to "n

avoid ftp get if files are too old?

2010-10-08 Thread dangerop
Hi, I've got a situation where we run a weekly process to download files off an ftp site once a week. I've got an Ant build file which will connect to the server and download the files, but I'd like to avoid downloading them if the files are from the previous week. I was thin

Re: "available" appears to get confused if I use "-f buildfile"

2010-08-19 Thread Dominique Devienne
On Thu, Aug 19, 2010 at 3:47 PM, KARR, DAVID (ATTSI) wrote: >       your file="review" will be resolved against the current 'basedir' of the build (the basedir attribute of the top-level element), and the 'basedir' of an imported file is affected by the importer (which may import it indirectly t

RE: "available" appears to get confused if I use "-f buildfile"

2010-08-19 Thread KARR, DAVID (ATTSI)
> -Original Message- > From: eric.w...@thomsonreuters.com > [mailto:eric.w...@thomsonreuters.com] > Sent: Thursday, August 19, 2010 1:29 PM > To: user@ant.apache.org > Subject: RE: "available" appears to get confused if I use "-f > buildfile" >

RE: "available" appears to get confused if I use "-f buildfile"

2010-08-19 Thread eric.wood
It would be useful to see the appropriate code snippets. Eric -Original Message- From: KARR, DAVID (ATTSI) [mailto:dk0...@att.com] Sent: Thursday, August 19, 2010 2:08 PM To: Ant Users List Subject: "available" appears to get confused if I use "-f buildfile" I ha

"available" appears to get confused if I use "-f buildfile"

2010-08-19 Thread KARR, DAVID (ATTSI)
I have a build file that gets imported into my current build file. The imported build file has an "available" task to set a property if a particular directory exists, in the current directory. I have a situation where I might instead have to not have that "import", but

AW: possible to recurse through directory to see if a file exists in a subdirectory

2010-08-12 Thread Jan.Materne
>I need to find out if a certain file with a standard naming >convention exists in a subdirectory. I would like to either >have the directory path output to either the screen or a txt >file. Either is okay. Quick idea is something like You have to search for the

possible to recurse through directory to see if a file exists in a subdirectory

2010-08-12 Thread Mario Madunic
(Using ANT 1.8, WinXP) I need to find out if a certain file with a standard naming convention exists in a subdirectory. I would like to either have the directory path output to either the screen or a txt file. Either is okay. More details. I'll have a root dir I'm working with F

Re: Ant: want to copy a file if it exists

2010-07-30 Thread Matt Benson
://ant.apache.org/manual/Types/resources.html ? The description of a resourcecollection is on the same page. So to put it simply, if you use a fileset you _are_ using a resourcecollection. About the only thing you could use resourcecollections for might be to a bunch of atomically- specified

RE: Ant: want to copy a file if it exists

2010-07-30 Thread Martin Gainty
message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: RE: Ant: want to cop

RE: Ant: want to copy a file if it exists

2010-07-30 Thread eric.wood
I was curious if resource collections were an option to use. To be honest, I have never fully appreciated resources. Is there a good tutorial on resources in ANT? -Original Message- From: Vimil Saju [mailto:vimils...@yahoo.com] Sent: Thursday, July 29, 2010 8:27 PM To: Ant Users

AW: want to copy a file if it exists

2010-07-29 Thread Jan.Materne
Just use . will fail if the requested file does not exist. mailto:eric.w...@thomsonreuters.com] >Gesendet: Donnerstag, 29. Juli 2010 23:09 >An: user@ant.apache.org >Betreff: Ant: want to copy a file if it exists > >I want to check to see if a file exist and if so then copy it

Re: Ant: want to copy a file if it exists

2010-07-29 Thread Vimil Saju
Use the 'available' task to check if a file exists. There is also an 'if' task which is part of antcontrib that you can use to execute tasks conditionally --- On Thu, 7/29/10, eric.w...@thomsonreuters.com wrote: From: eric.w...@thomsonreuters.com Subject: Ant: want

Ant: want to copy a file if it exists

2010-07-29 Thread eric.wood
I want to check to see if a file exist and if so then copy it. What is the best way for performing this conditional task? Thanks, eric

RE: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Moore, Kent
...@rzf.fin-nrw.de] Sent: Tuesday, July 27, 2010 9:11 AM To: user@ant.apache.org Subject: AW: How to check if available java version is higher equal than a required java version? Check for Classes which are new in that specific JDK. Jan >-Ursprüngliche Nachricht- >Vo

AW: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Jan.Materne
Check for Classes which are new in that specific JDK. Jan >-Ursprüngliche Nachricht- >Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] >Gesendet: Dienstag, 27. Juli 2010 14:35 >An: Ant Users >Betreff: How to check if available java version is higher >equ

How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Ben Stover
Assume I have a build.xml which contains some java tasks (javac, jar,...) I would like to make sure that the Java installation which is used to compile the source code is higher equal than e.g. JAVA SE 1.5.03. How can I specify this version requirement (and an appropriate error message) in a bu

Re: outofdate task returns TRUE if no target files exist??

2010-07-21 Thread Peter Reilly
mistyped the result :) > It is indeed returns FALSE (though I would expect TRUE), and as a result the > task in the is not being run. > > I've looked at the 'uptodate', and my issue with using it is that it does not > support multiple target files. If I had an

Re: outofdate task returns TRUE if no target files exist??

2010-07-21 Thread glenn opdycke-hansen
If you want a specific behavior from a script, what if you specifically code that behavior? Then you do not have to depend on antcontrib. I would test to see if a the directory is empty then set the property or call the target that you are expecting in the script. --glenn On Tue, Jul 20, 2010

Re: outofdate task returns TRUE if no target files exist??

2010-07-21 Thread Marina
David, sorry - you are absolutely right, I've mistyped the result :) It is indeed returns FALSE (though I would expect TRUE), and as a result the task in the is not being run. I've looked at the 'uptodate', and my issue with using it is that it does not support multiple

Re: outofdate task returns TRUE if no target files exist??

2010-07-21 Thread Peter Reilly
to always trigger if there are no as that is a common use case. Peter On Tue, Jul 20, 2010 at 8:35 PM, Marina wrote: > Hi, I wanted to see if the behavior I see when using the ant-contrib's > 'outofdate' task is a correct one. Basically, I'm trying to determine if &

Re: outofdate task returns TRUE if no target files exist??

2010-07-20 Thread David Weintraub
I'm a little confused. The "outofdate" task returns a TRUE if the files are "Out of Date". That is, you should do a build. Do you mean that this task returns a FALSE instead? This task should run the tasks if your target files don't exist. I recommend that you

outofdate task returns TRUE if no target files exist??

2010-07-20 Thread Marina
Hi, I wanted to see if the behavior I see when using the ant-contrib's 'outofdate' task is a correct one. Basically, I'm trying to determine if generated EAR archive (in the exploded form) has any out of date files in respect to the source directories, and re-copy those fil

RE: Better alternative than using foreach, for and if/then/else?

2010-05-07 Thread Bailey, Darragh
> -Original Message- > From: Stefan Bodewig [mailto:bode...@apache.org] > Sent: 06 May 2010 04:39 > To: user@ant.apache.org > Subject: Re: Better alternative than using foreach, for and > if/then/else? > > On 2010-05-05, Bailey, Darragh wrote: > > >

Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Stefan Bodewig
t it in XML. Using Ant's support for scripting engines you could implement that task inline - for example if compiling and deploying a Java task as part of the build process was too difficult. If you use Java6 you have all parts required to write tasks in JavaScript together. There may be tricks

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Martin Gainty
ous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: dbai...@hp.com > To: user@ant.apache.org > Date: Wed, 5 May 2010 16:10:41 + > Subject: RE: Better alternative than using foreach, for and if/then/else? > > > > -Original Message- >

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Bailey, Darragh
> -Original Message- > From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com] > Sent: 05 May 2010 14:46 > To: Ant Users List > Subject: Re: Better alternative than using foreach, for and > if/then/else? > > You need to use ant 1.8 and the task. > declares

Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Peter Reilly
alues set in properties in the makefile in order to > reference multiple kernel versions and variants and then using pattern based > rules to build the necessary target. Right now I've got something partially > working in Ant using the foreach/for tasks from ant-contrib, but I'm not s

  1   2   3   4   5   6   >