RE: Telnet Output

2002-01-22 Thread Shawn McManus

I'd like the copies, please.
My address is [EMAIL PROTECTED]
Thank you,
Shawn

-Original Message-
From: Ramasubbu, Hari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 12:06 PM
To: 'Ant Users List'
Subject: RE: Telnet Output



Ok .. i came across the same scenario  where i issue a make command and
it
takes ages to get back to the shell while
the read task in your telnet waits for the output .

I tweaked the telnet task.java so that it logs every 256 bytes of
information it streams from the Unix socket.
So it will look as if u r logging it live than waiting for the specific
make
command to finish.
I can give the 2 files (jar and java file) if u want as i dont want to
spam
the mailing list.

Thanks
Hari


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Telnet Output


I am using Ant in a slightly unconventional manner.  I am using a build
script to submit a build (using make) on a remote system using telnet.
Everything is running fine, except that I get no output from commands
submitted via telnet until the command is finished.  Since the builds
take
a while, it would be good to have the output streamed back so that
progress
can be monitored.  Have I missed a setting that would fix this?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Telnet Output

2002-01-22 Thread Shawn McManus

David,

I use the telnet task to do the same.  Some things to include are the
initial
 and subsequent reads.

Here's an example of a target that I use:

  

  
  cd /u01/app/weblogic/myenv/5.1/; echo +++done+++
  +++done+++
  . weblogicenv.env; echo +++done+++
  +++done+++
  . stopWebLogic.sh; echo +++done+++
  +++done+++
  cd /u01/app/weblogic/myenv/5.1/mywlcluster/mybuild/myenv;
echo +++done+++
  +++done+++
  rm -r classdirs; echo +++done+++
  +++done+++
  gunzip myapp.tar.gz; echo +++done+++
  +++done+++
  tar xvf myapp.tar; echo +++done+++
  +++done+++
  chmod -R 755 execdirs; echo +++done+++
  +++done+++
  rm myapp.tar; echo +++done+++
  +++done+++

  

Hope this helps,
Shawn


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Telnet Output


I am using Ant in a slightly unconventional manner.  I am using a build
script to submit a build (using make) on a remote system using telnet.
Everything is running fine, except that I get no output from commands
submitted via telnet until the command is finished.  Since the builds
take
a while, it would be good to have the output streamed back so that
progress
can be monitored.  Have I missed a setting that would fix this?


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: VSSGET and labeling...

2001-12-05 Thread Shawn McManus

Please do (post the exe).  If you can post it to a public site, please
do that too.  Many mail services may not allow .exe attachments.

Thanks,
Shawn

-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 9:50 AM
To: 'Ant Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: VSSGET and labeling...


(Just seen late posting but may help others if not already solved)

I have also experienced hours of pain using VSS and getting [Version not
found] when getting individual labels. The problem is a 100% bug with
VSS.
However Microsoft kindly wrote a small .exe for me which will
recursively
get files with specific labels - yes I was also shocked. This works
every
time. I use the following target to call it from Ant:







The combined source code and .exe zipped are 60kb. I will post as an
attachment to the list if requested.. 




-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED]]
Sent: 29 November 2001 20:22
To: Ant Users List
Subject: VSSGET and labeling...


hello all

i'm attempting to get my ant script to check out
labeled files from VSS and i'm having a couple of
problems. :)  if i label individual files in my
project '2.0' and then try to get '2.0' from VSS i get
the following error:

extract_label:
 [echo] Extracting Label: 2.0 from VSS...
   [vssget] Set D:\Development\Build\Marketing as the
default folder for project
 $/MKTG?(Y/N)N
   [vssget] Version not found

BUILD FAILED

D:\DEVELO~1\MARKET~1\build.xml:43: Failed executing:
"D:\Program Files\Microsoft
 Visual Studio\VSS\\win32\ss" Get $/MKTG
