Re: ANT Property substutition in log4j.properties

2009-12-10 Thread David Weintraub
to:anto...@gmx.de] >> Sent: Wednesday, December 09, 2009 6:43 AM >> To: Ant Users List >> Subject: Re: ANT Property substutition in log4j.properties >> >> Hello Jim, >> >> log4j understands system properties, not ant properties. >> >> So mo

RE: ANT Property substutition in log4j.properties

2009-12-09 Thread Jim Garrison
> -Original Message- > From: Antoine Levy Lambert [mailto:anto...@gmx.de] > Sent: Wednesday, December 09, 2009 6:43 AM > To: Ant Users List > Subject: Re: ANT Property substutition in log4j.properties > > Hello Jim, > > log4j understands system properties,

Re: ANT Property substutition in log4j.properties

2009-12-09 Thread Antoine Levy Lambert
Hello Jim, log4j understands system properties, not ant properties. So most likely these ANT_ARGS on linux do not set a system property but just an ant property. System properties are copied to ant properties, but the reverse is not true. Using ANT_OPTS=-Dwork.dir=somepath should work on

ANT Property substutition in log4j.properties

2009-12-08 Thread Jim Garrison
When using ANT_ARGS="-lib $LOG4J -Dwork.dir=somepath -listener org.apache.tools.ant.listener.Log4jListener" where $LOG4J points to a directory containing log4j.jar, with a log4j.properties including: log4j.appender.LogFile.file=${work.dir}/build.log On Windows ${work.dir} in log4j.pro

Re: Setting ant property with bash command result

2009-09-28 Thread supareno
altern a écrit : How could I set ant property the value which is the result of bash script execution? For example, I need to have target which utilizes svn and bash utilities in order to control build execution. Speaking more specifically, target that I'm trying to create will be used to d

Setting ant property with bash command result

2009-09-28 Thread altern
How could I set ant property the value which is the result of bash script execution? For example, I need to have target which utilizes svn and bash utilities in order to control build execution. Speaking more specifically, target that I'm trying to create will be used to define, whether ther

Call-Stack of a target (WAS Ant property ant.java.version how does Ant detect this property?)

2008-03-17 Thread Jan.Materne
ar,foobar Jan > -Ursprüngliche Nachricht- > Von: David Weintraub [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 17. März 2008 19:26 > An: Ant Users List > Betreff: Re: Ant property ant.java.version how does Ant > detect this property? > > You know, there's one t

Re: Ant property ant.java.version how does Ant detect this property?

2008-03-17 Thread David Weintraub
;Ant provides access to all system properties ... For a list of system > properties see > the Javadoc of System.getProperties." > > > Jan > > > -----Ursprüngliche Nachricht- > > Von: David Brown [mailto:[EMAIL PROTECTED] > > Gesendet: Montag, 17. Mär

AW: Ant property ant.java.version how does Ant detect this property?

2008-03-16 Thread Jan.Materne
uot; Jan > -Ursprüngliche Nachricht- > Von: David Brown [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 17. März 2008 03:34 > An: user@ant.apache.org > Betreff: Ant property ant.java.version how does Ant detect > this property? > > Hello Steve and all the Ant gurus and

Ant property ant.java.version how does Ant detect this property?

2008-03-16 Thread David Brown
Hello Steve and all the Ant gurus and users. I know the Ant built-in property: ant.java.version is an property detected by Ant. Does Ant detect this property from some ubiquitous environment variable such as: JAVA_HOME? I have several JDKs installed: 1.4.x, 1.5.x, 1.6.x etc. What is needed to ge

AW: can we use an ANT property in the DOCTYPE settings?

2008-01-28 Thread Jan.Materne
gt; Betreff: Re: can we use an ANT property in the DOCTYPE settings? > > I don't think it's possible. Maybe you should generate > another ant file from > main build and call the subbuild from there. Maybe generating > subbuild.xmllike this: > > >filtering=&

Re: can we use an ANT property in the DOCTYPE settings?

2008-01-28 Thread Antti Luoma
t tested this actually, but I thin :) it should work.. -- -Antti- 2008/1/28, Nagender Kumar Mallik <[EMAIL PROTECTED]>: > > Hey everyone, > > can we use an ANT property in the Doctype settings? > > I basically want to do: > > ]> > > regards, > Nagender > >

