AW: Can't execute 'script' task. Get java.lang.ClassNotFoundException: org.apache.tools.ant.util.optional.ScriptRunner

2007-06-26 Thread Jan.Materne
1.7.9 ? We never released a 1.7.9. We just have 1.7.0 Could you send the download link? Jan >-Ursprüngliche Nachricht- >Von: Alex Honor [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 26. Juni 2007 23:23 >An: user@ant.apache.org >Betreff: RE: Can't execute 'script' task. Get

AW: Zip file/folder only if present

2007-06-26 Thread Jan.Materne
no http://ant.apache.org/manual/dirtasks.html#patterns Jan >-Ursprüngliche Nachricht- >Von: Parag P. Doke [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 26. Juni 2007 18:15 >An: Ant Users List >Betreff: Re: Zip file/folder only if present > >Hi Jan. >Thank you for your email. >Just one

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Thanks Prashant for reply. I am talking for the situation where a.java, b.java and c.java are independent java code files. Thanks, -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:57 PM To: Ant Users List Subject: Re: Javac task query

Re: Javac task query

2007-06-26 Thread Prashant Reddy
No 'javac' task by itself will not delete class file whose source java file has been deleted, and rightly so. I do not think you would really want other source files to *not* compile when you have deleted a dependent source file. Imagine class A uses class C and you deleted class C (manually, a

RE: ftp put x as y

2007-06-26 Thread Rebhan, Gilbert
Hi, -Original Message- From: Chris Velevitch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 5:59 AM To: Ant Users List Subject: ftp put x as y /* How to I ftp a file so that it gets a different name on the server? */ 1.Simply rename them (with move) before ftp ? maybe 2.th

ftp put x as y

2007-06-26 Thread Chris Velevitch
How to I ftp a file so that it gets a different name on the server? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Thanks Steve! It worked. But lets say if I have executed compile target on a.java, b.java ,c.java it generates a.class, b.class, c.class and then I made jar of these class files. Later if I deleted c.java from source and its class file is present is in dest dir. And when I will make jar it will c

Re: ant cvs error

2007-06-26 Thread Martin Gainty
The suggestion worked Thanks Peter! Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by te

RE: ANT and Perforce

2007-06-26 Thread Anderson, Rob (Global Trade)
Start by reading the manual... http://ant.apache.org/manual/index.html People on the list are happy to help, but we won't do your work for you. -Rob Anderson > -Original Message- > From: srinivas ramgopal [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 3:40 PM > To: user@ant.

ANT and Perforce

2007-06-26 Thread srinivas ramgopal
Hi all, I am new to Ant and Perforce. How to write an ant script that does the following tasks: 1a) recognizes a developer's checkin in Perforce and get the name of the changelist. 1b) compile the codebase files of the above changelist. 1c) create a new folder in the file system;copy certain fil

Re: Ant on Mac OS X (Solved)

2007-06-26 Thread Jason Barker
I have figured it out. I have a jar file (selenium-server.jar) in my Extensions folder (/Library/Java/Extensions) which also contained the class files for Ant. As soon as I removed the jar file from that folder, I was able to run Ant without any problems. What's more is that it seems like A

Default Logging Level on is "warning" and not "info" in Ant 1.7

2007-06-26 Thread David Weintraub
I've been having some problems attempting to get to be quiet when I am doing CruiseControl builds. Otherwise, I get dozens of echo lines in my output showing up as "errors". After playing around for a while, I suddenly realized in Ant 1.7 that the default logging level of the task is set to "wa

Re: Ant on Mac OS X

2007-06-26 Thread Jason Barker
On Jun 26, 2007, at 3:34 PM, Jack J. Woehr wrote: On Jun 26, 2007, at 3:18 PM, Jason Barker wrote: I have cleared out my CLASSPATH. Ant is currently installed at: / Developer/Java/Ant. I have set ANT_HOME to /Developer/Java/Ant. I have added $ANT_HOME/bin to my PATH, too. What gives? You

Re: Ant on Mac OS X

2007-06-26 Thread Jack J. Woehr
On Jun 26, 2007, at 3:18 PM, Jason Barker wrote: I have cleared out my CLASSPATH. Ant is currently installed at: / Developer/Java/Ant. I have set ANT_HOME to /Developer/Java/Ant. I have added $ANT_HOME/bin to my PATH, too. What gives? You must not have the Ant jar in $ANT_HOME/lib. Or somet

RE: Can't execute 'script' task. Get java.lang.ClassNotFoundException: org.apache.tools.ant.util.optional.ScriptRunner

2007-06-26 Thread Alex Honor
It's the 1.7.9 binary distribution I pulled from the Apache download page. I agree it does appear to be a missing class though. Anderson, Rob (Global Trade) wrote: > > It looks like you are missing some of the classes for the optional > tasks. Did you compile Ant from source? If so, I recommend

Ant on Mac OS X

2007-06-26 Thread Jason Barker
I have been trying to get Ant working on my Mac. The problem I am running into is whenever I type 'ant' from the command line, I get the following error: java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain at java.lang.ClassLoader.defineClass1(Native Method) at

Re: ant cvs error

2007-06-26 Thread Peter Reilly
See the manual: http://ant.apache.org/manual/CoreTasks/cvs.html """ Important: This task needs "cvs" on the path. If it isn't, you will get an error (such as error 2 on windows). If doesn't work, try to execute cvs.exe from the command line in the target directory in which you are working. """ O

Re: ant cvs error

2007-06-26 Thread Robert Clark
On Tuesday June 26, 2007, "Martin Gainty" <[EMAIL PROTECTED]> wrote: > Is there a cvs binary that needs to be installed? > I didnt see this in ant distro?! Yes. Ant does not include CVS, it is a separate product. You can get it from . - Rob -

Re: ant cvs error

2007-06-26 Thread Doug Lochart
Martin Gainty wrote: Is there a cvs binary that needs to be installed? I didnt see this in ant distro?! Yes you need to choose a CVS implementation for Windows and install that. I think the last one I used was cvsNT but I am sure there are others. Thanks! M-- This email message and any files

Re: ant cvs error

2007-06-26 Thread Martin Gainty
Is there a cvs binary that needs to be installed? I didnt see this in ant distro?! Thanks! M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message i

Re: ant cvs error

2007-06-26 Thread Robert Clark
On Tuesday June 26, 2007, "Martin Gainty" <[EMAIL PROTECTED]> wrote: > when running the ant cvs task example from the book > package="ant" >dest="." > /> > > I get > svn_checkout: > [cvs] Caught exception: CreateProcess: cvs > -d:pserver:[EMAIL PROTECTED] rg:/home/cvspublic

ant cvs error

2007-06-26 Thread Martin Gainty
when running the ant cvs task example from the book I get svn_checkout: [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED] rg:/home/cvspublic checkout ant error=2 what does this error mean??? Thanks M-- This email message and any files transmitted with it contain co

Re: AW: Convert Value to lower case

2007-06-26 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Hi, Matt > > Matt Benson wrote: > > Actually the props antlib is a test harness for > some > > changes the Ant team is considering for Ant's > property > > handling mechanisms, which in their current form > seem > > to leave a little to be desired,

Re: AW: Convert Value to lower case

2007-06-26 Thread Gilbert Rebhan
Hi, Matt Matt Benson wrote: Actually the props antlib is a test harness for some changes the Ant team is considering for Ant's property handling mechanisms, which in their current form seem to leave a little to be desired, so this antlib actually depends on modifications to Ant which have not ev

Re: AW: Convert Value to lower case

2007-06-26 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Hi, Jan > > [EMAIL PROTECTED] wrote: > > You would be interested in the new "props" AntLib > in the sandbox ... > > > https://svn.apache.org/repos/asf/ant/sandbox/antlibs/props/trunk/ > > > After a quick look online (have no > eclipse+subversion

Re: AW: Convert Value to lower case

2007-06-26 Thread Gilbert Rebhan
Hi, Jan [EMAIL PROTECTED] wrote: You would be interested in the new "props" AntLib in the sandbox ... https://svn.apache.org/repos/asf/ant/sandbox/antlibs/props/trunk/ After a quick look online (have no eclipse+subversion plugin installed right now) the props antlib looks very interesting. Ha

RE: Zip file/folder only if present

2007-06-26 Thread Anderson, Rob (Global Trade)
I believe the zip task will not create a zip file if there are no files to include. -Rob Anderson > -Original Message- > From: Parag P. Doke [mailto:[EMAIL PROTECTED] > Sent: Monday, June 25, 2007 11:56 PM > To: user@ant.apache.org > Subject: Zip file/folder only if present > > Hi All.

RE: Can't execute 'script' task. Get java.lang.ClassNotFoundException: org.apache.tools.ant.util.optional.ScriptRunner

2007-06-26 Thread Anderson, Rob (Global Trade)
It looks like you are missing some of the classes for the optional tasks. Did you compile Ant from source? If so, I recommend using the binary dist, unless you have a compelling reason to comiple from source. -Rob Anderson > -Original Message- > From: Alex Honor [mailto:[EMAIL PROTECTED]

Re: Zip file/folder only if present

2007-06-26 Thread Parag P. Doke
Hi Jan. Thank you for your email. Just one question about lines: If I'm not mistaken, I could use: Is that right ? Thanks in advance, Parag P. Doke On 6/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Try a combination like With you ensure that the folder

Re: Javac task query

2007-06-26 Thread Steve Loughran
Yadav, Akshat Kumar wrote: Hi Prashant, I had executed ANT in verbose and debug mode and it shows [javac] HelloWorlApp.java added as HelloWorlApp.class doesn't exist. Whereas the class file exist in dest dir. I tried adding/deleting dest dir in classpath, but no luck in both the situation.

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Hi Prashant, I had executed ANT in verbose and debug mode and it shows [javac] HelloWorlApp.java added as HelloWorlApp.class doesn't exist. Whereas the class file exist in dest dir. I tried adding/deleting dest dir in classpath, but no luck in both the situation. I would appreciate, If you c

RE: Javac task query

2007-06-26 Thread Prashant Reddy
Humm.. May be you could try running ANT in verbose mode, see why ANT thinks it should compile .java files that are not modified. Also, I think the destination dir the classes are directed to is automatically added to classpath by ANT. So you may not need this : > includes="**/*.*"/> > HTH On

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Thanks Prashant for reply. I had gone through this link earlier, my source dir structure mirrors package dir structure. Even I tried to put the source and dest dir as single dir.

Re: Javac task query

2007-06-26 Thread Prashant Reddy
Please see : http://ant.apache.org/faq.html#always-recompiles HTH On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kumar wrote: > Hi All, > > Ant manual says "The source and destination directory will be > recursively scanned for Java source files to compile. Only Java files > that have no corre

Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Hi All, Ant manual says "The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled." Reference: http://ant.apache.org/manual/CoreT

AW: Zip file/folder only if present

2007-06-26 Thread Jan.Materne
Try a combination like With you ensure that the folder is present. The targets will only be executed if the property is set. So inside the target you can be sure that the folder is present (if you dont set the property otherwise ;) If you know that the base directory WILL exist you