Re: retrieve env vars thru ant

2001-10-19 Thread Stefan Bodewig
On Fri, 19 Oct 2001, Phil Surette [EMAIL PROTECTED] wrote: Could the Property task doco be updated to mention the case-sensitivity under windows? I think we need it to be case sensitive as env vars are case sensitive on Unix systems. And normal Ant properties are so as well, I even know some

RE: Editing file

2001-10-19 Thread Les Hughes
Look at filtersets and filters in the manual - everything you need is there. http://jakarta.apache.org/ant/manual/index.html Also, could you keep you mails to the ant-user list. I don't mind answering questions directly but then only you benefit, not the rest of the user community. Thanks.

JUnit task and System.out

2001-10-19 Thread Stefano Mancarella
I have some JUnit tests which print informations to System.out. If I run them through the JUnit task they run fine but I don't see the output anywhere. Where does it go? Here's the relevant part of my build.xml: junit printsummary=true classpath refid=cp/ formatter type=xml/ batchtest

Re: JUnit task and System.out

2001-10-19 Thread Stefan Bodewig
On Fri, 19 Oct 2001, Stefano Mancarella [EMAIL PROTECTED] wrote: Where does it go? swallowed by the formatters. Here's the relevant part of my build.xml: junit printsummary=true make that junit printsummary=withOutAndErr Stefan

depends for JSPs

2001-10-19 Thread Jamie . Echlin
Hi, I would like to compile only out of date JSP files, the problem is, unlike java sources, there doesn't seem to a method for determining what files depend on others, through include directives. However, I notice that the jsp compiler (we use JRun, not sure if it's specific to JRun) puts a

how to export data

2001-10-19 Thread Dhirendra Kulkarni
Hi all, Iam trying to export data from oracle database for particular user through Ant. my build.xml is target name="exptest" sql driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@armada:1521:wind" userid="wtadmin" password="wtadmin" src="" print="yes" / /target and

RE: how to export data

2001-10-19 Thread Will Dyke
Dhirendra, Please don't post html mail to the list. The fact that sqlplus says that the statement is invalid means that this is an oracle question, rather than an ant question. I suggest that you ask the question in a more appropriate forum. Will -Original Message- From:

Re: how to export data

2001-10-19 Thread Dhirendra Kulkarni
I just posted in normal way of posting mail. I did not understand what u mean by html mail. - Original Message - From: Will Dyke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 3:53 PM Subject: RE: how to export data Dhirendra, Please don't post html mail to

RE: MyVeryOwnTask

2001-10-19 Thread SimonRichardson2
T. Christine, I'll email you directly a task i wrote on accepting a FileSet object. I'll just remove all the other code first. Can I have a copy of this task? Please? -- Halifax plc, Registered in England No.

Re: how to export data

2001-10-19 Thread Kapil_Pawar
Hi Dhirendra, As far as I understand export is an executable not an SQL statement, so one shouldn't expect it to work anyways. I suggest that you use use the exec task in place of the sql task for the same. Regards _ Kapil Singh Pawar Consultant - Integration

Re: how to export data

2001-10-19 Thread Erik Hatcher
sql is for executing SQL statements. 'exp' is a command-line utility not a SQL statement. Use the exec task to execute command-line utilities. Erik - Original Message - From: Dhirendra Kulkarni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 1:48 AM

Re: how to export data

2001-10-19 Thread Dhirendra Kulkarni
Ok Thanks, I am tring exec task - Original Message - From: Erik Hatcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 4:08 PM Subject: Re: how to export data sql is for executing SQL statements. 'exp' is a command-line utility not a SQL statement. Use the

Re: JUnit task and System.out

2001-10-19 Thread Stefano Mancarella
From: Stefan Bodewig [EMAIL PROTECTED] Where does it go? swallowed by the formatters. Here's the relevant part of my build.xml: junit printsummary=true make that junit printsummary=withOutAndErr Doh! I should have checked the docs more carefully. Thanks Stefan.

Extract text from Path element?

2001-10-19 Thread Jack J. Woehr
Please, how can I get the path of a Path element back as a string? I'd like to define a Path and then print it out in Echo. -- Jack J. Woehr # For it's Tommy this an' Tommy that, Senior Consultant # an' "Chuck him out, the brute!" Purematrix, Inc. # But it's "Saviour of 'is country"

Re: Replace a file in a jar

