Re: Cross-Platform Exec Task

2004-10-28 Thread Kris Read
Perhaps you can use this information to help: In the "Condition" task one of the supported conditions is "os". os: Test whether the current operating system is of a given type. Each defined attribute is tested and the result is true only if all the tests succeed. family : The name of the ope

Re: ant contrib broken in ant 1.6.2 ?

2004-10-28 Thread Kris Read
I'm not sure about your specific example, but I do use Ant 1.6.2 with many instances on our build and it still works. On Thu, 28 Oct 2004 14:51:48 -0500, Shackelford, John-Mason <[EMAIL PROTECTED]> wrote: > > I am using ant-contrib-1.0b1 and ant 1.6.2. The if task appears to no longer > work.

Re: "Return values" with Ant?

2004-10-28 Thread Kris Read
If either Y or Z (or X) fails, the build fails... a fail is a fail. If you want to have failures of prerequisite tasks that do not necessarilly mean a failure, you can use the try/catch tags, I think also part of antcontrib... On Thu, 28 Oct 2004 22:26:07 +0200, Marcel Stör <[EMAIL PROTECTED]>

Cross-Platform Exec Task

2004-10-28 Thread Satish Jeejula
Hi All, I am trying to write a target that calls an different executable depending upon the operating system it is running on. For example, this is my intention. I can't include element "os" in the "exec" . if I have to use 'os' attribute

Re: Perforce Tasks not working with Ant 1.6.2?