-GLD:\Development\Build\Marketing -I- -
R -VL2.0 "-YLocalBuild, LocalBuild"
at
org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET.execute(MSVSSGET.
java:185)
at org.apache.tools.ant.Task.perform

but if i label the project root '2.0' and thus label
each file(the latest version of the file) in the
project '2.0', my ant script works fine.  however, i
don't want the latest version of each file to be
labeled '2.0'.  we have added files, made changes,
etc. and want to release things that work(no runtime
errors) from a couple of days ago.  the VSS help is
pretty sparse on checking out labeled files from the
command line and how to label them.

attached is the ant script we're attempting to use.
thanks for any help.

andy

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jspc

2001-11-28 Thread Shawn McManus

Is there a current jspc task in Ant?  

I have a need to precompile my jsp's during build.

I'd read in the mail archives that it had been an undocumented task
since 1.2, although when I use it, it get the "can't create message".

The optional.jar has the wljspc task, but when I use it, almost all of
the jsp's fail to compile.  


  


However, the docs say that it only works on WLS 4.5.1 and I'm using WLS
5.1sp8.

Thanks,
Shawn


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Visual SourceSafe task

2001-11-28 Thread Shawn McManus

> If the share is named "midas$" (a hidden share), why should it > be
renamed?

I had a similar problem.  The directory was not hidden though.  In my
case, the "$$" threw an IOException.

-Original Message-
From: Nico Seessle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:46 AM
To: Ant Users List
Subject: Re: Problem with Visual SourceSafe task


- Original Message -
From: "Shawn McManus" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 10:12 PM
Subject: RE: Problem with Visual SourceSafe task


> I don't think that your serverpath should end with "$".  Rather, it
> should read,
> serverPath="\\private1\midas"

If the share is named "midas$" (a hidden share), why should it be
renamed?

He should try serverPath="\\private1\midas$$" (escaping the dollar-sign
to
prevent Ant from trying to replace it as a property)

Nico




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Problem with Visual SourceSafe task

2001-11-27 Thread Shawn McManus

I don't think that your serverpath should end with "$".  Rather, it
should read,
serverPath="\\private1\midas"

Shawn

-Original Message-
From: Ron Coutts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 3:02 PM
To: 'Ant Users List' (E-mail)
Subject: Problem with Visual SourceSafe task


The VSS task does not seem to work properly.  I'm getting the error 'No
VSS database (srcsafe.ini) found.  Use the SSDIR environment variable or
run netsetup'.  Currently I'm using the VSS command line interface from
Perl scripts to do gets, and in those scripts the SSDIR environment
variable must be set.  For some reason, the VSS task is not setting this
environment variable.  What am I doing wrong?

Also, there seems to be an inconsistency between the VSS task, and VSS
itself.  In my working scripts, I set 'SSDIR=\\private1\midas$', i.e. to
the directory where the srcsafe.ini file is located.  However in the VSS
task, the ssdir attribute is supposed to refer to the directory where
the ss.exe file is located.  Is this correct, or a documentation typo?

Thanks in advance for any help provided.

Ron


P.S. 
Here's the build file I'm using:








And here's the Ant output:

Buildfile: build2.xml

get:
   [vssget] No VSS database (srcsafe.ini) found.  Use the SSDIR
environment variable or run netsetup.

BUILD FAILED

D:\midasroot\Developers\RonC\AntTests\VssTest\build2.xml:11: Failed
executing: "C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\ss
" Get $/MidasWksp -GLD:\delme -I- -YAutoUser,adrs

Total time: 1 second



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using Ant to Untar on a remote system

2001-11-26 Thread Shawn McManus

I'm looking for a way to gunzip and untar my tar file in Ant once I've
created it and FTP'd it to a remote site.

Right now, I have to rsh to my remote system once Ant is finished
building and then unzip/untar.

Is there a way to do this using Ant?

Thanks,
Shawn

--
To unsubscribe, e-mail:   
For additional commands, e-mail: