Re: Javac task query

2007-06-27 Thread Peter Reilly
On 6/27/07, Yadav, Akshat Kumar <[EMAIL PROTECTED]> wrote: Thanks Prashant for reply. I am talking for the situation where a.java, b.java and c.java are independent java code files. Thanks, does not remove the c.class file if the c.java file does not exist. - i.e. it has no memory of previo

Re: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Peter for reply. I think ANT developer should think on extending there "javac" task to provide such feature. Thanks, -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:46 PM To: Ant Users List Subject: Re: Javac task query On 6/27/

Re: ANT and Perforce

2007-06-27 Thread Sunil Prabhakaran
hi Srinivas I dont think the perforce command(P4 changes) for 1a> is implemented in ant alternatively you can write this task yourself.check out for P4 api in perforce site on how to do it Else you can directly the particular perforce command (P4 Changes) For 1c> check tasks (link:http://ant.

Re: Javac task query

2007-06-27 Thread Steve Loughran
Yadav, Akshat Kumar wrote: Thanks Peter for reply. I think ANT developer should think on extending there "javac" task to provide such feature. Thanks, I must disagree. You should get into the habit of doing clean builds on a regular basis, at least first thing every morning when you check

RE: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Steve, I will look into this. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 5:09 PM To: Ant Users List Subject: Re: Javac task query Yadav, Akshat Kumar wrote: > Thanks Peter for reply. > > I think ANT developer should think on

Re: Zip file/folder only if present

2007-06-27 Thread Parag P. Doke
Thank you Jan and Rob for the inputs. I will attempt more and reply back when I have some working build file. Thanks, Parag P. Doke On 6/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: no http://ant.apache.org/manual/dirtasks.html#patterns Jan >-Ursprüngliche Nachricht- >Von: Para

Re: ant regex

2007-06-27 Thread Stepan Mishura
The next works for me: $ ant Buildfile: build.xml doit: [echo] C:\temp\dp\util;C:\temp\dp\util\stack BUILD SUCCESSFUL Total time: 0 seconds Thanks, Stepan. On 6/13/07, snenkov <[EMAIL PROTECTED]> wrote: I am using w

Ant help

2007-06-27 Thread Sayed, Irfan (Irfan)
Hi All, I am getting one error while running build.xml file. Following is the error. D:\Irfan>ant dist Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6. 0_01\lib\tools.jar Can somebody please help. Regards Irfan.

Re: Ant help

2007-06-27 Thread Scot P. Floess
You may need to set your JAVA_HOME to a JDK install - not a JRE install... Sayed, Irfan (Irfan) wrote: Hi All, I am getting one error while running build.xml file. Following is the error. D:\Irfan>ant dist Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6. 0_0

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

2007-06-27 Thread Alex Honor
Slip of the finger. It is 1.7.0. Downloaded from http://ant.apache.org/bindownload.cgi Jan.Materne wrote: > > 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:[EM

ANT FTP tsk

2007-06-27 Thread sarancse
Hi I am used the following build script to upload files to remote server using ANT I had included jakarta-oro-2.0.8.jar and commons-net-1.4.0.jar to ANT lib. But still I got the following error. Invalid byte 1 of 1-byte UTF-8 sequence Hope this will help to other folks also ... Please help on this

AW: ANT FTP tsk

2007-06-27 Thread Jan.Materne
Have a look at your build.xml and search for non-ASCII characters ... or change (set) the xml setting (maybe another encoding) Jan >-Ursprüngliche Nachricht- >Von: sarancse [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 27. Juni 2007 18:05 >An: user@ant.apache.org >Betreff: ANT F

ANT FTP task

2007-06-27 Thread sarancse
I am unable to upload a file using the following ANT script. I am having commons-net-1.4.0.jar and jakarta-oro-2.0.8.jar in my ANT lib. Please help to upload successfully -- View this message in context: http://www.nab

RE: Ant help

2007-06-27 Thread Anderson, Rob (Global Trade)
Does the build succeed, or does it fail? -Rob A > -Original Message- > From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 27, 2007 6:48 AM > To: user@ant.apache.org > Subject: Ant help > > Hi All, > > I am getting one error while running build.xml file. > F

RE: ANT FTP task

2007-06-27 Thread Anderson, Rob (Global Trade)
What is the output of the build? What is the error? -Rob A > -Original Message- > From: sarancse [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 27, 2007 9:09 AM > To: user@ant.apache.org > Subject: ANT FTP task > > > I am unable to upload a file using the following ANT script. > I

Re: Javac task query

2007-06-27 Thread Wayne Cannon
Keep in mind that a class file is generated for every Java class, NOT for every source file. Source files can contain multiple classes (although I generally don't like the practice, it's very common for listener classes in GUI code). If B.java defined classes B and C, the compiler would gener

RE: ANT FTP task

2007-06-27 Thread sarancse
The error is Invalid byte 1 of 1-byte UTF-8 sequence. Anderson, Rob (Global Trade) wrote: > > What is the output of the build? What is the error? > > -Rob A > >> -Original Message- >> From: sarancse [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 27, 2007 9:09 AM >> To: user@ant.a

filename collisions when compiling

2007-06-27 Thread David Alves
I have two directories of source files that I want to compile. One of them has A.java B.java C.java the other one has A.java The version of A in the second directory is different from the version in the first directory. Is there set up my javac task so that it always takes source f

RE: filename collisions when compiling

2007-06-27 Thread Burgess, Benjamin
You could always mange your files ahead of compiling. For example, you could copy everything from the first directory into a temp directory, then copy everything from the second directory into the temp directory overwriting existing files, then compile from the temp directory. Ben -Original

Re: filename collisions when compiling

2007-06-27 Thread Tommy Nordgren
On 27 jun 2007, at 20.17, David Alves wrote: I have two directories of source files that I want to compile. One of them has A.java B.java C.java the other one has A.java The version of A in the second directory is different from the version in the first directory. Is there set up my

Re: filename collisions when compiling

2007-06-27 Thread Wayne Cannon
... or simply name them both non-java, such as A.java.source, and then copy the desired one to A.java in its current directory (removing any pre-existing A.java copies beforehand). That way, there is only one A.java, regardless of directory. If there are two different cases that are compiled,

Re: filename collisions when compiling

2007-06-27 Thread Wayne Cannon
Clarification, since you usually want the full class name, including package, for class A to remain the same: For example: .../common/com/mycompany/myproject/B.java package.class = com.mycompany.myproject.B .../common/com/mycompany/myproject/C.java package.class = com.mycompany.myp

How to make "outputproperty" element work???

2007-06-27 Thread broken connection
Hi Friends, I need some help with "outputproperty" element. I have a properties file, i want to pass in one of the property to a java program and read the response back and store it in the same property using ant for eg: my_property=plain_password //I want to pass this to a java program and the

Re: AW: Convert Value to lower case

2007-06-27 Thread Dale Anson
An alternate solution is the StringUtils task in Antelope. See documentation here: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html And download here: http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.4.2.zip This task is compatible with Ant 1.6.5. Dale [EMAI

Re: How to make "outputproperty" element work???

2007-06-27 Thread Ninju Bohra
Hello, I made up the following quick test and the 'outputproperty' of the task worked just fine Stupid JAVA class to generate the 'new' password and write the value to System.out (so that it can be captured into the 'outputproperty') public class GeneratePassword { public static void ma

Re: Re: task issue in ANT

2007-06-27 Thread query
  Is it possible to use NANT within ANT just like ant-contrib ? I may need NANT only for,, and tasks. For all other things I am comfortable using ANT tool. On Sat, 23 Jun 2007 David Weintraub wrote : >If you're using Microsoft's .NET framework, you might want to look at >Nant and not Ant. Nan

Re: How to make "outputproperty" element work???

2007-06-27 Thread broken connection
Hi Ninju, I really really want to thank you for that great help. I almost spent 7 hours and was still trying to figure it out when your reply came.I tried everything from to to and god knows what else And you made it sound soo easy...wow..you are genius man. Thanks again for that great he

Re: How to make "outputproperty" element work???

2007-06-27 Thread broken connection
Hi again, I have one small question here,if someone can help please Ninju, showed how to pass one parameter and get the value but what if I want to call the same Java file say 20 times passing different parameter value each time and getting different encrypted result back each time. So,is th

RE: How to make "outputproperty" element work???

2007-06-27 Thread Rebhan, Gilbert
Hi, -Original Message- From: broken connection [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 8:07 AM To: Ant Users List Subject: Re: How to make "outputproperty" element work??? /* Ninju, showed how to pass one parameter and get the value but what if I want to call the same