Aw: Re: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Yes, it works! Thank you! > Gesendet: Montag, 29. Mai 2017 um 12:16 Uhr > Von: "Stefan Bodewig" > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to

AW: macrodef with parameters to pass to java task

2017-05-29 Thread jhm
he.org] > Gesendet: Montag, 29. Mai 2017 12:17 > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to define a macro (via macrodef) which > would call the 'java' task

Re: macrodef with parameters to pass to java task

2017-05-29 Thread Stefan Bodewig
On 2017-05-29, Al Le wrote: > in my ant script I'd like to define a macro (via macrodef) which would call > the 'java' task as a part of its body/implementation. > In the java task call in the macro, I want to just specify the main class > name and the classpath

Aw: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
I'm sorry, the last closing tag in the example should of course be "". > Gesendet: Montag, 29. Mai 2017 um 12:04 Uhr > Von: "Al Le" > An: user@ant.apache.org > Betreff: macrodef with parameters to pass to java task > > Hello, > > in my an

macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Hello, in my ant script I'd like to define a macro (via macrodef) which would call the 'java' task as a part of its body/implementation. In the java task call in the macro, I want to just specify the main class name and the classpath. The parameters (which are usually specified

Aw: Re: MacroDef: Setting attribute via API should convert to lowercase

2016-04-17 Thread Al Le
> Thanks, should be fixed in git, will be fixed in 1.9.8 and 1.10.0. That's not fair! I've needed so long to identify the problem and create a bug report, and you fix it so quickly! :-) - To unsubscribe, e-mail: user-unsubscr...

Re: MacroDef: Setting attribute via API should convert to lowercase

2016-04-16 Thread Stefan Bodewig
On 2016-04-17, Al Le wrote: >> Please open a bug ticket. > Created the bug report 59339. Thanks, should be fixed in git, will be fixed in 1.9.8 and 1.10.0. Stefan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For

Re: MacroDef: Setting attribute via API should convert to lowercase

2016-04-16 Thread Al Le
My guess is that you are the first person who's trying what you do and you've simply hit a bug. [...] Please open a bug ticket. Created the bug report 59339. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For addit

Re: MacroDef: Setting attribute via API should convert to lowercase

2016-04-16 Thread Stefan Bodewig
On 2016-04-12, Al Le wrote: > in my ant script, I define a task "MyTask" via "macrodef". The task > has a mandatory attribute "nodeName" (not the camelCase name). > Then I call the task from a javascript snippet: > var myTask = project.createTa

MacroDef: Setting attribute via API should convert to lowercase

2016-04-12 Thread Al Le
Hello, in my ant script, I define a task "MyTask" via "macrodef". The task has a mandatory attribute "nodeName" (not the camelCase name). Then I call the task from a javascript snippet: var myTask = project.createTask('myTask'); myTask.setDynamicAttri

Re: New conditional attributes on use of macrodef?

2013-12-24 Thread Steele, Richard
t; > >> I can't seem to get the new if: and unless: attributes working on uses > of > >> macrodef. For example: > >> > >> >> xmlns:unless="ant:unless"> > >> > >> > >> > >> hi > >

Re: New conditional attributes on use of macrodef?

2013-12-14 Thread Antoine Levy Lambert
s, > > Antoine > On Dec 9, 2013, at 9:22 AM, Steele, Richard wrote: > >> I can't seem to get the new if: and unless: attributes working on uses of >> macrodef. For example: >> >> > xmlns:unless="ant:unless"> >> >> >>

Re: New conditional attributes on use of macrodef?

2013-12-14 Thread Antoine Levy Lambert
Hello Richard, this is a bug. I have entered it in bugzilla id 55885. Regards, Antoine On Dec 9, 2013, at 9:22 AM, Steele, Richard wrote: > I can't seem to get the new if: and unless: attributes working on uses of > macrodef. For example: > > xmlns:u

New conditional attributes on use of macrodef?

2013-12-09 Thread Steele, Richard
I can't seem to get the new if: and unless: attributes working on uses of macrodef. For example: hi If I do "ant hi" from the command line the script runs to completion, and as expected, there's no output:

RE: "Cloning" macrodef