can we use an ANT property in the DOCTYPE settings?

2008-01-28 Thread Nagender Kumar Mallik
Hey everyone, can we use an ANT property in the Doctype settings? I basically want to do: ]> regards, Nagender

Re: Getting Ant property from Java class

2007-07-25 Thread Matt Benson
--- Chris <[EMAIL PROTECTED]> wrote: > How do I set a property equal to a value obtained > from a Java class? > > For example, in our app we define the version in a > constant: > > class MyClass { > static public final String VERSION = "1.0"; > } > > In build.xml, I'd like to assign a ver

Getting Ant property from Java class

2007-07-25 Thread Chris
How do I set a property equal to a value obtained from a Java class? For example, in our app we define the version in a constant: class MyClass { static public final String VERSION = "1.0"; } In build.xml, I'd like to assign a version property: and then use it to, say, name the .jar fil

Re: Copy property from a property-file into an Ant-property

2007-06-14 Thread David Weintraub
14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, is it possible to copy the value from a property-file to an Ant-property? Regards, Jason __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr

Copy property from a property-file into an Ant-property

2007-06-14 Thread JasDA
Hi, is it possible to copy the value from a property-file to an Ant-property? Regards, Jason __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http

AW: ant property not set question

2007-04-18 Thread Jan.Materne
An: Ant Users List >Betreff: RE: ant property not set question > >Forget about is.dev.home, you don't need it. Just use the environment >variable only... > >message="IS_DEV_HOME/is.dev.home variable >is not set."/> > >-Rob Anderson > > >> -

RE: ant property not set question

2007-04-18 Thread Anderson, Rob (Global Trade)
Forget about is.dev.home, you don't need it. Just use the environment variable only... -Rob Anderson > -Original Message- > From: Philip Swenson [mailto:[EMAIL PROTECTED] > Sent: Friday, April 13, 2007 1:06 PM > To: user@ant.apache.org > Subject: ant property not

Re: ant property not set question

2007-04-16 Thread Dominique Devienne
On 4/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: This works for me: '${is.dev.home}' Ah, I forgot about that one! Thanks, it's simpler. Now that you mention it, I think I've even used it in the past. Thanks Jan. --DD -

AW: ant property not set question

