540 character limit in sql task

2002-02-13 Thread Scott Thompson
Can anyone confirm/deny of the sql task has a 540 character limit on the SQL statements? I'm hitting such a limit, though I'm not sure if it's Ant or my JDBC driver doing this. (I'm sending mail to BEA as well) -ScottT -- To unsubscribe, e-mail: For additional com

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Mark Derricutt
H, and the lack of cross platformability is where? As long as you have tools.jar on your class path, load the load com.sun.tools.javac.Main and work with it. I've never done it myself, but I'm just looking at the JEdit JCompiler plugin code which does it, doesn't seem to hard. And I'm gu

Re: Any Windows experts out there????

2002-02-13 Thread dIon Gillard
Kevin Toomey wrote: >Does anyone know why Ant running under a Service on W2K might not have >access to all environment variables (specifically Path)? > Does it have the 'interact with desktop' checkbox on in the service definition? -- dIon Gillard, Multitask Consulting http://www.multitask.com

Any Windows experts out there????

2002-02-13 Thread Kevin Toomey
Does anyone know why Ant running under a Service on W2K might not have access to all environment variables (specifically Path)? The following target gets different results depending on if it is run from a command prompt or within a service: If I run Ant in a command prompt, I get: [propert

Using gcc with Ant

2002-02-13 Thread Michael J McGonagle
Hello All, I have heard remarks made to people who are creating an Ant task for 'gcc'? I am also interested in its cousin 'gcj' as well. I would be interested in helping to test these things as I have a need for them myself. Does anyone know who might be involved with this sort of thing? Thanks

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Blaine Kendall
I'm having the same problem. I'm building a web front end to start our builds. I have existing Ant scripts which run fine from the command line and the path settings include everything needed. My problem is when I try to run the same ant scripts by calling ant from java, the path & classpath envi

Re: Environment Variable

2002-02-13 Thread Conor MacNeill
Pravin Pillai wrote: > Guys: > > Can i access an environment variable using ant??? > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > Depends on your operating system Read this http://jakarta.apache.org/an

Re: Environment Variable

2002-02-13 Thread Diane Holt
--- Pravin Pillai <[EMAIL PROTECTED]> wrote: > Can i access an environment variable using ant??? Yes -- see the 'environment' attribute in the "Parameters" table of the Property task description in the doc. Diane = ([EMAIL PROTECTED]) _

Re: Environment Variable

2002-02-13 Thread Magesh Umasankar
From: "Pravin Pillai" <[EMAIL PROTECTED]> > > Guys: > > Can i access an environment variable using ant??? > Did you read the manual under BuiltIn tasks->Property??? Cheers, Magesh -- To unsubscribe, e-mail: For additional commands, e-mail:

Environment Variable

2002-02-13 Thread Pravin Pillai
Guys: Can i access an environment variable using ant??? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: -nowarn for the Javac target

2002-02-13 Thread Erik Hatcher
Ummm, where exactly were you looking? Did you try org.apache.tools.ant.taskdefs.Javac? nowarn defaults to off, and it says so in the documentation also. It is most definitely used. Erik - Original Message - From: "David Roe" <[EMAIL PROTECTED]> To: "Ant-User@Jakarta. Apache. Org"

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Steve Loughran
- Original Message - From: "Jay Riddell" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]>; "Conor MacNeill" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 16:16 Subject: Re: Calling Ant from Java: An example please ? > Thank you all that have responded. . . but I sti

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Paul Cody
(1) sun.tools.javac.main is about as cross-platform as you can get. (2) Call project.init() early. (3) Add a build listener, you won't see diddly without it. (4) Baby steps. Get simple things working first, then ramp up. Paul > -Original Message- > From: Jay Riddell [mailto:[EMAIL PROTE

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
Yes, that would be an option . . . but a more time-intensive option than I was hoping for ;-) - Also, Mark asked why didn't I just call the compiler (instead of Ant)? Because I am trying to write cross-platform code and I was planning on using Ant as my "cross-platform compiler". - Unle

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Erik Hatcher
How about just digging into Ant's source code and reverse engineering it? It tells all! :) You can use the Project.createTask - which will set up more than just creating a task yourself. Is that the kind of thing that you are looking for? Erik - Original Message - From: "Jay Ridd

