AW: Convert to Ant

2004-10-24 Thread Jan . Materne
Defining the classpath is done with a . Compiler is called via and the program is run with . So you´ll get something like that (not tested): oreilly-aop/example1/build.xml: ---8-<-8-<-8-<-8-<-8-<-8-<--

Re: Convert to Ant

2004-10-24 Thread Kris Read
Hello, Ant is not a scripting language! Look in the Ant manual under the and tasks. http://ant.apache.org On Sun, 24 Oct 2004 09:31:22 -0300, André Dantas Rocha <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new in Ant and wold like to convert those lines to Ant script. How can I > do it? >

How do I execute a sudo ssh command?

2004-10-24 Thread Colin Harris
I'm having trouble trying to run a command on a remote server via ssh. The problem is that there are a few commands that require me to use 'sudo' but there doesn't seem to be a way of specifying the password when it is requested. I'm sure other people have had to do the same thing. Could someoe pl

AW: Put variable between quotes

2004-10-24 Thread Jan . Materne
Escaping the " in xml with " "${boot.sp}" Jan > -Ursprüngliche Nachricht- > Von: André Dantas Rocha [mailto:[EMAIL PROTECTED] > Gesendet am: Sonntag, 24. Oktober 2004 23:46 > An: [EMAIL PROTECTED] > Betreff: Put variable between quotes > > Hi, > > In my script I have a tag like t

Re: Beanshell from within ant

2004-10-24 Thread Conor MacNeill
You need the Bean Scripting Framework BSF from the Apache Jakarta project. It is what Ant uses to embed scripting languages. http://jakarta.apache.org/bsf/ This is not part of bsh. Conor Robert Mark Bram wrote: Hi All! I have been looking at the Ant section of this page: http://www.beanshell.org/

Re: Need guidance re

2004-10-24 Thread Rhino
- Original Message - From: "Laconia Data Systems" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Sunday, October 24, 2004 8:05 PM Subject: Re: Need guidance re > Rhino > Include your build.xml here >

Beanshell from within ant

2004-10-24 Thread Robert Mark Bram
Hi All! I have been looking at the Ant section of this page: http://www.beanshell.org/manual/bsf.html#BSF_Bean_Scripting_Framework I downloaded bsh-2.0b2.jar and put it in my CLASSPATH and in my ANT_HOME/lib dirs and saved the following to C:\temp\build.xml:

Re: Need guidance re

2004-10-24 Thread Laconia Data Systems
Rhino Include your build.xml here From: "Laconia Data Systems" <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Sunday, October 24, 2004 4:50 PM > Subject: Re: Need guidance re > > > > Rhino > > I Cant make specific suggestions without looking at the tasks > (specifically) >

Re: Need guidance re

2004-10-24 Thread Rhino
Did you see the short example elsewhere in this thread? If you could show me what you mean in that example, I think I'd probably understand the principle you described. I'm afraid I'm someone who often doesn't understand a principle unless he sees a real-life example. Rhino - Original Messag

RE: File name to a string

2004-10-24 Thread Wascally Wabbit
At 05:00 PM 10/24/2004, you wrote: <\fileset> ^ TYPO HERE The Wabbit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Put variable between quotes

2004-10-24 Thread André Dantas Rocha
Hi, In my script I have a tag like that: and I would like to put ${boot.cp} value between quotes ( "${boot.cp}" ). How can I do it? Thanks, André

RE: File name to a string

2004-10-24 Thread craig_e_davis
Ok this is what am I am trying am I even on the right track here... I am getting an error . "The content of elements must consist of well-formed data...Plus does that line seperator need to be declared somewhere first. Again I appologize for the ignorance. Just trying something different.

Re: Need guidance re

2004-10-24 Thread Laconia Data Systems
Rhino I Cant make specific suggestions without looking at the tasks (specifically) you have defined within the contents of your build.xml (generally) Martin- - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Sunday, October 24, 2004 4:14

Re: Need guidance re

2004-10-24 Thread Rhino
Sorry? I'm not clear what you mean. I hope you're not saying that I need to put a task in every target ;-) How would you change my example to do what you are talking about? Rhino - Original Message - From: "Laconia Data Systems" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTE

Re: Need guidance re

2004-10-24 Thread Laconia Data Systems
Rhino I would suggest calling the sound within a specific task which executes depending on the presence a property (if="property") or absence of property (unless="property") HTH, Martin- - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: S

Re: Need guidance re

2004-10-24 Thread Rhino
First of all, thanks for the very useful reply, Erik! I suppose I've just been thinking of things the wrong way. As you pointed out, a reasonably clear message does appear when a particular task fails. I'm already using tasks where it is appropriate to give my user information on what is happenin

RE: File name to a string

2004-10-24 Thread craig_e_davis
Thank you for the quick reply, I am will try this and let you know how it works. Thanks again -- Original message -- > --- [EMAIL PROTECTED] wrote: > > > Sorry if this seems very basic, but I am brand new > > to ANT. What I am trying to do is have a task read a > > d

Re: Bat to Ant

2004-10-24 Thread Laconia Data Systems
You can incorporate a Java task within sample build.xml Take a look at http://ant.apache.org/manual/CoreTasks/java.html Martin- - Original Message - From: "André Dantas Rocha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 24, 2004 8:55 AM Subject: Bat to Ant Hi, I ha

Bat to Ant

2004-10-24 Thread André Dantas Rocha
Hi, I have a MS-DOS bat file like this: "%JAVA_HOME%\bin\java" -cp "%JAVA_HOME%\lib\tools.jar;%ASPECTWERKZ_HOME%\lib\javassist-3.0RC1.jar;%ASPE CTWERKZ_HOME%\lib\aspectwerkz-core-1.0.RC3.jar" org.codehaus.aspectwerkz.hook.ProcessStarter -Xbootclasspath/p:"\"%ASPECTWERKZ_HOME%\lib\javassist-3.0R

Convert to Ant

2004-10-24 Thread André Dantas Rocha
Hi, I'm new in Ant and wold like to convert those lines to Ant script. How can I do it? Thanks, André $ cd oreilly-aop/example1 $ export CLASSPATH=.;jboss-common.jar;jboss-aop.jar;javassist.jar $ javac *.java $ java -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader POJO

Re: Need guidance re

2004-10-24 Thread Erik Hatcher
On Oct 22, 2004, at 9:26 AM, Rhino wrote: One of the aspects that I want to improve is error handling. Right now, I mostly just assume that everything is going to work and don't do much error handling; if the build fails, it fails. This is really the Ant "way". Failure is a built-in mode of oper