2007-04-16 Thread Jan.Materne
This works for me: '${is.dev.home}' Jan >-Ursprüngliche Nachricht- >Von: Dominique Devienne [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 13. April 2007 23:18 >An: Ant Users List >Betreff: Re: ant

Re: ant property not set question

2007-04-13 Thread Dominique Devienne
On 4/13/07, Philip Swenson <[EMAIL PROTECTED]> wrote: I have a property that is declared like this: You must wrap your above inside a , to only set is.dev.home when it's not already set, and only when IS_DEV_HOME env. var does exist. Or use Ant-Contrib's to avoid the additional , with th

ant property not set question

2007-04-13 Thread Philip Swenson
I have a property that is declared like this: So if an environment variable is set then the value gets set. However if a build.properties file exists, this value can be overridden in the properties file like : is.dev.home=c:/blah This works fine Howeverk, I want to validate t

AW: Ant Property Task - Environment Variables

2006-12-20 Thread Jan.Materne
ewvc/ant/core/trunk/docs/manual/CoreTasks/property.html?view=co >-Ursprüngliche Nachricht- >Von: Adeel Omer [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 19. Dezember 2006 20:29 >An: user@ant.apache.org >Betreff: Ant Property Task - Environment Variables > >Hi,

Ant Property Task - Environment Variables

2006-12-19 Thread Adeel Omer
Hi, The Property task documentation (Ant 1.6.5) states that fetching environment variables using the and subsequently accessing environment variables using xyz.Env_Var is supported on "select" operating systems. Can anyone direct me to a listing of these "select" operating systems? Thanks a lo

Re: Zero-Padding an Int Ant Property

2006-08-25 Thread Ryan Sawatzky
o load the generated property file after having used so should do the job. Regards, Antoine Original-Nachricht Datum: Thu, 24 Aug 2006 14:39:32 -0500 Von: Ryan Sawatzky <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: Zero-Padding an Int Ant Property

Re: Zero-Padding an Int Ant Property

2006-08-24 Thread Antoine Levy-Lambert
, Antoine Original-Nachricht Datum: Thu, 24 Aug 2006 14:39:32 -0500 Von: Ryan Sawatzky <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: Zero-Padding an Int Ant Property > Hello all, > > I have an Ant property file that contains a project build number > property. This

Zero-Padding an Int Ant Property

2006-08-24 Thread Ryan Sawatzky
Hello all, I have an Ant property file that contains a project build number property. This build number is incremented every time the project is compiled. I distribute my application as a versioned JAR file through Web Start, and I want to append the build number to the name of my JAR file

RE: Ant Property Names

2006-02-08 Thread Paul Duncan
Stefan Thanks for the reply; that answers my question perfectly. Paul -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 4:54 AM To: user@ant.apache.org Subject: Re: Ant Property Names On Tue, 7 Feb 2006, Paul Duncan <[EMAIL PROTEC

Re: Ant Property Names

2006-02-07 Thread Stefan Bodewig
On Tue, 7 Feb 2006, Paul Duncan <[EMAIL PROTECTED]> wrote: > How long can an Ant Property name be? No limit. > What characters am I allowed to put in an Ant property name? Any. But you won't be able to use a property whose name contains the character } from inside your buil

Ant Property Names

2006-02-07 Thread Paul Duncan
Hello, How long can an Ant Property name be? What characters am I allowed to put in an Ant property name? I am setting Ant properties with names set according to the values of macrodef attributes and want to ensure that I will not potentially attempt to set an invalid name. I am using Ant

Re: XSLT Param from ANT Property.

2005-11-08 Thread Dominique Devienne
> Ok, I think the issue was that I had fixed my ANT file (which had been > setting the param incorrectly) but there was some kind of up-to-date > check, and since neither the source XML nor the XSLT files had changed > the output xml wasn't getting regenerated. Right. does a timestamp check. Use

Re: XSLT Param from ANT Property.

2005-11-08 Thread Robert r. Sanders
Ok, I think the issue was that I had fixed my ANT file (which had been setting the param incorrectly) but there was some kind of up-to-date check, and since neither the source XML nor the XSLT files had changed the output xml wasn't getting regenerated. Dominique Devienne wrote: I'm using the

Re: XSLT Param from ANT Property.

2005-11-08 Thread Dominique Devienne
> I'm using the XSLT task from within ANT; and can't seem to get the > parameter to work as it seems it should. > > When I open the output xml; the params have been set to the strings > "props.prop1" and "props.prop2" instead of the runtime values. Am I > doing something wrong? Any help would be

XSLT Param from ANT Property.

2005-11-08 Thread Robert r. Sanders
I'm using ANT 1.6.5; Java 1.5.0_04; Win 2000 sp4. I'm using the XSLT task from within ANT; and can't seem to get the parameter to work as it seems it should. After trying to look it up I haven't been able to find anything useful in explaining it. Basically I have:

AW: AW: Copy files according ant property

2005-10-04 Thread Jan.Materne
AW: Copy files according ant property > >[EMAIL PROTECTED] wrote: >> Sure - it´s not in 1.6.5. >> is in svn head and maybe in 1.7 - but I think we will >> delete that task, especially because itself should now handle >> nested s, because paths are ResourceCollecti

Re: AW: Copy files according ant property

2005-09-29 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Sure - it´s not in 1.6.5. is in svn head and maybe in 1.7 - but I think we will delete that task, especially because itself should now handle nested s, because paths are ResourceCollections. And Stefan added that just yesterday :-) hey, I use copypath. ---

Re: AW: Copy files according ant property

2005-09-29 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > Sure - it´s not in 1.6.5. > is in svn head and maybe in 1.7 - but I > think we will delete that task, especially because > itself > should now handle nested s, because paths are > ResourceCollections. And Stefan added that just > yesterday :-) IIRC copypath does h

AW: Copy files according ant property

2005-09-29 Thread Jan.Materne
cházka [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 29. September 2005 17:04 >An: Ant Users List >Betreff: Re: Copy files according ant property > >Hi. > > I not found in documenation for version 1.6.5 :-( > >-- Original message --

Re: Copy files according ant property

2005-09-29 Thread Tomáš Procházka
Hi. I not found in documenation for version 1.6.5 :-( -- Original message -- From: Steve Loughran <[EMAIL PROTECTED]> Subject: Copy files according ant property Date: Tuesday, September 27, 2005, 6:57:56 PM Attac

Re: Copy files according ant property

2005-09-27 Thread Steve Loughran
Tomáš Procházka wrote: Hi. S> There is some stuff in ant 1.7 to do it, specifically the S> task copies all files in a path and no directories, and the task S> itself is soon to be enhanced. Thanks you. And when will be ANT 1.7 release? there is no particular timetable, but I suspect

Re: Copy files according ant property

2005-09-27 Thread Tomáš Procházka
list of files and directories, where list is set as property with items separated with : or ; -- Original message -- From: Steve Loughran <[EMAIL PROTECTED]> Subject: Copy files according ant property Date: Tuesday, Septem

Re: Copy files according ant property

2005-09-27 Thread Steve Loughran
Tomáš Procházka wrote: Hi. Netbeans set in project.properties classpath for project: javac.classpath=\ ${file.reference.hsqldb.jar}:\ ${file.reference.dom4j-1.6.1.jar}:\ ${libs.layoutext.classpath}:\ ... Exist any way to copy all this jar files to dist/lib folder? Netbea

Copy files according ant property

2005-09-27 Thread Tomáš Procházka
Hi. Netbeans set in project.properties classpath for project: javac.classpath=\ ${file.reference.hsqldb.jar}:\ ${file.reference.dom4j-1.6.1.jar}:\ ${libs.layoutext.classpath}:\ ... Exist any way to copy all this jar files to dist/lib folder? Netbeans use ':' as separating ch

Re: AW: ant property

2005-02-25 Thread Jeffrey E Care
"Ant Users List" To Ant Users List cc Subject Re: AW: ant property Why not to use a custom ANT build? - Alexey. Douglas Kramer wrote: > > Wish I could, but my application (MIF Doclet) currently overrides > classes in tools.jar, so that's not an option. I must

Re: AW: ant property

2005-02-25 Thread Alexey N. Solofnenko
Why not to use a custom ANT build? - Alexey. Douglas Kramer wrote: Wish I could, but my application (MIF Doclet) currently overrides classes in tools.jar, so that's not an option. I must be able to set the classpath to MIFDoclet.class ahead of tools.jar (which is ${run.classpath.javadoc}). Later,

Re: AW: ant property

2005-02-25 Thread Douglas Kramer
James Fuller wrote: Douglas Kramer wrote: I'd like to set up my Ant script to load one set of paths if I'm building on one machine and a different set of paths when building on a another machine. this can be achieved in a variety of ways; Good, thanks. In build.properties I have: run.classpath.java

Re: AW: ant property

2005-02-25 Thread James Fuller
Douglas Kramer wrote: I'd like to set up my Ant script to load one set of paths if I'm building on one machine and a different set of paths when building on a another machine. this can be achieved in a variety of ways; In build.properties I have: run.classpath.javadoc="${JAVA_HOME}/lib/tools.jar" r

Re: AW: ant property

2005-02-25 Thread Douglas Kramer
I'd like to set up my Ant script to load one set of paths if I'm building on one machine and a different set of paths when building on a another machine. In build.properties I have: run.classpath.javadoc="${JAVA_HOME}/lib/tools.jar" run.classpath.mifdoclet="${WORKDIR}/build/jar/mifdoclet.jar" My sc

AW: ant property

2005-02-25 Thread Jan . Materne
You can use the task of AntContrib or using

Re: ant property

2005-02-25 Thread James Fuller
Rajiv Jaitly wrote: Please read the disclaimer at the bottom of this e-mail. Hi, Is there any was in Ant to reset (assign a new value) a property that was set previously ? As i understa

Re: ant property

2005-02-25 Thread Eric Wood
verride them. Call your target using antcall with the attribute inheritAll="false". Now within the target override the values by reassigning them with new values. - Sujeet - Original Message - From: "Rajiv Jaitly" <[EMAIL PROTECTED]> To: "Ant Users List&

Re: ant property

2005-02-25 Thread Sujeet Banerjee \(Ext. 3283\)
ajiv Jaitly" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Friday, February 25, 2005 7:11 PM Subject: ant property Please read the disclaimer at the bottom of this e-mail.

ant property

2005-02-25 Thread Rajiv Jaitly
Please read the disclaimer at the bottom of this e-mail. Hi, Is there any was in Ant to reset (assign a new value) a property that was set previously ? As i understand ant properties

Re: Escaping ant property values

2004-12-09 Thread Yves Martin
Yves Martin <[EMAIL PROTECTED]> writes: > Jacob Kjome <[EMAIL PROTECTED]> writes: > >> Quoting Matt Benson <[EMAIL PROTECTED]>: >> >>> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property >>> >> >> This is not mentioned in the FAQ, but this can also be done in a properties >> file >>

Re: Escaping ant property values

2004-12-09 Thread Yves Martin
Jacob Kjome <[EMAIL PROTECTED]> writes: > Quoting Matt Benson <[EMAIL PROTECTED]>: > >> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property >> > > This is not mentioned in the FAQ, but this can also be done in a properties > file > as follows... > > my.auto-deploy=$${${my.server}.au

Re: Escaping ant property values

2004-12-08 Thread Jacob Kjome
an add it to the FAQ? Jake > -Matt > --- Laran Evans <[EMAIL PROTECTED]> wrote: > > > Is it possible to escape ant property values? > > > > I'd like to do something like this: > > > > --- > > > > > > > value="C:/bea/appl

Re: Escaping ant property values

2004-12-08 Thread Matt Benson
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property -Matt --- Laran Evans <[EMAIL PROTECTED]> wrote: > Is it possible to escape ant property values? > > I'd like to do something like this: > > --- > > > value="C:/bea/applications&qu

Escaping ant property values

2004-12-08 Thread Laran Evans
Is it possible to escape ant property values? I'd like to do something like this: --- --- Any suggestions? -- Laran Evans - Cornell University p: (607) 255-6864 f: (607) 255-0327 - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: passing Ant property values to new build

2004-11-05 Thread Casey Daniell
D] Sent: Friday, November 05, 2004 11:14 AM To: Ant Users List Subject: RE: passing Ant property values to new build > From: Casey Daniell [mailto:[EMAIL PROTECTED] > > for some reason if I pass in a value that is the same as the > property name I am trying to use it doesn't evaluate t

RE: passing Ant property values to new build

2004-11-05 Thread Dominique Devienne
> From: Casey Daniell [mailto:[EMAIL PROTECTED] > > for some reason if I pass in a value that is the same as the > property name I am trying to use it doesn't evaluate the var > properly. A bug perhaps? I am using ANT 1.6.2 Hmmm... Would you mind creating a small Ant snippet that demonstrates tha

RE: passing Ant property values to new build

2004-11-05 Thread Casey Daniell
AM To: [EMAIL PROTECTED] Subject: AW: passing Ant property values to new build Is the property set? Do a $${tools.home}=${tools.home} directly before the . Jan > -Ursprüngliche Nachricht- > Von: Casey Daniell [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 5. November 2

RE: passing Ant property values to new build

2004-11-05 Thread Dominique Devienne
> From: Casey Daniell [mailto:[EMAIL PROTECTED] > Here is the problem. I am have one ant script calling another via the ant > task. I want the value of a property to be transmitted to the new build > not > the string literal itself. > > Ex. >basedir == /foo (not in any syntax) > > > >

AW: passing Ant property values to new build

2004-11-05 Thread Jan . Materne
Is the property set? Do a $${tools.home}=${tools.home} directly before the . Jan > -Ursprüngliche Nachricht- > Von: Casey Daniell [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 5. November 2004 17:45 > An: '[EMAIL PROTECTED]' > Betreff: passing Ant pro

passing Ant property values to new build

2004-11-05 Thread Casey Daniell
All, I am a long time ant user but for some reason I am stumped on this, maybe its too early in the morning. Here is the problem. I am have one ant script calling another via the ant task. I want the value of a property to be transmitted to the new build not the string literal itself. Ex.

Scope of the ANT property!!!

2003-12-12 Thread Nagarajan Murugesan
Hi All, What is the scope of the property value in a build file. I want to change the property value in between the build process. For Example: project name="Installation" default="run"> ${count} ${count}