2001-10-19 Thread Stefan Bodewig
On Thu, 18 Oct 2001, Jan Sorensen [EMAIL PROTECTED] wrote: I have been trying to use the jar task to replace a file in a jar, but with not success. It seems that if the jar file exists the jar task don't do anything. I the jar file newer than the file you want to put into it? If yes, jar

Re: Extract text from Path element?

2001-10-19 Thread Stefan Bodewig
On Thu, 18 Oct 2001, Jack J. Woehr [EMAIL PROTECTED] wrote: how can I get the path of a Path element back as a string? path id=winston pathelement location= / ... /path property name=smith refid=winston / echo message=Path with ID winston holds value ${smith} / Stefan

RE: Replace a file in a jar

2001-10-19 Thread Jon Skeet
I have been trying to use the jar task to replace a file in a jar, but with not success. It seems that if the jar file exists the jar task don't do anything. My solution so far is to unjar and then jar again with the new file. Is there a better solution? Use the update parameter on the

Re: Extract text from Path element?

2001-10-19 Thread Erik Hatcher
Will the answer presented here do the trick? http://www.jguru.com/faq/view.jsp?EID=471917 - Original Message - From: Jack J. Woehr [EMAIL PROTECTED] To: ANT User Mailing List [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 7:13 PM Subject: Extract text from Path element?

Re: Replace a file in a jar

2001-10-19 Thread Jan Sorensen
I have been trying to use the jar task to replace a file in a jar, but with not success. It seems that if the jar file exists the jar task don't do anything. My solution so far is to unjar and then jar again with the new file. Is there a better solution? Use the update parameter

Re: Extract text from Path element?

2001-10-19 Thread Diane Holt
--- Jack J. Woehr [EMAIL PROTECTED] wrote: Please, how can I get the path of a Path element back as a string? I'd like to define a Path and then print it out in Echo. Assign it to a property (using the refid attribute), then reference the property in your echo task. Diane = ([EMAIL

stupid question

2001-10-19 Thread Barry Jia
Title: stupid question I have a stupid question, how to pause inside of Windows batch file, like sleep 10 in UNIX. I can not find the dos command for sleep. Thanks in advance. B.

RE: stupid question

2001-10-19 Thread Barry Jia
Title: stupid question Not necessary so complicated, I just want to loop run a command every 10 seconds in NT with a batch file.I do not know how to let it sleep 10s. Thanks B. -Original Message-From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001

RE: stupid question

2001-10-19 Thread SimonRichardson2
Have you tried cygwin? there's a sleep command with that you can use on NT. http://www.cygwin.com/ http://www.cygwin.com/ -Original Message- From: Barry Jia [mailto:[EMAIL PROTECTED]] Sent: 19 October 2001 16:55 To: '[EMAIL PROTECTED]' Subject: RE: stupid question Not necessary

RE: stupid question

2001-10-19 Thread sandeep singh
Title: stupid question F:\pctools\cygnus\cygwin-b20\H-i586-cygwin32\bin this is included in my path and I am able to use every unix commands in Dos You need the download the cygnus and then put this in your path...you will be able to use sleep command...and all other unix commands also!

Using a classpath property in a Jar Task

2001-10-19 Thread Vincent Croft
Note: forwarded message attached. = _ Puedes sentirte desilusionado si fallas, pero estás condenado si no lo intentas. You can get disappointed if you fail down, but you are doomed if you do not try it. ICQ # 22338121

RE: retrieve env vars thru ant

2001-10-19 Thread Li, Jerry
I am working on Windows 2000. Below is my implementation to get an system env from ant. project default=compile basedir=. !-- === -- !-- Initialization target -- !--

Has anybody...

2001-10-19 Thread Michael Laccetti
Title: Message Ever invoked DashO from Ant? I'd like to compile, then obfuscate the code... Sound at all possible? -Michael LaccettiDeveloper, Eldan Software[EMAIL PROTECTED]

Re: Has anybody...

2001-10-19 Thread Diane Holt
--- Michael Laccetti [EMAIL PROTECTED] wrote: Ever invoked DashO from Ant? I'd like to compile, then obfuscate the code... Sound at all possible? Can't you just run it with the java task? Diane = ([EMAIL PROTECTED]) __ Do You

RE: Has anybody...

2001-10-19 Thread Michael Laccetti
Yep, I guess that's one easy way of doing it... JMS sucks my brain dry, the obvious becomes hazy... Thanks! -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 13:14 To: [EMAIL PROTECTED] Subject: Re: Has anybody... --- Michael Laccetti

Please Help me!!!