-nowarn for the Javac target

2002-02-13 Thread David Roe
HI, What I would like to do is turn on the nowarn option in javac. This seems like it would be common request but I haven't been able to find out how! I have scoured the FAQ's and have seen that this is an option with jikes but it isn't mentioned for javac there or in the documentation for the

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Mark Derricutt
Why not just call the java copiler directly, and not bother with ant? --On Wednesday, 13 February 2002 4:16 p.m. -0800 Jay Riddell <[EMAIL PROTECTED]> wrote: > What this means is that I *REALLY* want to figure out how to use the ANT > API to run the Javac task.

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Paul Cody
I would approach this by: (1) Setting up a test case where you can execute the task within your application using a build.xml file. That's a good start. (2) Create the Target and Task objects explicitly and add them to the Project. The ProjectHelper task source code does exactly that in respon

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
Interesting . . . thanks for the link. jenesis is kinda what I am doing (although I don't have as intricate and detailed a Language model as you have.) Thanks. On 2/13/02 1:11 PM, "Paul Cody" <[EMAIL PROTECTED]> wrote: >> >> On Wednesday 13 February 2002 18:49, you wrote: >>> Thanks for the

RE: Wars and filesets....

2002-02-13 Thread Mark Derricutt
Yup, have since found this thanks to others on the list, and works like a treat --On Wednesday, 13 February 2002 4:14 p.m. -0500 Phil Surette <[EMAIL PROTECTED]> wrote: > Will a filterset work for you? -- \m/ -- "...if I seem super human I have been

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
Thank you all that have responded. . . but I still need help ;-) Of all the response so far, the most relevant of which has been "Conor MacNeill" <[EMAIL PROTECTED]> who quoted some of Ant's testcases. However, I'd rather not implement it where it requires the use of an build.xml file. Reasons?

Re: background

2002-02-13 Thread Bill Burton
Hello, Sujan Digumarti wrote: > > by using the exec task and passing the executable as startWebLogic.sh . > i 've tried passing the argument "&" by doing & so that the script runs > in the background .. but the control doesn't come back to ant .. will > checkout the parallel task.. The task wo

problem with java task and jar files

2002-02-13 Thread Mallampati, Suresh
Hi, I invoked java task (weblogic.ejbc). Provided a jar file as input and was expecting a jar file as output. On one win2k machine, it worked fine, the process took 22 secs. Repeated the same on another win2k. "weblogic.ejbc" was doing most of its processing within almost 22 secs. But then buildin

RE: What does a valid manifest look like?

2002-02-13 Thread Paul Gregoire
Heres a snip of code i use to create a manifest followed by the manifest file output that it generates CODE cut - // create a maifest Manifest man = new Manifest(); // get the attributes Attributes attr = man.getMainAttributes(); //

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Paul Gregoire
I don't know if I want to start a flame war but... If you were using C# - your code wont work on Mac, Linux, or Solaris! real benefit there.. :) -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 1:40 PM To: Ant Users List Subject: Re: C

RE: What does a valid manifest look like?

2002-02-13 Thread Mallampati, Suresh
The Name attributes should be separated by a new line from the main attributes. If you want to give the same input as you are doing now, you can try inserting a new line at the beginning of the manifest file, should work.(So the first line is empty) Suresh -Original Message- From: Steve

RE: What does a valid manifest look like?

2002-02-13 Thread Steve Donie
the jar task automatically adds the Manifest-Version and Created-by attributes - they are showing up in the manifest.mf in the jar file. -Original Message- From: Eddie Bernard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:41 PM To: 'Ant Users List' Subject:

Re: Property of used target

