AW: Ant task to pre-compile JSPs

2009-04-06 Thread Jan.Materne
>What is the Ant task to pre-compile JSPs into class/java >files? I'm using Ant 1.6, WebLogic 9.2.2 with Java 1.5. This is an often asked question, so I added a FAQ entry http://ant.apache.org/faq.html#precompile-jsps "Ant has a built in optional task which was intended for that. But this t

Generics Compiling in Eclipse(3.4) and compilation fails in ANT(1.7). JRE 1.6.0_07

2009-04-06 Thread naveen varma
Hi All   I am seeking help from you guys for my below problem.   I have following classes :   Class TestAntError public class TestANtError { final protected> void add(final K setDS) throws Exception { //synchronized final protected void add(final K

Re: How to access value of propertyfile command line inside script

2009-04-06 Thread David Weintraub
I just played around with the -properties parameter. Whatever propertyfile file you select with -propertfile takes presidence over any properties loaded with the task, but any properties specified with the -D command line parameter takes presidence over the ones set via the -propertyfile p

Re: How to access value of propertyfile command line inside script

2009-04-06 Thread goelshek
Thanks David. I got essentially the same information from supareno above. But yours goes into much more details and I'm sure that would be helpful to other people who are even newer to ant than I am. My original question/curiosity remains: Is there no way to access the name of the file passed in

Re: How to access value of propertyfile command line inside script

2009-04-06 Thread David Weintraub
My build.xml files include something like this: [...] This way, the default name of the build properties file is build.properties, so if the user uses that as their build properties file, they don't have to put anything on the command line. If the user wants to use a different one

Re: How to access value of propertyfile command line inside script

2009-04-06 Thread goelshek
hmm... That's an interesting solution. I'm not a big fan of specifying a property on the command line. Especially with the -D. But this would be a way to get things done. Thanks. I just feel that saying: ant -propertyfile filename.properties test looks a lot better/user-friendly than ant

Re: How to access value of propertyfile command line inside script

2009-04-06 Thread supareno
goelshek, you can use this: ant -D= which in your case will produce ant -Duser.property.file=foo.properties test property file name: ${user.property.file} if in your properties file you define some properties e.g. prop1=foo prop2=bar then, you can access them in ant wi

Re: Installing Apache Ivy 2.1.0-rc1 - missing jar files on the download site for automatic install

2009-04-06 Thread Maarten Coene
Hi Jeff, we have to update these installation instructions... You can download the ivy.jar from a maven repository, like: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0-rc1/ivy-2.1.0-rc1.jar Maarten - Original Message From: jeff.t.bowman To: ivy-u...@ant.apache.org Sent: M

Ant task to pre-compile JSPs

2009-04-06 Thread dave.alvarado
Hi, What is the Ant task to pre-compile JSPs into class/java files? I'm using Ant 1.6, WebLogic 9.2.2 with Java 1.5. Thanks, - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: u

How to access value of propertyfile command line inside script

2009-04-06 Thread goelshek
When I run ant as follows: ant -propertyfile e.g. ant -propertyfile myProps.properties test how do I find out the the name of the properties file that the user passed in the command line argument. So my ant script looks like: Essentially, is there a place/property where the comma

RE: Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
Thank you all. Its done -Original Message- From: Pankaj Arora01 [mailto:pankaj_aror...@infosys.com] Sent: Monday, April 06, 2009 6:13 PM To: juergen.knuple...@icongmbh.de; Ant Users List Subject: RE: Getting substring in ANT Hi Jürgen , Can you please help me in finding the regular expr

Input Handler that will echo default if user hits enter

2009-04-06 Thread Dylan Farre
I have written a small installer tool using Ant. One small problem that I have is related to the input task. I want a Input Handler that will echo default if user hits enter but not if user types in a value (even if the value is the same as the default) and then hits enter. Of course, I can just e

RE: Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
Hi Jürgen , Can you please help me in finding the regular expression that needs to be used? In a loop, @{file} contains "C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01". What regular expression shall I use so that I get NAAM09102NNAQAE_core01? Thanks Pankaj -Original Message

Re: Generics code Compile in Eclipse 3.4 , compilation fails in ANT1.7 (JRE 1.6.0_07)

2009-04-06 Thread NonySingh
Hi Hey guys why are u polluting the actual query with your own query and answers. It would be great if you can post this other query and answers into another thread. Nony NonySingh wrote: > > Hi Experts > > I am seeking help from you guys for my below problem. > > I have following classes

Input Handler that will echo default if user hits enter but not if user types in a value and then hits enter

2009-04-06 Thread Dylan Farre
I have written a small installer tool using Ant. One small problem that I have is related to the input task. I want a Input Handler that will echo default if user hits enter but not if user types in a value (even if the value is the same as the default) and then hits enter. Of course, I can just e

AW: Getting substring in ANT

2009-04-06 Thread Knuplesch, Juergen
As I wrote last week in a different context: I use propertyregex from antcontrib: Property vm.propertyname=${vm.propertyname} -- Jürgen Knuplesch -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophiens

AW: Getting substring in ANT

2009-04-06 Thread Jan.Materne
Maybe ? Jan >-Ursprüngliche Nachricht- >Von: Pankaj Arora01 [mailto:pankaj_aror...@infosys.com] >Gesendet: Montag, 6. April 2009 12:17 >An: Ant Users List >Betreff: Getting substring in ANT > >HI All, > > > >I have following directory structure: > > > >C:\abc\deploy\oracle\NAAM09102NNA

Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
HI All, I have following directory structure: C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01 C:\abc\deploy\oracle\NAAM09102NNAQBX\NAAM09102NNAQBX_ext_point_address01 C:\abc\deploy\oracle\ NAAM09102NNAQCF\NAAM09102NNAQCF_ext_sdo01 I have a variable x that contains following v

[Ant 1.7.1] Problem with records task logging different targets via antcall

2009-04-06 Thread Grimm, Markus
Hi all, I upgraded my ant installation from 1.6.5 to 1.7.1 now I've got the follwing problem with the record-task. Look at this sample script:

Generics code Compile in Eclipse 3.4 , compilation fails in ANT1.7 (JRE 1.6.0_07)

2009-04-06 Thread NonySingh
Hi Experts I am seeking help from you guys for my below problem. I have following classes : Class TestAntError public class TestANtError { final protected> void add(final K setDS) throws Exception { //synchronized final protected void add(final K set