2001-10-19 Thread Vincent Croft
Hi list members... I've been looking through the mail list, searching for something related to the jar task and Classpath but nothing was found there. Also the documentation related to the jar task wasn't good enough... I've been having troubles using the java task when using the

RE: stupid question

2001-10-19 Thread Dineshram
Title: stupid question I could see the following line to pause for 10 seconds in one of our batch file Choice /c:~ /t:~,10 /n nul Will you give a try. Dinesh -Original Message-From: Barry Jia [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 10:40 AMTo: '[EMAIL

Re: Please Help me!!!

2001-10-19 Thread Diane Holt
Hi Vincent, There's a couple of things I'm not sure I understand. One is why you're using the java task to run ejbc -- have you looked at the ejbc task that's available as an optional task? The other is what you'd expect including a classpath for the jar task to do. All the jar task does is jar

Re: Building and using tasks in the same build file

2001-10-19 Thread Diane Holt
--- Mackay Paul [EMAIL PROTECTED] wrote: Is it possible to build a task and then use it in the same build.xml file? Yes. Put the taskdef inside a target. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Make a great connection at Yahoo!

Re: Please Help me!!!

2001-10-19 Thread Vincent Croft
Hi Diane, Thank you to have the time to help me... Well the first thing you are mentioning about, why I didn't use de ejbc bside the java, it was because when I first take a look to Ant, I didn't undestand many things about it, I've never worked with a deploy before, so I asked to all the

RE: Has anybody...

2001-10-19 Thread Gavin Terrill
Title: Message We use the standard java task to do this: target name="dasho-client" depends="jar-dmsclient" if="dasho.present"java classname="DashoPro" fork="yes" failonerror="true" arg line="-v -f ${basedir}/${src.dir}/dasho/${client}.dop" /jvmarg value="-mx9600"

Re: Suggestions for documentation exec

2001-10-19 Thread Yyy Xxx
Thank you, Phil, for your outputproperty example. But I'm actually looking for an rcproperty attribute. I'd like to have the return code of the exec made visible to ant. For instance, suppose I exec a program and want to take action if the program fails. I could use the failonerror attribute

file expansion for arg???

2001-10-19 Thread Don Ledford
I finally bit the bullet and I'm switching from make to ant for my Java projects. And I've pretty much got everything figured out, BUT this one item: How to I get file name expansion for tasks which use the arg element to define command line arguments? Specifically I'd like to run a Java

Re: file expansion for arg???

2001-10-19 Thread Erik Hatcher
Don, Have you tried the apply task? Its made to launch a command-line program for each item in a fileset, but it might not be quite what you need given that your example is for a passing a list of files to a Java program. It seems that the best solution is for you to write a wrapper Task that

Re: Suggestions for documentation exec

2001-10-19 Thread Steve Loughran
- Original Message - From: Yyy Xxx [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 10:48 Subject: Re: Suggestions for documentation exec Thank you, Phil, for your outputproperty example. But I'm actually looking for an rcproperty attribute. I'd like to have

Re: Please Help me!!!

2001-10-19 Thread Diane Holt
Your fileset's in your jar task look like they're probably wrong. You have: fileset dir=${PATH_ArqEJBReg}/util/ include name=util/MappingValue.class/ /fileset which would have it looking for: ${PATH_ArqEJBReg}/util/util/MappingValue.class which probably isn't what you

ant from command line == java from command line

2001-10-19 Thread PrattCM
When I type ant at the command line, I get the same response as if I had typed java at the command line.. I get an error message detailing how to use the java command. This is on the latest release on 2000. Any ideas?

RE: Has anybody...

2001-10-19 Thread Bible, Paul
We use the standard ant task like below, which allows to turn obfuscation on/off: property name=obfuscatevalue=true/ property name=dasho.obf.file value=obfuscate.dop/ property name=dasho.nonobf.file value=nonobfuscate.dop/ !--

Re: ant from command line == java from command line

2001-10-19 Thread Diane Holt
--- [EMAIL PROTECTED] wrote: When I type ant at the command line, I get the same response as if I had typed java at the command line.. I get an error message detailing how to use the java command. This is on the latest release on 2000. Any ideas? Edit %ANT_HOME%\bin\ant.bat to turn echoing on

Re: ant from command line == java from command line

2001-10-19 Thread Tony John
You need to look into your ant folder and see if their a ant batch file or something and see what's happening in there and try and type and commands as you see in it to see why its behaving like that. From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ant from