Re: AW: priority question

2012-08-30 Thread Steve Amerige
really means "*prepend *the given classpathref before other classpaths, including the system classpath." This turns out to be exceedingly useful. And, while the reverseloader attribute is marked as deprecated (and has been since the beginning), I have been assured that it isn

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-08 Thread Steve Amerige
it as a message to be ignored. Many thanks again for your input and help! Steve Amerige SAS Institute, Deployment Developer *build.xml:* println GroovySystem.getVersion() *output with Ant 1.7.1:* *without reverseloader="true":* main: [echo] ant: Apache An

Re: How get checksum of files ?

2012-08-08 Thread Steve Amerige
Please see: http://ant.apache.org/manual/Tasks/checksum.html Enjoy, Steve Amerige SAS Institute, Deployment Developer On 8/8/2012 7:58 AM, GNSH wrote: How to get the files checksum. ? suppose i have two files or more like one.jar and two.jar .geting these two file checksum and comparing with

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Steve Amerige
ter way to give my classpath priority other than the *reverseloader *trick, can someone provide example code that works in both Ant 1.7 and 1.8 (even if conditional code is used) so that I get it right? Many thanks! Steve Amerige SAS Institute, Deployment Developer *build.xml:*

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Steve Amerige
is for this problem, even if it is (1) above. Enjoy, Steve Amerige SAS Institute, Deployment Developer On 8/3/2012 1:57 PM, Steve Amerige wrote: Hi all, My Ant script is being called with an environment including the classpath that includes the folder containing the groovy-all-1.7.10.jar file.

How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-03 Thread Steve Amerige
rious tasks, macros, etc. that are defined back on the Ant side and I want logging information to go to the same logfile as well. *Can anyone think of a way to execute some Groovy 2.0 code given that the classpath already includes a 1.7 Groovy jar file?* Thanks, Steve Amerige SAS Inst

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
e. Can anyone suggest how I can do the above? Thanks, Steve Amerige SAS Institute, Deployment Software Development On 1/25/2012 1:12 PM, Scot P. Floess wrote: Steve, Definitely gonna need to think about this ;) At this point, "I got nothin'" ;) On Wed, 25 Jan 2012, Steve Am

Eclipse Debugging: Ant and Groovy

2012-01-25 Thread Steve Amerige
ut the above doesn't work. Enjoy, Steve Amerige SAS Institute, Deployment Software Development *build.xml:* *doit.groovy:* import org.apache.tools.ant.Task def groovydoit() {

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
will define the *mytokenizer *macrodef or scriptdef in the same file as the *myentrypoint *and I can use Ant 1.7, Ant-Contrib, and Groovy code. I'm trying to figure out how to define *mytokenizer *to solve this problem. Thanks, Steve Amerige SAS Institute, Deployment Software Development

Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
(essentially, Java), that something might still be possible. Any ideas? Many thanks, Steve Amerige SAS Institute, Deployment Software Development

Ant For Loop: Looping over Ranges with Step and Over PropertySets

2011-12-08 Thread Steve Amerige
t version. Please feel free to improve on the code below and please do share with me directly or in this list with your comments and/or improvements. Again, thanks to Scot for his energetic, fun, and useful contributions! Enjoy! Steve Amerige SAS Institute, Deployment Software Development *

Re: Negative Lookahead and Regexp

2011-11-10 Thread Steve Amerige
I've also wondered if a groovy script might be the best way to go. Any pointers for either of these workarounds? Enjoy, Steve Amerige SAS Institute, Deployment Software Development On 11/10/2011 8:44 AM, Vimil Saju wrote: Th

Re: Negative Lookahead and Regexp

2011-11-10 Thread Steve Amerige
Thanks! Steve Amerige SAS Institute, Deployment Software Development On 11/9/2011 3:40 PM, Steve Amerige wrote: Hi all, Is negative lookahead supported at all in Ant 1.7 and higher (Ant-Contrib, too)? Maybe my syntax is off: The first result should be the empty string and the second r

Negative Lookahead and Regexp

2011-11-09 Thread Steve Amerige
See the regular expression page on this: http://www.regular-expressions.info/lookaround.html Thanks for any assistance! Enjoy, Steve Amerige SAS Institute, Deployment Software Development

Re: Macrodef and If

2011-11-09 Thread Steve Amerige
uming that an element has optional="true", is there a way to test whether the element, in fact, is being used by the caller? This might be useful information to know inside the definition of the macrodef. Thanks for your response, again! Enjoy, Steve Amerige SAS Institute, Deployment