2002-02-13 Thread Diane Holt
--- Michael Wenig <[EMAIL PROTECTED]> wrote: > I have a script which builds distributables for 2 systems (production > and test-system). > Which system will be used depends on command-line-called target. Because > there are differences between these distributables (e.g. > deployment-descriptors) I

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Conor MacNeill
Jay Riddell wrote: > Yes, I am TRYING to do that. > But I am failing miserably. > There are NO EXAMPLES on how to do this; there is only Javadoc > on the API itself (with very little extra explanatory text). > > OK, maybe I am not being specific enough here. > > Here is the java code that I hav

Re: What does a valid manifest look like?

2002-02-13 Thread Conor MacNeill
Steve Donie wrote: > Very frustrating. I have a manifest file (called MyManifest.mf) that looks > like this: > > Name: com/lgc/infra/dsp/ > Specification-Title: DecisionSpace SDK, dsp project > Specification-Vendor: Landmark Graphics Corporation > Specification-Version: 2003.2.0.0 > Implementati

RE: What does a valid manifest look like?

2002-02-13 Thread Eddie Bernard
I think you may need to add the following as the first line to your manifest: Manifest-Version: 1.0 -Original Message- From: Steve Donie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:51 AM To: 'Ant-User ([EMAIL PROTECTED])' Subject: What does a valid manifest look li

What does a valid manifest look like?

2002-02-13 Thread Steve Donie
Very frustrating. I have a manifest file (called MyManifest.mf) that looks like this: Name: com/lgc/infra/dsp/ Specification-Title: DecisionSpace SDK, dsp project Specification-Vendor: Landmark Graphics Corporation Specification-Version: 2003.2.0.0 Implementation-Title: DecsisionSpace Infrastruct

Is there a Jython build task

2002-02-13 Thread Jeffery Lee Wilsbacher
I looked around on the net but didn't see anything. Is there a pre-existing Jython ant task? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Steve Loughran
- Original Message - From: "Jay Riddell" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]>; "Diane Holt" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 10:49 Subject: Re: Calling Ant from Java: An example please ? > Thanks for the quick response . . . but no ;-) > >

Problems with on W2K (was: Problems with Execute on W2K)

2002-02-13 Thread Kevin Toomey
Yes, I had heard that as well, the question is why. So here's another clue, I do a simple test in my build.xml: If I run my server in a command prompt, I get: [property] Loading Environment myenv. Setting project property: myenv.HOMEDRIVE -> c: Setting project property: myenv.JAVA_HOME ->

Re: extend a project

2002-02-13 Thread T Master
This may well lead onto having private and protected target access-modifiers! - Original Message - From: "Maria Ivanova" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 9:39 AM Subject: extend a project > Is it possible one project to extend another, in t

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
This page at Eclipse seems to speak to Eclipse <-> Ant integration: http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ant-home/ma in.html >From this description, I don't see that Eclipse is going to be using the Ant APIs (unless I'm misunderstanding it). It looks like that they're

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Paul Cody
> > On Wednesday 13 February 2002 18:49, you wrote: > > Thanks for the quick response . . . but no ;-) > > > > I want to accomplish this in Java by calling the Ant API. > > > > I need to dynamically: > > - generate source code > > - compile what was generated > > - classload it > > - exe

RE: Wars and filesets....

2002-02-13 Thread Phil Surette
Will a filterset work for you? e.g. MyServlet mypkg.MyServlet sessionTimeout @sessionTimeout Then you could copy the source war files to some other location usin

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread David Goodenough
You could try downloading the source of Eclipse (www.eclipse.org) which uses Ant in very much the way you indicate, and that would be a worked example. On Wednesday 13 February 2002 18:49, you wrote: > Thanks for the quick response . . . but no ;-) > > I want to accomplish this in Java by callin

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Mark Derricutt
Sounds like you're wanting to do something like a scripting language, but with proper compiled code? Maybe you could look at BeanShell (www.beanshell.org), java scripting object, scripts are all in java, very easy to work with, basically you call *hunts for his code*: import bsh.Interpreter;

Wars and filesets....

2002-02-13 Thread Mark Derricutt
Two questions, as part of my build, I want to to make two war files, that are exactly the same, except for the contents of 1-2 files. The first one is my web.xml file. I want to build two wars which have different servlet init params, now, I could do with this having two web.xml files, and u