2004-10-28 Thread Antoine Levy-Lambert
Hello Michael, I have had this problem too, while running the ant test suite. I think you need to upgrade to the latest version of jakarta-oro. (2.0.8) Let me know if oro 2.0.8 fixes your problem. Cheers, Antoine Michael Manz wrote: Hi folks, I just updated my Ant 1.5.1 to Ant 1.6.2. (new directo

RE: "Return values" with Ant?

2004-10-28 Thread Marcel Stör
Kris Read wrote: > Use the tasks in the antcontrib project. They have an antcall task > that returns a property or set of properties. > > Another way is to structure your file with the 'depends' attribute. X > does not execute unless Y executed. Ok, fine. Let's assume

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
Let me try the other version you just gave me. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:44 PM To: Ant Users List Subject: RE: Ant file command-line arguments WAS nested "fileset" error (why?) > From: George Dibi [mailto:[EMA

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
Thanks, That works. -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:41 PM To: Ant Users List Subject: RE: Ant file command-line arguments WAS nested "fileset" error (why?) ant ivcommon_isoft -DBUILDVIEW=[insert here] -DIVC_VER=[inse

ant contrib broken in ant 1.6.2 ?

2004-10-28 Thread Shackelford, John-Mason
I am using ant-contrib-1.0b1 and ant 1.6.2. The if task appears to no longer work. If I run the statement from the example page:

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread Dominique Devienne
> From: George Dibi [mailto:[EMAIL PROTECTED] > > Where the ${BUILDVIEW} ${IVC_VER} ${IVC_BLD} would past in from command > line. > > > > Building ivcommon... >${perl.bin.dir} ${ivc.perl.target} ${drive} ${BUILDVIEW} > > > >

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread RADEMAKERS Tanguy
ant ivcommon_isoft -DBUILDVIEW=[insert here] -DIVC_VER=[insert here] -DIVC_BLD=[insert here] >-Original Message- >From: George Dibi [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 28, 2004 9:30 PM >To: Ant Users List >Subject: RE: Ant file command-line arguments WAS nested >"fileset"

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread George Dibi
Where the ${BUILDVIEW} ${IVC_VER} ${IVC_BLD} would past in from command line. Building ivcommon... ${perl.bin.dir} ${ivc.perl.target} ${drive} ${BUILDVIEW} -Original Message- From: Matt Benson [m

RE: nested "fileset" error

2004-10-28 Thread RADEMAKERS Tanguy
George, Not sure, but i think the task is what you're after. Consult the Quality Documentation ! /t >-Original Message- >From: George Dibi [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 28, 2004 9:13 PM >To: Ant Users List >Subject: RE: nested "fileset" error > >Hey guys, > >Can s

RE: Ant file command-line arguments WAS nested "fileset" error (why?)

2004-10-28 Thread Matt Benson
--- George Dibi <[EMAIL PROTECTED]> wrote: > Can someone tell me how to have build.xml file to > take a command line > arguments? An example file would be appreciated. Kind of depends on what you want to do, post a problem, someone will probably solve it. Even a hypothetical one. -Matt

RE: nested "fileset" error

2004-10-28 Thread George Dibi
Hey guys, Can someone tell me how to have build.xml file to take a command line arguments? An example file would be appreciated. Thanks -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: nested "files

RE: Propostion for improving PropertyFileInputHandler

2004-10-28 Thread Ivan Ivanov
Bill, my idea is that now PropertyFileInputHandler is not very intuitive to use and the unprepared user might encounter the same errors as I encountered. What we have now is: 1) If we use prompts with spaces, we should remember to escape the spaces, the way Stefan showed which is at least tedious

Deploy to Sun One Webserver

2004-10-28 Thread Gareth Kelly
Hello, I was reading up on this, and can see how to deploy to Sun One App Server, but can anyone deploy a WAR file to Sun One Web Server 6.1? Thanks, Gareth The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-ma

RE: Propostion for improving PropertyFileInputHandler

2004-10-28 Thread Bill Rich
This example points out a failure in the way the prompts are stated and not in using the prompt as a key. In the example the two prompts are exactly the same. I would assume that I would respond with the exact same value to both of the prompts because that is what I am asked for. If the interface

Re: line count?

2004-10-28 Thread Ivan Ivanov
Check this thread: http://marc.theaimsgroup.com/?l=ant-user&m=108275517031783&w=2 --- [EMAIL PROTECTED] wrote: > Is there a filterchain or anoter way to count lines > in a file with Ant? > > Sten Rosendahl > > - > To unsubscrib

Unable to create junit task with ant 1.6.2 & junit3.8.1

2004-10-28 Thread AjayaSahoo
Hi, I am using ant-1.6.2 & junit-3.8.1 and unable to create the junit task. I have looked into the archive and put both junit

Re: nested "fileset" error

2004-10-28 Thread Peter Reilly
The doc does not say "takes", it says "specifies" a fileset, i.e. it "is" a fileset. So just use: Peter Scott Purcell wrote: I am trying to create a war file with certain jar files. According to the docs the element takes a . But upon execution of the script I an error. I have googled thi

RE: nested "fileset" error

2004-10-28 Thread Dominique Devienne
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > > I am trying to create a war file with certain jar files. According to the > docs the element takes a . But upon execution of the script > I an error. I have googled this error, but do not see any known problems. > > Error from compiler: "The t

nested "fileset" error

2004-10-28 Thread Scott Purcell
I am trying to create a war file with certain jar files. According to the docs the element takes a . But upon execution of the script I an error. I have googled this error, but do not see any known problems. Error from compiler: "The type doesn't support the nested "fileset" element." Doe

line count?

2004-10-28 Thread sten.rosendahl
Is there a filterchain or anoter way to count lines in a file with Ant? Sten Rosendahl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Classpath problem with Checkstyle?

2004-10-28 Thread Dominique Devienne
> From: Roberto Juarez [mailto:[EMAIL PROTECTED] > I have in structed Checkstyle to allow the @throws tag for undeclared > exceptions in the checkstyle.xml configuration file This is not Ant-related. Just add a corresponding throws XyxException declaration to the method when you have a @throws

Re: untar

2004-10-28 Thread jfuller
"Nagendra Singh" <[EMAIL PROTECTED]> wrote .. > > Dear Sir, > > I have a tar ball. We want to untar this tar ball through ant. We write > some thing like > look up the usage of the untar task in the ant manual. http://ant.apache.org/manual/CoreTasks/unzip.html gl, Jim Fuller ---

untar

2004-10-28 Thread Nagendra Singh
Dear Sir, I have a tar ball. We want to untar this tar ball through ant. We write some thing like with regards nksingh Nagendra Kumar Singh Software Engineer EE/ACES, IIT Kanpur PH- +91-512-2597841

Perforce Tasks not working with Ant 1.6.2?

2004-10-28 Thread Michael Manz
Hi folks, I just updated my Ant 1.5.1 to Ant 1.6.2. (new directory, just changed the Ant Path) Now the Perforce Tasks are crashing... (see below) I searched for misconfigured paths, but found none. What is the Problem? Seems noone else have the same Errors. (is the solution so obvious?) Same sc

Importing properties

2004-10-28 Thread sten.rosendahl
Hi, It occurred to me that the way Ant reads property files in imported build scripts is not very modular by default. As the manual explains, to read a property file relative to the current script, you must do the following: But on the other hand, the import task itself uses import path

Re: Propostion for improving PropertyFileInputHandler

2004-10-28 Thread Ivan Ivanov
Something more, nothing prevents us from this situation: So we have same prompts and there is no way distinguish them as keys in properties file (which are should be unique) and property names give us more "uniqueness" as properties are immutable. In short, using prompt as a key, open

Re: Propostion for improving PropertyFileInputHandler

2004-10-28 Thread Ivan Ivanov
Hi Stefan, --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > > No, you create it as > > #inputp.properties > Enter\ Your\ Name=Rambius Parkisanius > > At least for JDK > 1.1. I didn't knew that. However, I think I will use -propertyfile option, because in my custom task (i am writng ant task fo

Classpath problem with Checkstyle?

2004-10-28 Thread Roberto Juarez
Hi folks, I am using Checkstyle 3.3 under Ant 1.6.2. I have in structed Checkstyle to allow the @throws tag for undeclared exceptions in the checkstyle.xml configuration file ... ... but Checkstyle is un

Re: 1.6.2 WAR/JAR Empty Directories

2004-10-28 Thread Peter Reilly
and are just wrappers for so they had the same problem. The only work-around is to use ant 1.6.1, or to grap a cvs version of ant. Peter Urciolo, Kevin (Mission Systems) wrote: I have found an issue with the new ANT 1.6.2 version. Using the WAR or JAR task, empty directories are not created. I

Re: Simple manipulation of a property value

2004-10-28 Thread Benoît Lubek
Thank you all. I chose Erik's solution, but yours is a good idea too. Thanks, -- B.LUBEK Kris Read wrote: This is a hack, but: PropertyFile to persist the property to a file. Replace or ReplaceRegExp to alter the value. Then reload from the file. On Wed, 27 Oct 2004 10:04:33 -0400, Erik Ha

Re: Propostion for improving PropertyFileInputHandler

2004-10-28 Thread Stefan Bodewig
On Wed, 27 Oct 2004, Ivan Ivanov <[EMAIL PROTECTED]> wrote: > So we create the following properties file > > #inputp.properties > Enter Your Name=Rambius Parkisanius No, you create it as #inputp.properties Enter\ Your\ Name=Rambius Parkisanius At least for JDK > 1.1. Cheers Stefan