Re: Macrodef and If

2011-11-08 Thread Steve Amerige
like. Also, I'd like to be able to add *optional="true"* to the element. But, I don't know how to check in the macrodef whether an element was actually used or not by the caller (again, in Ant only, possibly with Ant-Contrib). What do you think? Can you improve on the

Macrodef and If

2011-11-08 Thread Steve Amerige
, can you show an example of how the mymacrodef would be coded? Thanks! Steve Amerige SAS Institute, Deployment Software Development

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 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

Checking if a Target Exists

2011-11-03 Thread Steve Amerige
e entire JVM to be loaded (e.g., as with antcall). My environment is Ant 1.7 and allows for the use of Ant-Contrib and Groovy. Any ideas on how to do this? Even better, any solutions anyone have to share?! Thanks, Steve Amerige SAS Institute, Deployment Software Development

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
Steve Amerige SAS Institute, Deployment Software Development On 10/18/2011 7:17 AM, Stefan Bodewig wrote: On 2011-10-18, Steve Amerige wrote: I'm wondering if the task might get you what you're looking for. Although, I'm baffled over the the statement that "Zip archives stor

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
te doesn't fix this issue, it just changes the badness from one form to another. The task doesn't mention the 2-second granularity problem, but even with , the documentation seems to imply that it damages the modes (see the filemode and dirmode attributes). When I get a chance, I&

Generating Ant Documentation

2011-10-11 Thread Steve Amerige
doesn't seem to be well maintained. Nor are the results particularly professional looking. I'm hoping you can recommend something better that is being maintained. Thanks! Enjoy, Steve Amerige SAS Institute, Deployment Software Developer

runtarget vs. macrodef for Procedural Ant Programming

2011-07-28 Thread Steve Amerige
ow significant are they? Because of the syntax and Eclipse issues above, I tend to prefer runtarget over macrodef for zero-argument functions. Is there any compelling reason to argue against using runtarget given the assumptions above? Enjoy

macrodef, runtarget, antcall

2011-07-08 Thread Steve Amerige
whether there are any practical (e.g., perfomance) reasons for favoring macrodef over runtarget. Gotta love this group... good technical discussions here! Enjoy, Steve Amerige SAS Institute, Deployment Software Developer * P.S. On 7/8/2011 11:49 AM, Dominique Devienne wrote: Using and is IMHO a sy

Re: Equivalent: antcall with inheritrefs vs. runtarget

2011-07-08 Thread Steve Amerige
/8/2011 11:27 AM, Perrier, Nathan wrote: No, because antcall creates a new project underneath the hood, whereas runtarget (antcontrib task) does not. -Original Message----- From: Steve Amerige [mailto:steve.amer...@sas.com] Sent: Friday, July 08, 2011 10:21 AM To: Ant Users List Subject:

Equivalent:

2011-07-08 Thread Steve Amerige
Are the two statements below equivalent? Enjoy, Steve Amerige SAS Institute, Deployment Software Developer

Re: Syntax for Names: target, property, macrodef, etc.

2011-07-07 Thread Steve Amerige
me="...") are validated. But, the Ant code doesn't match what is specified by the XML BNF. Also, the XML BNF doesn't seem to allow spaces in a *Name* object. Is there an Ant BNF specification that reflects the code? Is there any formal specification for Ant syntax? Where do

Eclipse @category for Ant?

2011-07-06 Thread Steve Amerige
this would make the outline view in Eclipse better for Ant scripts. Ideas? Thanks, Steve Amerige SAS Institute, Deployment Software Development

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
Is there any notion of scoping? I'd love to hear what Ant is capable of doing with respect to var, property, macrodef, scriptdef, etc. scoping for Ant 1.6, 1.7, and 1.8. Thanks for your help.... it's very much appreciated! Best regards, Steve Amerige SAS Institute, Deployment Softwa

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
ith a dot, so there is never a problem with conflicts. I had considered both the "-" and the "." as a leading character to indicate the name is local. But, you've given a good reason to avoid "-". Thanks! Enjoy, Steve Amerige SAS Institute, Deployment Software D

Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
tion of the Ant language anywhere? Can anyone help me to understand authoritatively what is allowed for name values and where in the Ant manual or specification I can read more? Many thanks for any assistance! Best regards, Steve Amerige SAS Institute, Deployment Software Development