Antidote

2002-02-13 Thread Owen Corpening
Just trolling for info on where the antidote project is at. I posted a question to that affect last saturday but got no responses so here I go again. I would like to help out: who is currently working on it? owen - Do You Yahoo!? Send FREE Valentine eCards with

RE: Calling Ant from Java: An example please ?

2002-02-13 Thread Dominique Devienne
Hi Jay, Well, instead of programmatically generate Java source code, maybe you should programmatically generate Jython code. The latter can be automatically compiled to bytecode by the Jython compiler/interpreter, and a Jython class can extend a Java class (and vice versa if you can believe me!!!

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
Yes, I am TRYING to do that. But I am failing miserably. There are NO EXAMPLES on how to do this; there is only Javadoc on the API itself (with very little extra explanatory text). OK, maybe I am not being specific enough here. Here is the java code that I have written that attempts to compile a

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Kevin Toomey
It sounds like you want to take a look at the org.apache.tools.ant package in the API. Using the Project, Target, and Task classes, you could implement Diane's example via a Java program. --- Jay Riddell <[EMAIL PROTECTED]> wrote: > Thanks for the quick response . . . but no ;-) > > I want to

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
Thanks for the quick response . . . but no ;-) I want to accomplish this in Java by calling the Ant API. I need to dynamically: - generate source code - compile what was generated - classload it - execute it And I need to do all this as part of a larger application. How's THAT for fun

Re: Calling Ant from Java: An example please ?

2002-02-13 Thread Diane Holt
--- Jay Riddell <[EMAIL PROTECTED]> wrote: > I have an application where I need to dynamically generate Java source > code, compile it, load it and then execute that code. [snip] > However, I'm sure that I'm not doing anything really difficult...I'm > just doing it wrong ;-). A "compile Hello Wor

Re: How to use more than one compiler during build of a project?

2002-02-13 Thread Steve Loughran
- Original Message - From: "Tim Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 03:02 Subject: How to use more than one compiler during build of a project? > Hi > > I am probably misunderstanding the way that an ant build works, but here > goes. > >

Calling Ant from Java: An example please ?

2002-02-13 Thread Jay Riddell
I have an application where I need to dynamically generate Java source code, compile it, load it and then execute that code. I see the Ant API as an excellent method to help me get this done. However, I haven't been able to get it to work. After setting everything up, I get the following excepti

Re: Ant task for redeploying web applications on Tomcat

2002-02-13 Thread Steve Loughran
- Original Message - From: "Christopher Taylor" <[EMAIL PROTECTED]> To: "Jakarta ANT User's List" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 00:12 Subject: Ant task for redeploying web applications on Tomcat > Hello, > > I searched the mail archives and couldn't find any tas

RE: extend a project

2002-02-13 Thread Phil Surette
Can't be done that way; however, you can use xml to achieve the same effect, see http://jakarta.apache.org/ant/faq.html#xml-entity-include -Original Message- From: Maria Ivanova [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:39 AM To: [EMAIL PROTECTED] Subject: extend a

extend a project

2002-02-13 Thread Maria Ivanova
Is it possible one project to extend another, in this way inheriting all targets defined in the parent project. If "ant" task is used, e.g.: all targets from the parent project must be redefined in the child project in order to be accessed. Is there something like this: //all target

ant-user@jakarta.apache.org

2002-02-13 Thread Holger Faltinsky/Denic
Hi everyone, I am just trying to check a taged version out of my cvs. So far: -- ...works fine ...result in this: cvs server: Updating de/denic/blocks/abrechnung cvs server: cannot find module `-r' - ignored cvs server: cannot find module `release1_1' - ignored cvs [checkout abo

RE: Setting Properties for Scripts

2002-02-13 Thread Broderick, Kevin
How about using the exec task to set and export your environment variables ? Regards Kevin -Original Message- From: Koegel, Michael [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 13:29 To: Ant Users List Subject: AW: Setting Properties for Scripts Hi, life can be so simple ;-) That

