Re: AW: Need help re development

2004-10-25 Thread Ivan Ivanov
> > That´s why Ant uses lots of selectors to exclude > sources Yes, i see. Selectors in fact are another revelation of white magic of Ant :)) > which cant be compiled because of missing libraries > :) As a matter of fact, I use eclipse more as a text editor with some nice features like embebed

AW: Need help re development

2004-10-25 Thread Jan . Materne
> I am using Eclipse and I imported Ant sources in it > (just to browse them more easily) and I think that if > one wants to compile Ant with Eclipse she needs all > third party jars as junit.jar visible by Eclipse and I > think this is why Rhino cannot compile it. That´s why Ant uses lots of sele

Re: Need help re development

2004-10-25 Thread Ivan Ivanov
> > I pretty much doubt that adding the jars to Eclipse > is the correct > approach since you may run into situations where you > need CVS HEAD of > Ant (and not a released version) to compile CVS HEAD > of Ant. > > I don't know whether any of the Ant committers are > using Eclipse. I'm > an XEm

Re: Need help re development

2004-10-25 Thread Stefan Bodewig
On Sat, 23 Oct 2004, Rhino <[EMAIL PROTECTED]> wrote: > I downloaded the source zip file for Ant 1.6.2, set up a project > called Ant1.6.2 in Eclipse (where I am developing), and then tried > importing all of the src subdirectory into the new project. Well, Ant developers expect you to use Ant wh

AW: scp task fails when no files match

2004-10-25 Thread Jan . Materne
AntContrib provides a task ... Jan > -UrsprÃngliche Nachricht- > Von: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 26. Oktober 2004 01:56 > An: Ant Users List > Betreff: RE: scp task fails when no files match > > This funcionality is currently the same

Re: threadcount (maxthreads) has no effect on HPUX with JRE1.4.2?

2004-10-25 Thread Patrick Surry
Sorry, my bad, this is a known problem with an older version of ant-contrib, fixed in current release: [ 872429 ] foreach task, wrong maxThread parameter mapping in code I'm using with maxthreads attribute (which just wraps with threadcount setting) and it works correctly on Windows XP (eg. 1

scoping issue with macros in included included ant file.

2004-10-25 Thread hanasaki
build.xml includes buildroot.xml buildroot.xml includes buildmacros.xml and includes another build2.xml file dynamically based on a property set in the first build.xml (the one called from the command line) The goal is to have polymorphism of macro names that are defined in buildmacros.xml. build2

RE: scp task fails when no files match

2004-10-25 Thread Anderson, Rob (Global Trade)
This funcionality is currently the same as that of command line scp, which will also exit with a error status code under these conditions. There is no way to do what you want with the current implementation. -Rob Anderson > -Original Message- > From: Wojciech Biela [mailto:[EMAIL PROTEC

scp task fails when no files match

2004-10-25 Thread Wojciech Biela
Hi, I hoped to find something on this in the mail archives, but I didn't. Strange, I was pretty sure I'm not the first to run into this ... anyway: I use scp to get files from a remote serwer to a local dir, the whole script works fine until the remote dir is empty (i.e. the pattern doesn't mat

custom tasks and security policies

2004-10-25 Thread Benedikt Heinen
Does ant support a good solution to having a separate security policy for a custom ant task? Or can I provide a global security policy for ant's security manager? If not, what's the "common practice", if any? Benedikt ABRUPT, adj. Sudden, without ceremony, like the arrival of a

Re: Verifying Ant Build Files

2004-10-25 Thread Simon Oldham
Thank's Kris, that has answered my question with regard to validating a build file. Sorry the explanation of what I am doing is rather poor. I was really just referring to storing the build file in memory in the same way you use the Document class in Java to store an XML document in memory. I thin

threadcount (maxthreads) has no effect on HPUX with JRE1.4.2?

2004-10-25 Thread Patrick Surry
I'm using with maxthreads attribute (which just wraps with threadcount setting) and it works correctly on Windows XP (eg. 10 1-second sleeps take 5s with 2 threads, and 1s with 10 threads) but on HP UX the 10 1-second sleeps always take 1 second regardless of the threadcount setting. Using JR

Re: Verifying Ant Build Files

2004-10-25 Thread Kris Read
I am not so clear on what you are trying to do but... You can use the classes of ANT from any Java application. They are not as well documented as one might like, but you shouldn't find it too tough. As for verifying a build.xml file, there is no ANT schema or DTD since ANT is flexible and allow

Verifying Ant Build Files

2004-10-25 Thread Simon Oldham
Hi, I am currently developing a distributed build system and wish to use ANT build files to provide the build information. Whether or not I will actually execute ANT on the individual nodes had not been decided yet. Basically, what I would like to do , using the ANT API, is be able to : 1) Verif

RE: How do I execute a sudo ssh command?

2004-10-25 Thread Anderson, Rob (Global Trade)
You would need to configure sudo to allow you to run the command without a password. -Rob A > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Colin Harris > Sent: Sunday, October 24, 2004 9:21 PM > To: [EMAIL PROTECTED] > Subject: How do I execute a sudo ssh command? >

RE: File name to a string

2004-10-25 Thread Matt Benson
You can also try using 's message attribute instead of nested text. -Matt --- [EMAIL PROTECTED] wrote: > Thanks I got it to work. The text file is a little > scewed it has a "character at the start of the file > and an special character at the end of the file. > Thanks for the help. > > ---

RE: File name to a string

2004-10-25 Thread craig_e_davis
Thanks I got it to work. The text file is a little scewed it has a "character at the start of the file and an special character at the end of the file. Thanks for the help. -- Original message -- > --- [EMAIL PROTECTED] wrote: > > > > > > > > > > > > > > > > > >

RE: File name to a string

2004-10-25 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > > > > > > > >property="works"> > >${works} > > > > HTH, Matt P.S. Regarding ${line.separator}, this is a Java property that will always be available. Some like to alias it to a shorter name if they would be using it

Re: Need guidance re

2004-10-25 Thread Rhino
Erik, Putting the task at the beginning of the build outside of any target solved my problem. *That* was the effect I was after. Until I made that change, I was not able to get the failure sound to play no matter what error occurred. If the manual article on had simply said that, I could have s

Uses for beanshell (or other scripting language) in Ant?

2004-10-25 Thread Robert Mark Bram
Hi All! What things do people find scripting languages useful for within Ant build files? In particular, what things do people find beanshell useful for within Ant build files? Thanks for any feedback! Rob :) -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.

RE: File name to a string

2004-10-25 Thread craig_e_davis
Ok, I seem to be getting closer at least. If someone has a minute and would't mind helping me out here I would appriciate it. Nothing urgent or a priority. This is what I have so far. It creates the works.txt but the file does not contain any information in it. Thanks in advance for the help.

RES: Convert to Ant

2004-10-25 Thread André Dantas Rocha
Thnkas Jan, I'll try your solution. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 25 de outubro de 2004 03:49 Para: [EMAIL PROTECTED] Assunto: AW: Convert to Ant Defining the classpath is done with a . Compiler is called via and the pro

Re: Need guidance re

2004-10-25 Thread Erik Hatcher
On Oct 24, 2004, at 3:37 PM, Rhino wrote: Remarks: There are only a few things that can go wrong in this simple example. For instance, I can fail to provide any input for the two tasks in the 'getlogin' target (by pressing the Cancel button). I suppose there would also be errors if the