RE: stupid question

2001-10-19 Thread sandeep singh
Title: stupid question



this 
line is not working in my machine...!
It is 
saying "The name specified is not recognise as an external or internal 
command"
 
sandeep
 
 

  -Original Message-From: Dineshram 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, October 20, 2001 
  1:04 AMTo: [EMAIL PROTECTED]Subject: RE: 
  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 PROTECTED]'Subject: 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: 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 command line == java from command line
>Date: Fri, 19 Oct 2001 18:54:23 -0700
>MIME-Version: 1.0
>Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD9A2478008A4136E816407D8514047A0; Fri, 19 Oct 2001 18:55:04 -0700
>Received: (qmail 64330 invoked by uid 500); 20 Oct 2001 01:54:37 -
>Received: (qmail 64321 invoked from network); 20 Oct 2001 01:54:37 -
>From ant-user-return-13782-tonyjohn Fri, 19 Oct 2001 18:56:44 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Post: 
>List-Help: 
>List-Unsubscribe: 
>List-Subscribe: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Mailer: Lotus Notes Release 5.0.6a  January 17, 2001
>Message-ID: <[EMAIL PROTECTED]>
>X-MIMETrack: Serialize by Router on USFOSMTA01/FOS/PEC(Release 5.0.6a 
>|January 17, 2001) at 10/19/2001 06:53:59 PM
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>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?
>
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




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 after the ":runAnt", then
run 'ant' and see what the line looks like and hopefully see what's
getting passed to 'java' that's making it unhappy.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Has anybody...

2001-10-19 Thread Bible, Paul

We use the standard ant task like below, which allows to turn
obfuscation on/off:
 
  
 
 

 
 
 
 
 
  
   
  
 
 
 
  
   
   
   
   
  
 
 
 
  
   
   
   
   
  

 
 
 
 

-Original Message-
From: Gavin Terrill [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 19, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Has anybody...


We use the standard java task to do this:
 
 
  
   
   
   

   
  
 


"dasho.present" is set in our initialize target

 

-Original Message-
From: Michael Laccetti [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 12:58 PM
To: Ant List
Subject: Has anybody...


Ever invoked DashO from Ant?  I'd like to compile, then obfuscate the
code...
 
Sound at all possible?
 

-
Michael Laccetti
Developer, Eldan Software
  [EMAIL PROTECTED]
 




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: Please Help me!!!

2001-10-19 Thread Diane Holt

Your 's in your  task look like they're probably wrong. You
have:
   >
   >   
   >
which would have it looking for:
   ${PATH_ArqEJBReg}/util/util/MappingValue.class
which probably isn't what you want. That's true for all your 's.
You should either not include that final subdir in the "dir" attribute, or
not include it in the 's -- which you choose to do will depend on
whether you want the files in your jar-file to include the subdir or just
be the name of the file.

Once you get the  task fixed, if your  task still has trouble,
try running 'ant -verbose' so you can see what the actual 'java'
command-line looks like and verify that all the jars you've specified for
the classpath are getting included.

Diane
 
--- Vincent Croft <[EMAIL PROTECTED]> wrote:
>   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 list members and kindly
> you answer my questions, there were many replies using
> the ejbc, java, etc, and only the java seems to worked
> perfectly, so I start to use it, this are the lines
> used to my  task after making the jar with a
>  task:
> 
> 
>   
>   
> 
>   
>   
> 
>   this worked for me, at the moment.. but some times
> when I tried to run the  task with all this, a
> message of error show up, telling me, there is a
> missing file in the jar EJBTEMP.jar(e.g.), so when I
> put into the jar with a  task the missing
> file, the problem seems to be resolved, this has not
> been a good practice, coz I make a big jar file, when
> it really needs only a few files in there, and the
> rest of the files need it are in a previous jar file.
> 
>   That was why I was looking the way to tell my 
> task to use a classpath an tell it there is a jar file
> which has already the file of other module that it
> needs.
> 
>   I thing maybe is not the classpath in a jar task
> where it be, bside that, it has to be in the 
> task, as you see I'm using a classpath definition in
> my java task, but it seems that the java task doesn't
> care about it.
> 
>   
> 
>   
> 
> CLASSPATHRec property--> has different jars in it..
> here is fragment of the line:
> 
> 
Value="${DIR_JARS}/segUtil.jar;${DIR_JARS}/arqUtil.jar..;d:/j2sdkee1.2.1/lib/j2ee.jar;%CLASSPATH%"/>
> 
>   Where DIR_JARS has the jars from different modules
> wich the jar to be created need.
> 
> 
>   and for the last here it is a fragment of my
>  task, which had included all the files need to
> make the error gone:
> 
> 
> 
>
>   
>
> 
>
>   
>   
>
> 
>
>   
>   
>
> 
>
>   
>   
>   
>   
>   
>   
>   
>   
>  
> 
>   
>
> 
>
>   
>
> 
>
>   
>
> 
> 
>   Some files, for example in the big  task,
> it must not go there, coz those files are already
> compiled in a jar called RulesEJB.jar
> 
> 
> 
>   I Hope hasn't bored you and give you view of what is
> my problem...
> 
>   Thank you very much for all your help
> 
> VIN
> 
> =
> 
> _
> 
> "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
> 
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com


=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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 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 and have the ant build fail.
> But it would be better if I could fail more
> gracefully.
>

agreed. Also RC codes can do more; you could have an app which returned a
crytpographically strong random number which you use in some other part of
the build.

Why dont you file it as a feature request on bugzilla?

-steve




Re: file expansion for ???

2001-10-19 Thread Erik Hatcher

Don,

Have you tried the  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
accepts a fileset and calls the Java program under the hood, either by
launching it through command-line or instantiating a class and invoking
methods directly.

Erik


- Original Message -
From: "Don Ledford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 5:30 PM
Subject: file expansion for ???


> 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  element to define command line arguments?
>
> Specifically I'd like to run a Java application for
> on all files with a certain extension.
>
> In shell-eez:  java myClass *.pat
>
> In ant's build.xml:
> 
> 
> 
> 
> 
>
> If I use "*.pat" for the value, line, or file attributes
> of the arg element - I don't get file expansion.
> And - the arg element doesn't allow sub-ordinate fileset
> elements. Nor does it support the "includes" attribute.
>
> Either I'm missing something - or - I can't be the only
> person who wants to run java applications in their ant
> build files. I suppose I could make my applications valid
> ant target elements, but this seems excessive.
>
> --
> Don Ledford
> [EMAIL PROTECTED]
>




file expansion for ???

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  element to define command line arguments?

Specifically I'd like to run a Java application for
on all files with a certain extension.

In shell-eez:  java myClass *.pat

In ant's build.xml:






If I use "*.pat" for the value, line, or file attributes
of the arg element - I don't get file expansion.
And - the arg element doesn't allow sub-ordinate fileset
elements. Nor does it support the "includes" attribute.

Either I'm missing something - or - I can't be the only
person who wants to run java applications in their ant
build files. I suppose I could make my applications valid
ant target elements, but this seems excessive.

-- 
Don Ledford
[EMAIL PROTECTED]



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 and have the ant build fail. 
But it would be better if I could fail more
gracefully.

Here's a made-up example.  The Unix diff program exits
with a status(return) code of 0 if two files are the
same, 1 if some differences were found, and 2 means
trouble.

The "diff" target causes diff to be run against two
files.  The (made up) rcproperty attribute would
capture the status code and let  analyze
it.
When diff returned a status code of "2", ant would
automatically e-mail me a note before failing.


  
 
 
  

  

  



  
  








Phil Surette wrote:
> As for your last point, (6), not sure if you're
> citing this as a commonly asked question, or as
> an actual limitation of ant. Just in case, you
> can save the output of an exec using the
> outputproperty attribute...

Yyy Xxx wrote:
>> And (6), I'd like to have a way to store the return
>> code of an  in a property.  I'd like to
>> conditionally execute tasks based on the return
>> code of an exec'd program.  My only choice seems
>> to use the "failonerror" attribute, but I don't
>> want to fail my ant.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Has anybody...

2001-10-19 Thread Gavin Terrill
Title: Message



We use 
the standard java task to do this:
 
  

"dasho.present" is set in our initialize 
target
    

 

  -Original Message-From: Michael Laccetti 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 
  12:58 PMTo: Ant ListSubject: Has 
  anybody...
  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: 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 list members and kindly
you answer my questions, there were many replies using
the ejbc, java, etc, and only the java seems to worked
perfectly, so I start to use it, this are the lines
used to my  task after making the jar with a
 task:


  
  

  
  

  this worked for me, at the moment.. but some times
when I tried to run the  task with all this, a
message of error show up, telling me, there is a
missing file in the jar EJBTEMP.jar(e.g.), so when I
put into the jar with a  task the missing
file, the problem seems to be resolved, this has not
been a good practice, coz I make a big jar file, when
it really needs only a few files in there, and the
rest of the files need it are in a previous jar file.

  That was why I was looking the way to tell my 
task to use a classpath an tell it there is a jar file
which has already the file of other module that it
needs.

  I thing maybe is not the classpath in a jar task
where it be, bside that, it has to be in the 
task, as you see I'm using a classpath definition in
my java task, but it seems that the java task doesn't
care about it.

  

  

CLASSPATHRec property--> has different jars in it..
here is fragment of the line:



  Where DIR_JARS has the jars from different modules
wich the jar to be created need.


  and for the last here it is a fragment of my
 task, which had included all the files need to
make the error gone:



   
  
   

   
  
  
   

   
  
  
   

   
  
  
  
  
  
  
  
  
 

  
   

   
  
   

   
  
   


  Some files, for example in the big  task,
it must not go there, coz those files are already
compiled in a jar called RulesEJB.jar



  I Hope hasn't bored you and give you view of what is
my problem...

  Thank you very much for all your help

VIN

=

_

"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


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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  inside a .

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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  task to run ejbc -- have you looked at the  task
that's available as an optional task?

The other is what you'd expect including a classpath for the  task to
do. All the  task does is jar up whatever files you tell it to, just
like running 'jar' at the command line.

Diane

--- Vincent Croft <[EMAIL PROTECTED]> wrote:
> 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 weblogic.ejbc classname...
> 
>   Sometimes an error came out saying that in the jar
> created before the java taks there is a .class
> missing, this one which is in a jar already builded
> it. So, I use a fileset task to put the missing file
> into the building jar
> 
>   This is my point... is there a way to put a
> classpath property in ant to tell the jar task to use
> it?
> 
>   Thank you.
> 
> =
> 
> _
> 
> "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
> 
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com


=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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 PROTECTED]'Subject: 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. 


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 weblogic.ejbc classname...

  Sometimes an error came out saying that in the jar
created before the java taks there is a .class
missing, this one which is in a jar already builded
it. So, I use a fileset task to put the missing file
into the building jar

  This is my point... is there a way to put a
classpath property in ant to tell the jar task to use
it?

  Thank you.

=

_

"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


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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 <[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  task?

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals. http://personals.yahoo.com




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  task?

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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: 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.



















jerry

-Original Message-
From: Phil Surette [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 11:41 PM
To: [EMAIL PROTECTED]
Subject: Re: retrieve env vars thru ant


Since there is no way to get at environment variables from
java, I was stunned to see that you could do it and ran
off to create a test script. 

...catch is it doesn't work under Windows 2000. 






path = ${env.PATH}
test = ${test}



output:
Buildfile: build.xml

echoenv:
 [echo] path = ${env.PATH}
test = hello whirled

BUILD SUCCESSFUL

Total time: 2 seconds

I guess Win2000 is not one of the 'select' platforms
that the task works under... 

Steve Loughran wrote:
> 
> - Original Message -
> From: "Erik Hatcher" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 18, 2001 09:06
> Subject: Re: retrieve env vars thru ant
> 
> > As for JAVA_HOME, you can access it already with ${java.home}.
(although
> > it'll likely have "jre" appended to what the environment variable
actually
> > says.)
> 
> I am not sure they are the same. JAVA_HOME usually points to the JDK base,
> but java.home can refer to wherever the current JRE is, right? So if you
> have the JDK but run off a JRE under Program Files then java.home can be a
> long way from JAVA_HOME
> 
> > For other environment variables, have a look at  environment=".
> > />
> >
> 
> that's what I use.

-- 
Note:  The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it from
your computer. Thank you. 
--



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


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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 weblogic.ejbc classname...

  Sometimes an error came out saying that in the jar
created before the java taks there is a .class
missing, this one which is in a jar already builded
it. So, I use a fileset task to put the missing file
into the building jar

  This is my point... is there a way to put a
classpath property in ant to tell the jar task to use
it?

  Thank you.

=

_

"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


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com




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!
 
sandeep
 
 

  -Original Message-From: Barry Jia 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 9:25 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 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 
11:50 AMTo: [EMAIL PROTECTED]Subject: RE: 
stupid question
Why don't you 
use the sleep task in Ant ?
See the manual for details.
 
 
Otherwise:
http://www.fpschultze.de/b19.htm
 
--  Stéphane Bailliez  Software Engineer, Paris - 
France  iMediation - http://www.imediation.com  Disclaimer: All the opinions expressed above 
are mine and not those from my company. 

  -Original Message-From: Barry Jia 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 
  5:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  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 SimonRichardson2

Have you tried cygwin?  there's a sleep command with that you can use on NT.
 
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 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 11:50 AM
To: [EMAIL PROTECTED]
Subject: RE: stupid question


Why don't you use the sleep task in Ant ?
See the manual for details.
 
 
Otherwise:
http://www.fpschultze.de/b19.htm  
 

-- 
 Stéphane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com   
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 

-Original Message-
From: Barry Jia [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 5:40 PM
To: '[EMAIL PROTECTED]'
Subject: 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. 


--
Halifax plc, Registered in England No. 2367076.  Registered Office: Trinity Road, 
Halifax, West Yorkshire HX1 2RG. Represents only the Halifax Financial Services 
Marketing Group for the purposes of advising on and selling life assurance, pensions 
and unit trust business.  The Marketing Group is regulated by the Personal Investment 
Authority.  Switchboard 01422 33.

==




RE: stupid question

2001-10-19 Thread Li, Jerry
Title: stupid question



In 
windows world, there is no working sleep batch function, However, you could use 
a loop.
 
Jerry

  -Original Message-From: Barry Jia 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 8:40 
  AMTo: '[EMAIL PROTECTED]'Subject: 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. 


-- 

Note:  The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. 

--


help needed (FTP)

2001-10-19 Thread sandeep singh

hi
I am trying to use optional task FTP in ANT.
I am trying to ftp to a server and trying to
delete a file. The build file is saying
"build successful" when I am running it through ANT
but actually file is not deleted.

Can you tell me what is wrong with this code?



The code is:








  





Using
FTP.
...

   








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 
  11:50 AMTo: [EMAIL PROTECTED]Subject: RE: 
  stupid question
  Why don't you 
  use the sleep task in Ant ?
  See 
  the manual for details.
   
   
  Otherwise:
  http://www.fpschultze.de/b19.htm
   
  --  Stéphane Bailliez  Software Engineer, Paris - France  iMediation - http://www.imediation.com  Disclaimer: All the opinions expressed above 
  are mine and not those from my company. 
  
-Original Message-From: Barry Jia 
[mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 5:40 
PMTo: '[EMAIL PROTECTED]'Subject: 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 Stephane Bailliez
Title: stupid question



Why don't you use the sleep task in Ant 
?
See 
the manual for details.
 
 
Otherwise:
http://www.fpschultze.de/b19.htm
 
--  Stéphane Bailliez  Software Engineer, Paris - France  iMediation - http://www.imediation.com  Disclaimer: All the opinions expressed above are 
mine and not those from my company. 

  -Original Message-From: Barry Jia 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 19, 2001 5:40 
  PMTo: '[EMAIL PROTECTED]'Subject: 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. 


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.





Building and using tasks in the same build file

2001-10-19 Thread Mackay Paul

Hi there,

Is it possible to build a task and then use it in the
same build.xml file? I have not been able to do this,
because listing the taskdef means that it needs to
find the task on startup. But I have both tasks and
other code that relies on those tasks, and both are
evolving. It would be great to be able to simply make
the targets that use the tasks depend on the
compilation of the tasks.

Is this feasible?

Thanks,

Paul


Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.



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  task.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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 on the jar task. This should update the jar
> file *if* the new contents are newer than the jar file itself.

Unfortunately I'm (still) using ant 1.3 and the "udpate" attributes is only
in 1.4.

Well, I think it is time to upgrade.

--
Jan Sorensen




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?


> 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"
> www.purematrix.com #   when the guns begin to shoot; - Kipling
> 
> 
> 




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 jar task. This should update the jar
file *if* the new contents are newer than the jar file itself.

Jon



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?


  
  ...




Stefan



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,
 thinks it has done all things that it needs to do.

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"
www.purematrix.com #   when the guns begin to shoot; - Kipling
 


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?

--
Jan Sorensen




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:
> >   
> make that
> 

Doh! I should have checked the docs more carefully.

Thanks Stefan.




Re: how to export data

2001-10-19 Thread Dhirendra Kulkarni

Ok Thanks, I am tring  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


>  is for executing SQL statements.  'exp' is a command-line utility
not
> a SQL statement.  Use the  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
> Subject: how to export data
>
>
> Hi all,
>
> Iam trying to export data from oracle database for particular user through
> Ant. my build.xml is
>
> 
>driver="oracle.jdbc.driver.OracleDriver"
>   url="jdbc:oracle:thin:@armada:1521:wind"
>   userid="wtadmin"
>   password="wtadmin"
>   src="data.sql"
>   print="yes"
> />
>   
>
> and statement in data.sql file is
>
> exp file='test.dmp'
>
> iam getting error saying that it is invalid statement. Actually if run
this
> command in DOS
>
> exp wtadmin/wtadmin file=test.dmp
>
> it is successfully exporting the database. Also if i type same command in
> sqlplus, then also iam getting invalid statement. So how do i export data.
> Please help
>
> Thanks
> DK
>
>
>
>




Re: how to export data

2001-10-19 Thread Erik Hatcher

 is for executing SQL statements.  'exp' is a command-line utility not
a SQL statement.  Use the  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
Subject: how to export data


Hi all,

Iam trying to export data from oracle database for particular user through
Ant. my build.xml is



  

and statement in data.sql file is

exp file='test.dmp'

iam getting error saying that it is invalid statement. Actually if run this
command in DOS

exp wtadmin/wtadmin file=test.dmp

it is successfully exporting the database. Also if i type same command in
sqlplus, then also iam getting invalid statement. So how do i export data.
Please help

Thanks
DK






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
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416






"Dhirendra Kulkarni" <[EMAIL PROTECTED]>
10/19/01 11:18 AM
Please respond to ant-user

        
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        how to export data





Hi all,

Iam trying to export data from oracle database for particular user through
Ant. my build.xml is


     
   driver="oracle.jdbc.driver.OracleDriver"
   url="jdbc:oracle:thin:@armada:1521:wind"
   userid="wtadmin"
   password="wtadmin"
   src="">
   print="yes"
    />
  

and statement in data.sql file is

exp file='test.dmp'

iam getting error saying that it is invalid statement. Actually if run this
command in DOS

exp wtadmin/wtadmin file=test.dmp

it is successfully exporting the database. Also if i type same command in
sqlplus, then also iam getting invalid statement. So how do i export data.
Please help

Thanks
DK



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. 2367076.  Registered Office: Trinity Road, 
Halifax, West Yorkshire HX1 2RG. Represents only the Halifax Financial Services 
Marketing Group for the purposes of advising on and selling life assurance, pensions 
and unit trust business.  The Marketing Group is regulated by the Personal Investment 
Authority.  Switchboard 01422 33.

==




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 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: Dhirendra Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: 19 October 2001 06:48
> To: [EMAIL PROTECTED]
> Subject: how to export data
>
>
> Hi all,
>
> Iam trying to export data from oracle database for particular user through
> Ant. my build.xml is
>
> 
>driver="oracle.jdbc.driver.OracleDriver"
>   url="jdbc:oracle:thin:@armada:1521:wind"
>   userid="wtadmin"
>   password="wtadmin"
>   src="data.sql"
>   print="yes"
> />
>   
>
> and statement in data.sql file is
>
> exp file='test.dmp'
>
> iam getting error saying that it is invalid statement. Actually if run
this
> command in DOS
>
> exp wtadmin/wtadmin file=test.dmp
>
> it is successfully exporting the database. Also if i type same command in
> sqlplus, then also iam getting invalid statement. So how do i export data.
> Please help
>
> Thanks
> DK
>
>
> This e-mail, and any attachment, is confidential. If you have received
> it in error, please delete it from your system, do not use or disclose
> the information in any way, and notify me immediately. The contents of
> this message may contain personal views which are not the views of the
> BBC, unless specifically stated.
>




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: Dhirendra Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2001 06:48
To: [EMAIL PROTECTED]
Subject: how to export data 


Hi all,

Iam trying to export data from oracle database for particular user through
Ant. my build.xml is 



   

and statement in data.sql file is 

exp file='test.dmp'

iam getting error saying that it is invalid statement. Actually if run this
command in DOS 

exp wtadmin/wtadmin file=test.dmp 

it is successfully exporting the database. Also if i type same command in
sqlplus, then also iam getting invalid statement. So how do i export data.
Please help

Thanks
DK 


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.



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 
 
    
  
driver="oracle.jdbc.driver.OracleDriver"  
url="jdbc:oracle:thin:@armada:1521:wind"  
userid="wtadmin"  
password="wtadmin"  
src=""  
print="yes"    />   
 
and statement in data.sql file is 
 
exp file='test.dmp'
 
iam getting error saying that it is invalid statement. Actually if run this 
command in DOS 
 
exp wtadmin/wtadmin file=test.dmp 
 
it is successfully exporting the database. Also if i type same command in 
sqlplus, then also iam getting invalid statement. So how do i export data. 
Please help
 
Thanks
DK 
 


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 line like the following in the .java files it generates.

  private static final String[] __dependencies__ = 
{"/iBox/ContributorsMenu.jsp","/jetweb/util/StandardHeader.jsp","/jetweb
/util/StandardFooter.jsp",null};

Therefore by traversing the entire output, it should be possible to 
create a "depends" type task that gets a graph of the dependencies 
between jsps, so it would know which files need to be recompiled, 
either by parsing the java source or by using BCEL or something to 
check the value of that field of the actual class file.

Has anyone done this yet before I try to do it myself, or any hints 
where to start first?

cheers, jamie



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




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:
> 
>   

make that



Stefan



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  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:

  
   
   
   

   
  
  
   
   
  





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.

Les

-Original Message-
From: Sugandha Shah
To: Les Hughes
Sent: 19/10/01 10:09
Subject: Re: Editing file

Hi,
 
I  really did not get what u said. I'm newbie to ANT. Can u kindly send
in example for same.
Also if i read from property file and those read values if i need to add
in config .xml how do i do it?
B'cos if try using replace  task it just replace the key part. I mean
among the key value pair i want replacement for the value .
eg :
name =sugandha

 
Now if i don't specify value "" is replaced. But i want Sugandha as
value to be seen which is value i get at runtime and hence can't specify
it earlier.
 
Sorry for the inconvienence. Any help will be really appreciated.
 
Thanx
-Sugandha
 
 

- Original Message - 
From: Les   Hughes 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, October 18, 2001 6:42 PM
Subject: RE: Editing file

Hi,
 
Mark up the things that change in your build with filter tags and then
copy the file into your build location using filtering and a filters
file. I do exactly that with WLS 6.1 config.xml and others.
 
Bye,
 
Les
 
 

-Original Message-
From: Sugandha Shah [ mailto:[EMAIL PROTECTED]
 ]
Sent: 17 October 2001 14:28
To: [EMAIL PROTECTED]  
Subject: Editing file


Hi,
 
Is it possible to edit the existing file through. Is there any ant built
in task.
 
i.e For eg my weblogic 6.0 has config.xml. So through ANT i want to edit
this file and add something and not overwrite.
 
Is it possible?
 
Thanx
-Sugandha