Property of used target

2002-02-13 Thread Michael Wenig
I do have a script which builds distributables for 2 systems (production and test-system). Which system will be used depends on command-line-called target. Because there are differences between these distributables (e.g. deployment-descriptors) I want to include the target given on command-line in

RE: jaxp.jar

2002-02-13 Thread Sujan Digumarti
I checked the crimson.jar i was using .. it was later version to the one that is packaged with ant 1.4.1. It has some parser classes inside it. I guess thats the reason Thanks Conor. Rgds, Sujan -Original Message- From: T Master [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 20

Re: jaxp.jar

2002-02-13 Thread T Master
Ant will not work without an XML parser. Period. You must have an XML in your classpath. Check your environment. Look for xerces.jar (another XML parser). - Original Message - From: "Sujan Digumarti" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, Febru

Re: jaxp.jar

2002-02-13 Thread Conor MacNeill
Sujan Digumarti wrote: > i know that.. but i've removed it from my package and classpath but ant > still functions fine > i just want to know whether ant really requires jaxp.jar or not .. > > Rgds, > Sujan Depends on what other XML bits you have around. If you have xerces in your classpath,

AW: Setting Properties for Scripts

2002-02-13 Thread Koegel, Michael
Hi, life can be so simple ;-) That one worked fine. But there is more to come: Some of the 3rd-party-objects I use in the scripts read some values from the system-environment. How can I change the system environment from within my build.xml? Using ANT_OPTS (-Dfoo=bar) works, but I would like to

AW: jaxp.jar

2002-02-13 Thread Koegel, Michael
Ant is also happy to work with xerces.jar. Is that one still in your classpath? Regards, Michael -Ursprüngliche Nachricht- Von: Sujan Digumarti [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 13. Februar 2002 14:25 An: 'Ant Users List' Betreff: RE: jaxp.jar i know that.. but i've rem

RE: jaxp.jar

2002-02-13 Thread Sujan Digumarti
i know that.. but i've removed it from my package and classpath but ant still functions fine i just want to know whether ant really requires jaxp.jar or not .. Rgds, Sujan -Original Message- From: T Master [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 6:49 PM To: Ant User

Re: jaxp.jar

2002-02-13 Thread T Master
For XML parsing. Ant comes with jaxp.jar - look in the liv directory. - Original Message - From: "Sujan Digumarti" <[EMAIL PROTECTED]> To: "ANT Users List (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 6:12 AM Subject: jaxp.jar > Is jaxp.jar needed for ant to run..

jaxp.jar

2002-02-13 Thread Sujan Digumarti
Is jaxp.jar needed for ant to run.. i dont have jaxp.jar in my package and classpath but ant seems to run fine Why does ant need jaxp.jar? Rgds, Sujan -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Setting Properties for Scripts

2002-02-13 Thread Broderick, Kevin
Hi, Not sure what you're trying to do, sounds a bit techie for me :) How about the low tech approach ? When you start your server (start-Target) why not touch a flag file (ServerStarted.flg ?), then when you want to know if the server has been started just use the "available" task to check if it's

Setting Properties for Scripts

2002-02-13 Thread Koegel, Michael
Hello, I'm doing some jacl-Scripts in my build.xml for deployment. I want to check if the AppServer is running. If not I need to start it and remember that I did. Then a test-target is run. After that the stop-Target needs to stop the AppServer if it was started earlier. How can I transfer this

RE: How to use more than one compiler during build of a project?

2002-02-13 Thread Andrew.Beacock
Tim, > I wish to use both the 'modern' compiler and the 'jikes' compiler for > different targets (don't ask why - it's necessary due to some > problems with both :). I think you can solve your problem by putting one of the javac targets in a separate buildfile, and then call it using: T

How to use more than one compiler during build of a project?

2002-02-13 Thread Tim Clark
Hi I am probably misunderstanding the way that an ant build works, but here goes. I wish to use both the 'modern' compiler and the 'jikes' compiler for different targets (don't ask why - it's necessary due to some problems with both :). However, it only seems to be possible to set a property (i