2013-09-27 Thread Martin Gainty
uot;Cloning" macrodef > From: cyril.sa...@gmail.com > To: user@ant.apache.org > > I had previously posted a question asking about macro scoping, I thought > the community might be interested in my solution, perhaps the Ant experts > can tell me how dangerous of a hack it may be? (I&#

"Cloning" macrodef

2013-09-27 Thread Cyril Sagan
I had previously posted a question asking about macro scoping, I thought the community might be interested in my solution, perhaps the Ant experts can tell me how dangerous of a hack it may be? (I'm on Ant 1.7.0, and cannot up-rev) First, restating my question: Subject: "scoping" for macro de

Re: Passing list of classes to exclude from build as macrodef attribute

2012-03-09 Thread Scot P. Floess
I'm fairly certain you may be able to avoid the duplication... From the documentation for javac, "This task forms an implicit FileSet and supports most attributes of (dir becomes srcdir) as well as the nested , and elements." You can probably come up with a way to reuse the notation...

Re: Passing list of classes to exclude from build as macrodef attribute

2012-03-09 Thread Noam Postavsky
On Fri, Mar 9, 2012 at 10:18 AM, Scot P. Floess wrote: > >     >         >     > >     >         >     > > > > Arguably, a little uglier notation... I'm not worried about notation, but I'd like to avoid repetition; using this method I would need to do repeat every excluded class name twice: onc

Re: Passing list of classes to exclude from build as macrodef attribute

2012-03-09 Thread Scot P. Floess
cot P. Floess wrote: Why not just use a child element for the macrodef?  Something like: Ah, I didn't realize that was possible.         That's better, but I also need to get rid of the class files (convert is JavaCard converter and it takes all the class files in the directory). Is

Re: Passing list of classes to exclude from build as macrodef attribute

2012-03-09 Thread Noam Postavsky
On Fri, Mar 9, 2012 at 8:20 AM, Scot P. Floess wrote: > > Why not just use a child element for the macrodef?  Something like: Ah, I didn't realize that was possible. > >     >     > That's better, but I also need to get rid of the class files (convert is JavaCar

Re: Passing list of classes to exclude from build as macrodef attribute

2012-03-09 Thread Scot P. Floess
Why not just use a child element for the macrodef? Something like: Then you can do things like: On Thu, 8 Mar 2012, Noam Postavsky wrote: I have a build.xml with some targets that are identical except for some excluded classes

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
*mytokenizer *task would do substitutions for the %{*/token/*} entries. The requirement is that the tokenization happen not as a pre-process step, but during the execution of the *myentrypoint *target. Compiling code is not available to me. Changing the requirements I need to live with is not possible. I

Re: Filtering Macrodef Elements

2012-01-25 Thread Scot P. Floess
tion of the *myentrypoint *target. Compiling code is not available to me. Changing the requirements I need to live with is not possible. I 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'

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

Re: Filtering Macrodef Elements

2012-01-25 Thread Scot P. Floess
I've misunderstood ;) Flossy On Wed, 25 Jan 2012, Steve Amerige wrote: Hi all, I'm looking to filter a macrodef element before it gets interpreted so as to change it's behavior. Here's an example of what I'm talking about: ... <%{mytask} %{myattribute}="%{myv

Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
Hi all, I'm looking to filter a macrodef element before it gets interpreted so as to change it's behavior. Here's an example of what I'm talking about: ... <%{mytask} %{myattribute}="%{myvalue}"/> %{myblockofcode} ... In other words, I want th

Re: Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
I should mention that doing this will execute just fine as I expect: classname="org.apache.tools.ant.taskdefs.Sequential"/> I just loose that nice macrodef-ish @{param} expansion that

Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
All, I have what may seem like a strange question... I was looking through the source for Ant Contrib's ForTask.java... I see it uses MacroDef internally as well as MacroInstance to execute(). I've got a script def that has a child element entitled "seque

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 &

Re: Macrodef and If

2011-11-09 Thread Steve Amerige
Hi Stefan, 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 think, therefore, my solution of having 2 macrodef elements is as close as I can get: ... ... So, then the question shifts a bit: in a macrodef, ass

Re: Macrodef and If

2011-11-08 Thread Stefan Bodewig
On 2011-11-08, Steve Amerige wrote: > 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 th

Re: Macrodef and If

2011-11-08 Thread Steve Amerige
Hi, Thanks for the feedback. Actually, the use of Ant-Contrib is okay. But, please note that it isn't just a property that I'd want to set. It's really the ability to look at the "return" values of a macrodef and use that result with an task. I do realize that a

RE: Macrodef and If

2011-11-08 Thread Murray, Mike
Assuming no use of AntContrib, you can pass the name of a property to the Macrodef, which it would set. This property could then be used in an Ant condition. I'd give in and use AntContrib though, since it gives you an task. -Original Message- From: Steve Amerige [mailto:steve

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

runtarget vs. macrodef for Procedural Ant Programming

2011-07-28 Thread Steve Amerige
Hi all, What are the pros/cons of choosing runtarget vs. macrodef as "functions" under these assumptions: 1. Ant is going to be used as a procedural language for complex coding. Please just accept this assumption. :-) 2. No more than a page or so of coding should be in any on

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

2011-07-10 Thread Stefan Bodewig
er claimed to be useful 8-) > Maybe I'm looking at the wrong part in the code for where *element* > names (such as macrodef and scriptdef) are validated and where other > names (such as property name="...") are validated. You are. In the end the XML parser decides what is

macrodef, runtarget, antcall

2011-07-08 Thread Steve Amerige
t what I've heard in this mailing list is that I should use instead. Are there any things that I won't be able to do with macrodef that I could do with runtarget (and the other way around)? The one advantage of using runtarget is that in Eclipse it shows up in Outline view as an unfille

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

2011-07-07 Thread Steve Amerige
amp; c != ':') { return false; } } return true; } Maybe I'm looking at the wrong part in the code for where *element* names (such as macrodef and scriptdef) are validated and where other names (such as property na

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

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 11:50 AM, Steve Amerige wrote: > Hi Dominique and all, > > After considering that scriptdef, macrodef, and perhaps some other tags do > not allow neither the "-" nor the "." as an initial character, I'm going to > use the "_&q

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

2011-06-30 Thread Steve Amerige
Hi Dominique and all, After considering that scriptdef, macrodef, and perhaps some other tags do not allow neither the "-" nor the "." as an initial character, I'm going to use the "_" character name prefix to indicate that a name is "local" to

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

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 10:54 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne > wrote: >> On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: >>> I'm looking for the authoritative specification within Ant for the value of >>> the name attribute >> PS: Also

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

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: >> I'm looking for the authoritative specification within Ant for the value of >> the name attribute > PS: Also keep in mind that property expansion does occurs inside these > names

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

2011-06-30 Thread Steve Amerige
Hi Dominique, Thanks for the info. And, also thanks for the specific example of the leading "-" character. Because Ant has only a global namespace for property names (and other names like macrodef, etc.), and for the case that a particular ant script inherits properties from the c

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

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: > I'm looking for the authoritative specification within Ant for the value of > the name attribute as in: > > > > > > and so forth.  I can't find within the Ant manual any BNF that defines what > a valid name is allowed to be. Anything goes

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

2011-06-30 Thread Steve Amerige
types.html#NMTOKEN However, without the Ant manual explicitly telling me that this is something that applies to the name value for property, macrodef, target, etc., I can't be 100% sure. Maybe property allows for one syntax. Maybe macrodef allows for another. Is there a BNF descrip

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
gValue);     self.log(i);     if (i >= 0)     {   project.setProperty("isSubstring","true");     }     ]]>         From: Scot P. Floess To: Eric Fetzer Sent: Thu, January 21, 2010 12:48:23 PM Subject: Re: AppendToProperty

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
time: 0 seconds   From: Scot P. Floess To: Eric Fetzer Sent: Thu, January 21, 2010 11:20:33 AM Subject: Re: AppendToProperty MacroDef Eric: I didn't get a chance to look into any of this today.  Making up some hours for coming in late on Monday :(  Well

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
al with an @: string myString = @"C:\Program Files\JavaScript\is\goofy"; Thanks, Eric From: Scot P. Floess To: Ant Users List Sent: Thu, January 21, 2010 9:08:03 AM Subject: Re: AppendToProperty MacroDef Interesting... OK :( On Thu, 21 Jan 201

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
Sent: Thu, January 21, 2010 8:48:29 AM Subject: Re: AppendToProperty MacroDef Will you echo ${myProp} itself?  For example before the first propertyregex... Sorry, I don't have time right this minute to look at this and type in the example :) On Thu, 21 Jan 2010, Eric Fetzer wrote: A

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
: AppendToProperty MacroDef Will you echo ${myProp} itself?  For example before the first propertyregex... Sorry, I don't have time right this minute to look at this and type in the example :) On Thu, 21 Jan 2010, Eric Fetzer wrote: > And to leverage your \n example: > > > > >

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
ubject: Re: AppendToProperty MacroDef And to leverage your \n example:                                     Produces: main: [echo] tmpProp is:  C:\noDog\Hates\Big\Juicy\Bones [echo] tmpProp is:  C:\\noDog\\Hates\\Big\\Juicy\\Bones [echo] tmpProp is:  C:\noDog\\Hates\

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
a:257)     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 0 seconds From: Eric Fetzer To: Ant Users List Sent: Thu, January 21, 2010 8:28:07 AM Subject: Re: AppendToProperty MacroDef Let me give you a better example Scot.  Substit

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
: AppendToProperty MacroDef Let me give you a better example Scot.  Substitution seems to ignore escape characters entirely.  As the task is written now, I don't imagine there is a way to replace \'s.                                     Produces: main: [echo] tmpP

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
104) Total time: 0 seconds From: Scot P. Floess To: Ant Users List Sent: Thu, January 21, 2010 8:09:33 AM Subject: Re: AppendToProperty MacroDef I might be wrong but I think the output you are seeing is correct - as in the \ is escapeed thereby printing only

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
true; I'll take a look at how to achieve this tomorrow. Thanks! Eric From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Basicall

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fetzer wrote: Well, out of that error and on to the next. It seems that PropertyRegEx has an issue

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
Of(string1) >= 0) then return true; I'll take a look at how to achieve this tomorrow.  Thanks! Eric From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex re

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fetzer wr

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex regexp="\\" replace="" globale="true"/> Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fet

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
ue; I'll take a look at how to achieve this tomorrow.  Thanks! Eric From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Ba

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
gEx has an issue with the "\" as well.  I wrote a different macrodef that works without slashes, but

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Well, out of that error and on to the next.  It seems that PropertyRegEx has an issue with the "\" as well.  I wrote a different macrodef that works without slashes, but not with slashes.  Anyone see a

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, "Scot P. Floess" wrote: You could use Ant Contrib's var task - probably be a little easier :) On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All wo

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
You could use Ant Contrib's var task - probably be a little easier :) value="$...@{var.propertyname}}@{var.stringAppend}"/> On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until

Re: AppendToProperty MacroDef

2010-01-20 Thread Alexey N. Solofnenko
Why not to use instead? With you can pragmatically access parameters instead of macro substitution. - Alexey. On 20.01.2010 12:10, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All works as planned until you slip a "\" in there and then it gets

AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until you slip a "\" in there and then it gets jacked up.  My javascripting has MUCH to be desired.  Any help?                 <![CDATA[     curVal=project.getProperty("

Re: Call a Macrodef using a property?

2009-12-30 Thread Eric Fetzer
macrotask.execute();   ]]>                                                       Thanks Antoine! From: Eric Fetzer To: Ant Users List Sent: Wed, December 30, 2009 10:02:45 AM Subject: Re: Call a Macrodef using a property? Sorry, should have looked

Re: Call a Macrodef using a property?

2009-12-30 Thread Eric Fetzer
Sorry, should have looked better at the library dependencies.  Needed bsf, logFactory, and js.jar.  Thanks again! From: Eric Fetzer To: Ant Users List Sent: Wed, December 30, 2009 9:49:38 AM Subject: Re: Call a Macrodef using a property? Thanks Antoine.  I

Re: Call a Macrodef using a property?

2009-12-30 Thread Eric Fetzer
#x27;m guessing there's a simpler way to allow scripting in Ant. Thanks Again, Eric From: Antoine Levy Lambert To: Ant Users List Sent: Wed, December 30, 2009 9:01:57 AM Subject: Re: Call a Macrodef using a property? Hello Eric, you would have to embed

Re: Call a Macrodef using a property?

2009-12-30 Thread Antoine Levy Lambert
ding page in the manual (under optional tasks, Script) and at the library dependencies. Regards, Antoine Eric Fetzer wrote: Is there any way to call a macrodef with the name of the macrodef held in a property? Like this (of course this doesn't work):

Using a Macrodef from a Subproject

2009-11-03 Thread Dan Turkenkopf
Is it possible to load a macrodef in a subproject and have it usable in the calling project? I've got a task flow that's roughly: ParentProject calls load target on SubProject. SubProject loads antlib containing macrodefs. ParentProject calls loaded macro. I know this isn't suppo

Re: isset within macrodef...

2009-10-05 Thread EetieD
116 Paris > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > > -- View this message in context: http://www.nabble.co

Re: isset within macrodef...

2009-10-05 Thread Francis GALIEGUE
On Mon, Oct 5, 2009 at 09:28, EetieD wrote: > > Hi, > > I am trying to use " has been set. When I use the code below, it never comes into the part after > instead of " > Thanks for helping. > > > >         >         >         >                 >                         [...] > Attributes within

isset within macrodef...

2009-10-05 Thread EetieD
Hi, I am trying to use " -- View this message in context: http://www.nabble.com/isset-within-macrodef...-tp25746232p25746232.html Sent from the Ant - Users mailing list archive at Nabbl

Re: problem with macrodef in ant

2009-07-30 Thread edumudi.viswan...@oracle.com
I got ur point.. thank u very much. Regards, Vishy -Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Wednesday, July 29, 2009 5:34 PM To: Ant Users List Subject: RE: problem with macrodef in ant The only real exploration I did was to review your code ;) When I

RE: problem with macrodef in ant

2009-07-29 Thread Scot P. Floess
Java" fork="yes"> Thanks & Regards, vishy -Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Wednesday, July 29, 2009 2:37 AM To: Ant Users List Subject: RE: problem with macrodef in ant Oh your welcome - I hope it w

RE: problem with macrodef in ant

2009-07-29 Thread edumudi.viswan...@oracle.com
> > > > > > > > Thanks & Regards, vishy -----Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Wednesday, July 29, 2009 2:37 AM To: Ant Us

RE: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
rom Scot P. Floess Sent Tue 7/28/2009 7:58 PM To Ant Users List Subject RE: problem with macrodef in ant No you miss my point completely... I don't think you need to set a property at all :) Look below. Specifically where I comment in your call to the task. I list the comment as &quo

RE: problem with macrodef in ant

2009-07-28 Thread Edumudi Viswanath
roblem with macrodef in ant No you miss my point completely... I don't think you need to set a property at all :) Look below. Specifically where I comment in your call to the task. I list the comment as "C

RE: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
So from what I can see, you are trying to set a property to store your command line argument - when its really unnecessary. Just use it inline as I have done above... No need for another macrodef - just modify the task inside the current macrodef. Also, I note you have a simil

RE: problem with macrodef in ant

2009-07-28 Thread Edumudi Viswanath
as u know, i used only one microdef for 2 different targets. will i try with different macrodef for every target? -Original Message- >From Scot P. Floess Sent Tue 7/28/2009 4:49 PM To Ant Users List Subject RE: problem with macrodef in ant Actually, why don't you just

RE: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
oogle. I tried but no use. Any suggestions? Thanks Vishy -Original Message- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Tuesday, July 28, 2009 8:38 PM To: Ant Users List Subject: RE: problem with macrodef in ant Double check your setting of bindingarg:

RE: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
Well one way I can think of off the top of my head is to use Ant Contrib's task... I need to look over what you did in your macrodef and give it some thought... you do see the problem though? On Tue, 28 Jul 2009, edumudi.viswan...@oracle.com wrote: Is there any alternative solutio

RE: problem with macrodef in ant

2009-07-28 Thread edumudi.viswan...@oracle.com
: problem with macrodef in ant Double check your setting of bindingarg: For your first run, you set the property bingding.arg to: -b "@{bindingfile}" Of course assuming binding.arg wasn't already set ;) For your second run, you cannot reset binding.a

RE: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
ed to reset the property you may need to look to Ant Contrib or do something different... Basically, it gets set correctly the first time but not the second... If you put an right after your element - I think you will see the attribute is set correctly in your macrodef... Its just how yo

RE: problem with macrodef in ant

2009-07-28 Thread edumudi.viswan...@oracle.com
Further to below mail, I found that it failing @ the following code in macrodef. > > > > value="${cxf.etc.dir}/l

RE: problem with macrodef in ant

2009-07-28 Thread edumudi.viswan...@oracle.com
essage- From: Scot P. Floess [mailto:sflo...@nc.rr.com] Sent: Tuesday, July 28, 2009 7:39 PM To: Ant Users List Subject: Re: problem with macrodef in ant I tried your example but cutting down on everything in wsdl2java - meaning just used some statements... It worked fine for me: ant

Re: problem with macrodef in ant

2009-07-28 Thread Scot P. Floess
...@oracle.com wrote: Hi Friends, I have macrodef in build.xml & it took parameters like wsdlfile & bindingfile from wsdl2java tag ie . Now, If I run macrodef with wsdlfile1 & bindingfile1, It works asusually. But if I run same macrodef again with wsdlfile2 & bindingfile2, In that case it

problem with macrodef in ant

2009-07-28 Thread edumudi.viswan...@oracle.com
Hi Friends, I have macrodef in build.xml & it took parameters like wsdlfile & bindingfile from wsdl2java tag ie . Now, If I run macrodef with wsdlfile1 & bindingfile1, It works asusually. But if I run same macrodef again with wsdlfile2 & bindingfile2, In that case it

Re: Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
based upon the attributes in testOutput. What you see here is that attributes get expanded before properties when the macrodef is run. When the forth echo task is run the message attribute is scanned for @{} first and the result is passed to the task itself - which does the property expansion (

Re: Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
value1 = [...@{value}] [echo] 5: Name5 [...@{name}] value5 = [...@{value}] I was "hoping" for myMessage1, myMessage4 and myMessage5 to be expanded based upon the attributes in testOutput. What you see here is that attributes get expanded before properties when the macrodef is run. W

Re: Macrodef attribute expansion question...

2009-07-08 Thread Stefan Bodewig
e5 [...@{name}] value5 = [...@{value}] > I was "hoping" for myMessage1, myMessage4 and myMessage5 to be > expanded based upon the attributes in testOutput. What you see here is that attributes get expanded before properties when the macrodef is run. When the forth echo tas

Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
I have a question about attribute expansion for macrodefs... Consider the following: "${myMessage1}"/>

RE: Re: macrodef and classpath

2009-02-06 Thread cknell
The variable is defined in the build.xml file. The only thing the macrodef file needs to have in advance in the name of the attribute, not the value. -- Charles Knell ckn...@onebox.com - email -Original Message- From: Mark Waschkowski Sent: Fri, 6 Feb 2009 16:28:38 -0500 To

Re: macrodef and classpath

2009-02-06 Thread Mark Waschkowski
Hi, Thanks, but no. I have my macrodefs stored in one file, and I import it in the 'real' build file like so: I want to pass in my 'real' build properties to the macrodefs without defining values in the macrodef file. This works using elements, but not with attributes - am

RE: macrodef and classpath

2009-02-06 Thread cknell
I set up properties in the "init" target and use references to them in the macrodefs. Here's an example I then refer to the property in t

macrodef and classpath

2009-02-06 Thread Mark Waschkowski
Hi all, First time poster, hi! Thanks to the devs for ant, been using it for years now. I tried to do something new by creating a macrodef, but ran into some problems with passing in a classpath, and didn't see any solutions having gone through the mailing list archive. I've created

RE: How can I pass each filename of a fileset to a macrodef?

2008-07-16 Thread Lars Monsees
name of the id: >> >>| >>|-- 1234 >>| | >>| |-- yo1234.order >>| |-- 8211_020_yo1234.pdf >>| >>|-- 1236 >>| >>|-- yo1236.order >> |-- 8211_040_yo1236.pdf >> >> >> I´ve got everyth

Re: How can I pass each filename of a fileset to a macrodef?

2008-07-15 Thread Matt Benson
ng when I enter the > filename to use manually (s. property "todo" in XML > below). > I guess, I have to put all the actions into a > macrodef and pass the filename as a parameter. > > I would enume

How can I pass each filename of a fileset to a macrodef?

2008-07-15 Thread Lars Monsees
040_yo1236.pdf I´ve got everything working when I enter the filename to use manually (s. property "todo" in XML below). I guess, I have to put all the actions into a macrodef and pass the filename as a parameter. I would enumerate all the files in that dir with a fileset, but how can I g

  1   2   >