Re: How to set an environment variable through Ant?

2007-11-01 Thread Ninju Bohra
Hello, For ANT task that spawn a seperate process ( and come to mind) there are attributes to allow you define 'environment variable' that will be applied to the process that the task will run in. The ANT Manual for these two tasks are quite helpful Hope that helps, Ninju - Ori

Re: Help Required.....

2007-08-04 Thread Ninju Bohra
Or you can set the memoryInitialSize and memoryMaximumSize attributes to larger values on the task specifically. *** Don't forget to set the fork attribute to yes (otherwise it won't listen to the new values) *** Hope that helps, Ninju - Original Message From: "Bourzeix, Hervé" <

Re: Question about usage

2007-07-25 Thread Ninju Bohra
PUBLICID for xmlcatalog (see http://ant.apache.org/manual/CoreTypes/xmlcatalog.html) but you don't appear to have that in your DTD selection below. I'm not au fait with but I don't believe that it'll work with just a SYSTEM identifier. Brian On Wed, July 25, 2007 03:53, Ninju

Question about usage

2007-07-24 Thread Ninju Bohra
Hello all, I've been given a directory of XML files that I need to process. All the files have the following text at the top . . . Now I am planning to proces the files using the cool (see http://www.oopsconsultancy.com/software/xmltask/ for more info) to

Re: ANT -- Unique Error --Pls Help

2007-07-05 Thread Ninju Bohra
Hello, This error is usually indicative of a JAVA class version mis-match. A common cause of this creating .class files with one version of JAVA and running them on a on another (incompatible) version. Have you recently changed your environment (OS, JAVA version, ANT_HOME, JAVA_HOME, etc...)

Re: ANT tasks for ClearCase

2007-07-04 Thread Ninju Bohra
I second the clearantlib task suite..very helpful!!! - Original Message From: Gilbert Rebhan <[EMAIL PROTECTED]> To: Ant Users List Sent: Tuesday, July 3, 2007 12:30:52 PM Subject: Re: ANT tasks for ClearCase Hi, Anderson, Rob (Global Trade) wrote: > Go ahead and take a look at t

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

2007-06-28 Thread Ninju Bohra
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 help...really appreciate it! > > On 6/28/07, Ninju Bohra <[EMAIL PROTECTED]> wr

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: Can properties set in a build called from another build be reference by the calling buildfile?

2007-06-10 Thread Ninju Bohra
I believe the task can take a nested or sub-element, this will allow you to pass the value of properties from the parent script to the child script. See: http://ant.apache.org/manual/CoreTasks/ant.html for more info Hope that helps, Ninju - Original Message From: Dave <[EMAIL P

Re: Directory question

2007-05-17 Thread Ninju Bohra
Hello, The fact the properties values are not propagated across is by design... One possible solution would be... Now, I don't like this solution but it works. Later, Ninju - Original Message From: David Alves <[EMAIL PROTECTED]> To: user@ant.apache.

Re: Detecting presence of an application, access to it's return value

2007-05-14 Thread Ninju Bohra
Take a look at the task: http://ant.apache.org/manual/CoreTasks/exec.html In addition to the failifexecutionfails = false (to suppress the build failure) you may want to set the following attributes: resultproperty, errorproperty, outputproperty. Hopefully, something meaningful, unique and co

Re: How to set the next week start date

2007-04-29 Thread Ninju Bohra
e From: Gilbert Rebhan <[EMAIL PROTECTED]> To: Ant Users List Sent: Friday, April 27, 2007 3:33:59 PM Subject: Re: How to set the next week start date Hi, Ninju Bohra wrote: > Have you looked at the task > (http://ant.apache.org/manual/CoreTasks/tstamp.html) > > Maybe some

Re: predefined system properties?

2007-04-29 Thread Ninju Bohra
Please read the ANT docs: http://ant.apache.org/manual/using.html#built-in-props - Original Message From: Denis Bessmertnyj <[EMAIL PROTECTED]> To: Ant Users List Sent: Friday, April 27, 2007 10:58:27 AM Subject: predefined system properties? Does ant have predefined system proper

Re: How to set the next week start date

2007-04-27 Thread Ninju Bohra
Have you looked at the task (http://ant.apache.org/manual/CoreTasks/tstamp.html) Maybe something like: Also when you say 'set the current date' what does that mean? Do you want to set on the OS, in an application or to a ANT property? If you want to calculate what '7 days from

Re: Re: Settting environment variables

2007-04-20 Thread Ninju Bohra
st Cc: Ninju Bohra <[EMAIL PROTECTED]> Sent: Friday, April 20, 2007 2:21:38 AM Subject: Re: Re: Settting environment variables When I tried to use in and task, build compilation is failing with the following errors. javac doesn't support the nested "sysproperty" element

Re: Settting environment variables

2007-04-19 Thread Ninju Bohra
Hello, By the time ANT starts, the PATH and INCLUDE environment variables values are set (by the ant.bat or OS command script) and can not be altered. However if one you target needs to start seperate process (, , , etc...) you can control the value of the enviroment variables that the child p

Re: Automated build to ensure that every day check-ins are clean and non-breaking

2007-04-17 Thread Ninju Bohra
Please look at CruiseControl...an automated build tool that monitors the code repository and executes any ANT script you desire whenever checkins are detected. For more info: http://en.wikipedia.org/wiki/CruiseControl Enjoy, Ninju - Original Message From: prasad kumar <[EMAIL PRO

Re: Problems with calling an ant java task programatically

2007-04-13 Thread Ninju Bohra
Hello, I don't fully understand your need, but I'm gonna go ahead and give you my $.02 worth :-) If you want to programmaticaly launch an ANT target from with JAVA code and you don't want to wait for the target to finish you should be able to merely run the ANT script in a seperate process. P

Re: "post failure tasks" for failing targets

2007-03-12 Thread Ninju Bohra
With the standard ANT tasks you can not handle a 'failing' build. Of course that's why the authors of the task provided the 'failonerror' attribute. Instead of setting it to 'true' (which results in the buildscript stopping) how about setting it to 'false' and doing the following

Re: Using ant to parse text file

2007-02-22 Thread Ninju Bohra
Then I would look at writing a quick custom task (they really aren't that hard) so that you can eliminate all the details of the file structure to within the task. I would see something like: You would pass in (as attributes) the filename, the lookfor value (i.e. 'Test2'), and the name of t

Re: visibility of the variable/parameter

2007-02-21 Thread Ninju Bohra
Try creating s out of your helper targets. When invoking s the ANT scope is retained and so all properties defined within s are visible to the rest of the ANT invocation. I would try this before moving to because does allow the 'propegation' of property definition across invocation but it

Re: fileset and filename under copy task

2007-02-20 Thread Ninju Bohra
As much as you used the element you can use an element to define which files 'to include' Something like Copy Other Files - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, February 20, 2007 1:54:44 PM

Re: return status problem in ant.bat

2007-02-17 Thread Ninju Bohra
Try calling .exitValue() after the .waitFor() returns. It seems like both .waitFor() and .exitValue() would return the same value (based on looking at the JAVA API) however in my experience the .exitValue() seems to give me the sub-process value more realiably. Process p = pb.start(); int r =

Re: Jar contains the latest classes

2007-02-17 Thread Ninju Bohra
You may want to look at the task along with the ClassConstants filterReader class. If you jar contains a class file that has simple public JAVA constants (maybe a constant that is the build time/version number perhaps) you than can use the following target snippit to read load up all the const

Re: load name value pairs in file as tokens

2007-02-16 Thread Ninju Bohra
Have you looked at the task...it has a replacefilterfile attribute Hope that helps, Ninju - Original Message From: kkmca <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Thursday, February 15, 2007 7:18:13 PM Subject: load name value pairs in file as tokens I have a setup file t

Re: ant run command piping and get out put to value

2007-02-10 Thread Ninju Bohra
Hello, The task allows you execute any abritary commandline (including pipes) string. The task also has a 'outputproperty' attribute that allows you define the name of a property whose value will be the output the commandline execution Good Luck, Ninju - Original Message From:

Re: Delete files if error log exist

2007-02-07 Thread Ninju Bohra
Ooops...it appears you might have a problem (or two)... First off... I do not believe you can nest abritary task nodes within a task...the only sub-element permitted is a single element...I will defer to the ANT docs but I believe that is right Based on what you said...you want to delete the

Re: Can Ant Parse a Property

2007-01-28 Thread Ninju Bohra
What do you exact mean by "parse the property in the build file"? If you want to have access to the value of a key defined in the property file, you can load the property file via the and assuming the file conforms to JAVA property file standards the properties will be loaded into the ANT sess

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Ninju Bohra
Yes, The behavior you see is correct...there is an inherent limition of the task becuase it starts a new ANT "cycle" and knowlegde of previous run targets (like your "init" target) are not retained. You can try many different solutions: First solution: 1) Create a "property setting" targe

Re: Determining success/fail from call

2006-12-30 Thread Ninju Bohra
If all you want to do is get a simple status result, you may want to look at the task (from the ant-contrib project) and use it to set a result property that can be queried from the calling script. Otherwise to stay with core ANT tasks you can have the subroutine script write their result (vi

Re: set a property in a .properties file

2006-12-19 Thread Ninju Bohra
You may want to look at the FilterChains and FilterReaders elements to 'select' which lines of the original properties file to copy and then merely append the new line. Maybe use the element to 'select' all the lines EXCEPT the one(s) you want to change and copy the 'selected' lines to a temp

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Ninju Bohra
David, You may want to try the to bring back the value from a Later, Ninju - Original Message From: David <[EMAIL PROTECTED]> To: Ant Apache User Group Sent: Monday, October 16, 2006 11:30:17 AM Subject: How to preserve a property assigned via antcall on main build process? D

Re: Quiet output

2006-10-11 Thread Ninju Bohra
You might want to look at the -emacs command line option to surpress the 'prefixing' that appears on the output - Original Message From: Iván Pérez Domínguez <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Wednesday, October 11, 2006 2:54:30 PM Subject: Quiet output I'm writing a bui

Re: trouble with basedir (I think)

2006-06-12 Thread Ninju Bohra
Hey Christofer, I came across the same thing...my main build file (compile,test, jar) worked okay by itself but when it ran from the CC wrapper script (from a seperate directory), the java.home was not correct. Finally figured it out that the does not spawn a new JVM and so the java.home (a

Re: Implementing a loop in ANT

2006-06-07 Thread Ninju Bohra
We had the same requirement at my client site and so I created a slighly modified version of the ant-contrib (or was it ) that accepts two optional attributes a listBegin and listEnd and then it constructs a string "list" that is uses for the iteration. I can send you a copy of it (and test c

Re: Question about the Depends property

2006-05-26 Thread Ninju Bohra
You can run multiple targets in sequence from the command line by space delimiting the target names. Try: prompt> ant B A Enjoy, Ninju - Original Message From: 1800 tbsfunny <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Friday, May 26, 2006 2:54:44 PM Subject: Question ab

Re: Converting a shell script part to ant target

2006-04-27 Thread Ninju Bohra
Interesting challenge, Try looking at the type with a selector to restrict the files to those that contain your specified text. You can follow that with a with a setonempty attribute to control the defining a property only if any files containing your desired text is found Then call a target

Re: Set property is not seen?

2006-03-22 Thread Ninju Bohra
Sergei Is your 'resolve' target called via an target? If it is any properties/refids that are created/assinged by the target invoked by the will NOT be defined/accessible after the target calll returns. With ANT 1.6.x you can refactor your code to use targets and eliminate the calls S

Re: Antcall task not doing what I want it to do!

2006-03-16 Thread Ninju Bohra
Hello Res Pons, By design the task loads an new "ANT" session in which the "target" task is run in and when the "target" task is completed the "ANT" session is destroyed and no property values/path refs are carried back into the calling session (think of the task as a subroutine call where a

Re: Changing the "leading directory" path on a directory tree

2006-03-15 Thread Ninju Bohra
me (I can handle the changes of the extension) Any ideas? - Original Message From: "Rebhan, Gilbert" <[EMAIL PROTECTED]> To: Ant Users List ; Ninju Bohra <[EMAIL PROTECTED]> Sent: Wednesday, March 15, 2006 1:32:15 AM Subject: RE: Changing the "leading director

Changing the "leading directory" path on a directory tree

2006-03-14 Thread Ninju Bohra
Hello all, I am not sure if I can explain this correctly, so I will show you the target text and then explain the problem

Re: How to access command line arguments passed to Ant. How to search Ant manual

2006-03-09 Thread Ninju Bohra
This was discussed on the mailing list a couple of times...here a link to the latest time is was discussed: http://marc.theaimsgroup.com/?l=ant-user&m=113040722211523&w=2 (And a reasonable solution is offered, yea !!) - Original Message From: [EMAIL PROTECTED] To: user@ant.apache

Am I using the selector (with mapper) correctly?

2006-02-20 Thread Ninju Bohra
Hello all, I need to keep a "derived" directory tree in synch with its source tree specifically with regard to deletions in the source tree. The source tree has a collection of documents of various types (.doc, .xls, etc...). The real directory is full tree (with many sub-dirs) \Documentat

Re: Conditional antcall

2006-02-20 Thread Ninju Bohra
Within the constraints of default ANT components it may be a bit klugely (but then you're probably used doing ANT kluges :-) A way that I found to get data into ANT from the database is to execute SQL whose result (when successful) looks like a standard JAVA property file. I then use the tas

Fw: Regarding Continous build integration.

2006-02-18 Thread Ninju Bohra
riday, February 17, 2006 5:01:03 PM Subject: RE: Regarding Continous build integration. Do I need to register to send emails to this mailing list.? Thanks srikrishna -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 5:55 PM To: Ant Users List Subjec

Re: Regarding Continous build integration.

2006-02-17 Thread Ninju Bohra
I believe you have sent this email to the wrong mailing list...this the ANT user's mailing. Your question is more directed to the CruiseControl user list ([EMAIL PROTECTED]) Try again, Ninju - Original Message From: [EMAIL PROTECTED] To: user@ant.apache.org Sent: Friday, Febr

Re: Can these targets be combined?

2006-02-17 Thread Ninju Bohra
Nope...the way you have it written the "standard" ANT way of doing it... now if you want to introduce some behavior defined in the ant-contrib project, particularly the task then you can write it as: - Original Message From:

Re: Troubles with Ant's configuration

2006-02-16 Thread Ninju Bohra
Welcome Deyner, Please read http://www.catb.org/~esr/faqs/smart-questions.html on how to ask questions on a mailing list...at the top of the page (after the Table of Contents) it offers links for translated versions of the file (in case you are not fluent in English) Please provide some basi

Re: custom ant task .....successful or not

2006-02-15 Thread Ninju Bohra
Simple way...is a Build Exception thrown? I would assume that if a task (custom or not) is unable to perform the "task" it is designed to do then it is the task's responsibility to communicate that back to the callee...outside of a onerror property (on such) the throwing of a well-informed Bui

Re: test for directory existence

2006-02-15 Thread Ninju Bohra
You can use the to set a property based upon the existance of a directory...then create a target whose job is to delete the directory and use a if="direxists" attribute to control the whether the target really executes (or merely no-ops) based upon the property being set. Good luck, Ninju

Re: How to update build number without screwing up build.properties format

2006-02-14 Thread Ninju Bohra
How about 1) Read the properties in (via ) 2) Generate a property whose value equals the line of text in question (i.e. the value might be 'build.number=100') 3) Using the element (from ant-contrib) to generate the next number into a property 4) Assign a property whose value equals the new lin

Re: send email about status of the build

2006-02-06 Thread Ninju Bohra
You can use the task to capture output to a file. For a more complete build status/notification system you should look into CruiseControl rather than trying to add on the email/logging features to a build script. Enjoy, Ninju - Original Message From: Deep Chand <[EMAIL PROTEC

Re: Expanding properties

2006-01-27 Thread Ninju Bohra
Or you can use the replacefilterfile='file' attribute on the task and specify all the replacements in the 'file'. Later, Ninju - Original Message From: Ken Gentle <[EMAIL PROTECTED]> To: Ant Users List Sent: Friday, January 27, 2006 8:18:51 AM Subject: Re: Expanding properties

Re: Unit test a build

2006-01-23 Thread Ninju Bohra
I too created test cases for my build files (actually they are build files for testing my custom tasks, but they are still build files). I used the BuildFileTest class as the base class (that my JUnit classes extended from). The class provided some convience methods for reading the build.xml,

Re: Exec

2006-01-11 Thread Ninju Bohra
I believe that this question has been asked before... I am assuming you have access to the ANT source code...please look at the default.properties file (in the src\main\org\apache\tools\ant\taskdefs directory). The file contains the mapping between task name to implementation class. Enjoy,

Re: running external batch from ant

2006-01-10 Thread Ninju Bohra
In addition to the spawn="true" attribute (which is needed) you want the external process to be in its own window? Assuming you are on a Windows OS you will need to actually launch (via the task) the following This should start a

Re: How can I automate use of LOADFILE? (i.e. to load all files in a particular directory into their properties)

2005-12-27 Thread Ninju Bohra
Have you tried using the task (from the ant-contrib) to loop over all the files in the directory and then call inside the macrodef. Have fun, Ninju - Original Message From: Greg <[EMAIL PROTECTED]> To: Ant Users List Sent: Friday, D

Re: Regarding Continous build integration.

2005-12-22 Thread Ninju Bohra
CruiseControl is the way to go!!! - Original Message From: "Burgess, Benjamin" <[EMAIL PROTECTED]> To: Ant Users List Sent: Thursday, December 22, 2005 9:28:58 AM Subject: RE: Regarding Continous build integration. All of your requirements are met with CruiseControl. It is the most

Re: Access to OS environment variables?

2005-12-16 Thread Ninju Bohra
Take a look at the task with the environment="env" attribute to allow to access the OS enviroment variables as ANT properties You should be able to do the following Note the names of the created properties will be case-sensitive to the name of the OS environment variables. later, Ninju

Re: asadmin start-domain domain1

2005-12-14 Thread Ninju Bohra
Can you provide the exact text you are using... If you are "exec"ing a process (via the task) ANT will normally wait until the process exits before proceeding to the next step (to capture output, return value, logs, etc...). If you do not want the ANT script to wait for the process to exits

Re: ant-contrib foreach performance

2005-12-13 Thread Ninju Bohra
Try using the task. The task has the overhead of having to re-load the build file as it runs the target. The task uses macrodefs and should be much faster. Also if you have such a well-defined complex usage it may make sense to create a custom task and drop into a compiled language (like JA

Re: ANT EXECUTE TASK

2005-12-13 Thread Ninju Bohra
Hello, This is more of an question related to Microsoft Admin tools, not ANT build tool !!! But, since I work with Windows Boxes I might be able to help you. Take a look at the sc.exe executable for starting/stopping/managing Windows Services (local and remote) later, Ninju - Original

Re: AW: How to use ANT as a command shell

2005-12-09 Thread Ninju Bohra
Have you looked in the archive at the following message: http://marc.theaimsgroup.com/?l=ant-user&m=113040722211523&w=2 It describes a way to create a "driver" batch file to take the traditional command-line parameters (i.e. without the -D business) and converts them so that they have -D in f

RE: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
Oops, wrap the with a --- "Mikael Petterson (KI/EAB)" <[EMAIL PROTECTED]> wrote: > Hi, > > Your script did not work since I got the following error: > > The type doesn't support the nested "contains" element. > > cheers, > > //

Re: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
Not quite sure what is wrong with your path... but if you are only setting the property to contol the task you can nest a condition with the task and avoid the property. Building on the task to read the file you can do the following: Short and sweet, Ninju --- "Mikael Petterson (KI/EA

Re: problems with current working directory and

2005-11-15 Thread Ninju Bohra
Have you tried playing around with the antworkingdir property in your CruiseControl config.xml file? Maybe have it point to your parent directory and then put a sub-directory in the buildfile property. [EMAIL PROTECTED] wrote: Hi, I've setup my project with cruisecontrol, so that my build.xml

Re: testing ant failure

2005-11-11 Thread Ninju Bohra
Have you looked at the BuildFileTest class (part of the ant-testutil.jar) that has some helpful methods to determine whether a build file fails for the "right" reason. My test methods are like: public void testMissingInputDateFailure() { expectSpecificBuildException("missingInputD

Re: Bulk token substitution

2005-11-09 Thread Ninju Bohra
Have you looked that the propertyfile attribute of the task. It allows you define a file (in JAVA property file format) that contains all the replacements instructions. --- "Brown, Carlton" <[EMAIL PROTECTED]> wrote: > Hello, > > > > I'm looking to do bulk replacement of tokens in a file.

Re: password input task

2005-11-08 Thread Ninju Bohra
Nope...not possible to do that in a platform-neutral fashion ;-( P.S. This question has been asked many times before (I know because I was one the "repeat" offenders). Please check the archives before asking a question :-) Ninju Jason Novotny <[EMAIL PROTECTED]> wrote: Hi, I'd like to us

Re: Usage of antcall

2005-10-20 Thread Ninju Bohra
The slightly longer answer... The problem is that at a high-level every invokes an new private "ANT" environment. Any properties that are defined inside that new private "ANT" enviroment are not copied back out to the orignating "ANT" enviroment. Your property ${admin} is loaded inside a privat

RE: Help with choosing build property file

2005-10-07 Thread Ninju Bohra
The reason that it did not work (possibly...) is becuase you forget the call at the beginning. --- Rakesh Patel <[EMAIL PROTECTED]> wrote: > Hi James, > > Both your links point to the same resource (the > first hit in google). > > However, this does not work for me(on Windows): > > > v

Re: Check directory exists

2005-10-02 Thread Ninju Bohra
Or you can use the task (with the "type" attribute equal to "dir") if just need to know whether the directory is already there :-) --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > just run ; it won't post an error if the > directory already exists > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) >

Re: How to set native OS variables?

2005-09-28 Thread Ninju Bohra
Oops, you are right... the element is for setting JVM system properties (during a task) The element of the is correct --- Robert Clark <[EMAIL PROTECTED]> wrote: > On Wednesday September 28, 2005 12:57 pm, "Cels M." > <[EMAIL PROTECTED]> wrote: > > I need to set the native OS classpath

Re: How to set native OS variables?

2005-09-28 Thread Ninju Bohra
Try looking at the sub-elements of the task, it allows you to define system properties that will be set on the process that is hosting the executable... Later, Ninju --- "Cels M." <[EMAIL PROTECTED]> wrote: > Hi, > > I need to set the native OS classpath and them > an application. > I'

Re: seemless integration of custom tasks?

2005-09-26 Thread Ninju Bohra
Without modifying the "core" ANT distribution this is not possible...if you are willing to modify the "core" distribution I would guess you would need only upadate the defaults.properties file located in the org.apache.tools.ant.taskdefs directory in the ant.jar in include your new custom tasks

Re: Extracting application version from Java file

2005-09-20 Thread Ninju Bohra
We go one step further.. In the code base there is a build.properties file with the following data: build.version=XX.YY.ZZ build.date=2005-09-21 build.date.format=-mm-dd Then instead of a static variable in Java class (say called BuildInfo.java) we have static method called getBuildVersion(

Re: Running a task between this hour and this hour

2005-09-13 Thread Ninju Bohra
One way is to use the task with a custom pattern to contain only the hour (in 24hour format). Then using the task (from the ant-contrib project) along with the a condition (like the and also from ant-contrib or write your own ) to control the setting of a property (called "isLateNight")

Re: Find - is there parallel ant task?

2005-09-13 Thread Ninju Bohra
You know based upon your response I would guess that you work for Microsoft Microsoft Joke #1: http://members.aol.com/godx2/humor/assorted/microsoft1.html Good day all, Ninju Matt Benson <[EMAIL PROTECTED]> wrote: --- Barak Yaish wrote: > Hello, > > I would like to find a set of files, whi

Re: Find - is there parallel ant task?

2005-09-13 Thread Ninju Bohra
Strange subject line... To get only the files newer than a certain date, try using a nested selector on a Barak Yaish <[EMAIL PROTECTED]> wrote: Hello, I would like to find a set of files, which are newer than a certain file (or time stamp). Is this possible to be done using ant? Thanks

RE: doesn't work as expected

2005-09-07 Thread Ninju Bohra
Let's start from the beginning... did you set the property ant.enable.asserts when running the target? --- "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: > > Hi, Ben > > that's not possible cause the for loop i want > to decorate with assert is an inner loop of another > for loop > The property i

Re: multiple excludes clause ??

2005-09-07 Thread Ninju Bohra
What is the context in which you are using the and what have you tried already? By looking through the ANT docs, I can think of two options: 1) Add another sub-element with the second exclude pattern 2) Use the excludesfile attribute and reference a file that contains all your exclude patterns

Re: Empty arguments on the command-line under windows

2005-08-31 Thread Ninju Bohra
If you run ANT in verbose mode (-v) what does it output as the string that is generated...? On a side note, properties are immutable in ANT and so you can shorten (actually eliminate) the check on the registry.cache.dir and just make it: because if registry.cache.dir is already set to any v

Re: remoteant causing build failure

2005-08-31 Thread Ninju Bohra
This is a "generic" error message that indicates something went wrong on the server side (I believe) You may want to start the server Ant process with verbose (-v) or debug (-d) and re-run the client request and hopefully you will see some diagonstic output. Sorry I can't be any more helpful, Ni

Re: mix of files and dirs ?

2005-08-26 Thread Ninju Bohra
If you already have the list of fully-qualified files/directories that need to be deleted you may want to: 1) Write the list out to a temp file 2) use the includesfile attribute of the element that is nested inside a task 3) Add a includeEmptyDirs="true" attribute to the to insure empty directo

Re: Is should be simple...but

2005-08-20 Thread Ninju Bohra
This worked... thanx. --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > source="1.4" > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > Ninju Bohra <[EMAIL

Is should be simple...but

2005-08-18 Thread Ninju Bohra
Hello all, We are (finally !!!) starting to look at Java 1.5 at our project site. And the first step is to build our code using the 1.5 JDK but in 1.4 compliant mode. After installing jdk1.5.0_04, I modified my to the following: . . Note, the compiler

Re: Editing properties

2005-08-11 Thread Ninju Bohra
Try the task... part of the ant-contrib project --- Kai Hendry <[EMAIL PROTECTED]> wrote: > > > ${s} > > > I've had a quick look around and I am stuck. How do > I remove ABCDE- from > the string s? > > - > To unsubscribe,

Re: How to test whether a particular environment variable is set or not

2005-08-09 Thread Ninju Bohra
Using the task (from the ant-contrib project) you can do it like this: Though I am not sure if it is less verbose, it is more readable at least --- Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > hello Kumar, > > this is another alternative for the sa

Re: Urgent request for testing availability of websites.

2005-08-02 Thread Ninju Bohra
If you just want to make sure the URL for a website returns a valid HTTP code (i.e. the website is responsing) try the task. We do the following to test that our Tomcat App servers are up: --- [EMAIL PROTECTED] wrote: > > Is there a way through ant to

Re: Ant file dependency

2005-08-01 Thread Ninju Bohra
Take a look at the task and use it to set a property, say idl.has.changed, to true. Then create a seperate target, called invoke.idl.compiler, which contains the task to invoke the idlcompiler. Use the if="idl.has.changed" attribute of the target so that the will only be run if the idl.ha

Re: AW: AW: Multiple IFs, or IFs on tasks

2005-08-01 Thread Ninju Bohra
If you really wanted you could "break" up one big build.xml into a set of smaller .xml files and use the task to bring them all back together at run-time... "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: Not really... each target performs a specific task, and the one main target antcalls all t

Re: Installing Ant script as Windows service

2005-07-25 Thread Ninju Bohra
Using whatever tool you want to run a java class a service (beasvc is fine) look at the ANT docs regarding running ANT from java: http://ant.apache.org/manual/running.html#viajava "Karr, David" <[EMAIL PROTECTED]> wrote: Using Ant 1.5.4, I need to install an Ant build script as a Windows servi

[Fatal Error] for parallel

2005-07-22 Thread Ninju Bohra
Hello all, Anybody ever get the following text displayed when running a parallel task: [foreach] [Fatal Error] :2:9247: Attribute "status" was already specified for element "task". It did not "fail" the build, but it does not look safe. Any ideas, Ninju _

Re: sort or min/max file

2005-07-20 Thread Ninju Bohra
You may want to look at the task (part of the ant-contrib project). If you are happy with sorting the files based upon the name you can try the following (it is what we do): Have fun... --- "S

Uptodate task documentation confusing

2005-07-14 Thread Ninju Bohra
Hello all, First time working with the task and I think there is a problem with the doc (v1.6.2 docs) and I just want to make sure I am reading the docs correctly. First off, at the to of the docs for the task the following paragraph: By default, the value of the property is set to true if the

Need to know if a file is newer than a particular date

2005-07-01 Thread Ninju Bohra
Hello all, I have been looking around the ANT help and can not find a concise way to do this so I thought would see anybody has a quick way to do this: I need to determine if a given file (I know its path and name) is newer than a given date. I want to set a property if the file is newer. Any q

Re: AntServer and RemoteAnt problems

2005-07-01 Thread Ninju Bohra
If I read the build files correctly the problem is that your Windows XP build file is trying to execute a task on the remote ANT (on the linux) that does not exist. The WinXP target named = "exec.task.on.remote.ant.server" is trying to run the target named = "task.on.remote.machine" but I don't se

Re: directed exit of ant build?

2005-06-27 Thread Ninju Bohra
How about the task --- Mark Lundquist <[EMAIL PROTECTED]> wrote: > Hi all, > > Is it possible for a target to script the > termination of the build? > > I want something like this: > >property="config.dir.exists"/> > > > > >

Re: Remote Calls from Ant?

2005-06-24 Thread Ninju Bohra
Another option is to look at the / capabilities of the ant-contrib project Matt Benson <[EMAIL PROTECTED]> wrote: telnet or ssh w/ nohup on the remote machine? -Matt --- Chad Armstrong wrote: > Hello, > I have an ant script running on an XP box that > needs to kick off a > script/process on a

Re: Multiple IFs, or IFs on tasks

2005-06-23 Thread Ninju Bohra
Correct on both counts, For the first one, you may want to use a task to "consolidate" all the individual flags into one property which you use in the if="" attribute. As for the second, it is touch-and-go as to which tasks have an if/unless attribute (i.e. some have them and some don't). T

  1   2   >