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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: "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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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...)

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: 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

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: 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

Weird behavior with mixing antcall with input

2005-01-18 Thread Ninju Bohra
Hey Guys (and gals),   I am having some trouble with trying to use antcall with input tasks.   See attached build file (called whats_up.xml).   The two targets that don't work (realwork1 and realwork2) both use helper targets that use tasks to invoke the tasks, while the third target (realwork3)

Re: Weird behavior with mixing antcall with input

2005-01-18 Thread Ninju Bohra
http://ant-contrib.sourceforge.net/tasks/antcallback_task.html JEC -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis Ninju Bohra wrote on 01/18/2005 11:41:17 AM: > Hey Guys (and gals), > &

Re: Any way to get at the machine name?

2005-01-25 Thread Ninju Bohra
The env.* properties are set to defined to be whatever you OS shell values are...please read the ANT documentation about the task and how the enviroment attribute is processed. Later, Ninju [EMAIL PROTECTED] wrote: James Abley writes: > On Tue, 2005-01-25 at 16:19, Dominique Devienne wrote

Re: putting value in txtfile

2005-01-26 Thread Ninju Bohra
You might want to read up on the task along with the nested elements. One route... Write your property out to a temp file Use the along with sub-element to concat the first 3 lines of the orginal file with the temp file (stored in another file). Then use another (with sub-element) to take

Getting my own core task implementation ahead of ant.jar

2005-01-28 Thread Ninju Bohra
package or class name) because then I would make a lot of changes if/when I moved back to the updated core task (i.e. ). I know that is way to wordy, but thanks for your input in advance, Ninju Bohra - Do you Yahoo!? Meet the all-new My Yahoo! – Try

RE: Getting my own core task implementation ahead of ant.jar

2005-01-28 Thread Ninju Bohra
g this way (via the PreSetDef) you are not having to pollute(or modify) the build.xml to use my:jar? Is this right? Ninju Bohra --- Michael Sunde <[EMAIL PROTECTED]> wrote: > Hi, > > In our case we wanted to make an enhancement to one > of the existing ant > tasks. Here is

RE: Echo: How to include a \t.

2005-01-28 Thread Ninju Bohra
The works!! --- [EMAIL PROTECTED] wrote: > > From: Nat Gross > [mailto:[EMAIL PROTECTED] > > Matt Benson wrote: > > >--- Nat Gross > <[EMAIL PROTECTED]> > > >wrote: > > > > > >>Hi; > > >>How can I embed a \t within an echo string? > > >>I tried to console and file, with and without > > >>message

Re: VSS Re-Labeling

2005-01-28 Thread Ninju Bohra
task classes are merely thin wrappers that merely invoke the ss comand line apps internally. If you find that you need to do something that the ss command line app don't directly do, that is a lot harder because the ANT tasks are intrinsticly limited to the ss command line capabilities. Good Lu

Re: Ant: create file if none exists

2005-01-29 Thread Ninju Bohra
You can also look at the task (part of the ant-contrib project in SourceForge) which along with the standard condition tasks will allow you to do the following --- Douglas Kramer <[EMAIL PROTECTED]> wrote: > Found "

How to get a directory name

2005-01-31 Thread Ninju Bohra
Hey Guys, I am befuttled as to exactly how to do this... I have releases going to a directory tree ...Release2.0 | ---Release2.0Build400 | lib | ---Release2.0Build401 | lib | ---Release2.0Build402 | lib |

RE: How to get a directory name

2005-01-31 Thread Ninju Bohra
AIL PROTECTED]> wrote: > > From: Ninju Bohra [mailto:[EMAIL PROTECTED] > > 1) How do I limit the number of directories that > are > > returned in the to just the first level > > sub-directories > > Use something like > > > 2) Is it necessary to do the

Re: debug ANT

2005-02-03 Thread Ninju Bohra
If you are planning write JUnit tests for ANT tasks that you wrote, you may want to look at the helper JUnit TestCase sub-class that comes with the ANT source distribution. The class is called org.apache.tools.ant.BuildFileTest and if your testcase classes extend from this class you have help

Re: XML and copy directories

2005-02-03 Thread Ninju Bohra
Well, The safe answer is yes and no... Out of the box, the ANT distribution (along with the ant-contrib project) comes with a number of concepts (tasks and structures) that would be helpful (, , , etc...) to accomplish MOST of what you want. The one area that is not currently pre-built is t

Re: Skip building jar file

2005-02-03 Thread Ninju Bohra
I guess one way to do it is you could use along with the selector and scan over all the files that would go in the jar. Set the date in the selector to the creation of the existing jar. Now if any files are selected you can then execute the jar task. Of course, there is question of how to

Re: XML and copy directories

2005-02-04 Thread Ninju Bohra
Though remember that ANT is written is JAVA and it rather easy to take whatever JAVA code you write (if any) and make it a task that can be called from an ANT build file... Good luck.. Henning Waack <[EMAIL PROTECTED]> wrote: Hello James and Ninju. James Fuller wrote: > Ninju Bo

Re: Ant: mkdir if none exists

2005-02-07 Thread Ninju Bohra
The fact that you getting an additional BACKUP directory created is very strange... I believe the that contents of the ${WORKDIR} are different than you believe...it seems un-believable that the would create an additional level. Later, Ninju --- Douglas Kramer <[EMAIL PROTECTED]> wrote: > I hav

Re: A project for GUI input ?

2005-02-09 Thread Ninju Bohra
It was the antigen project on sourceforge http://antigen.sourceforge.net/ --- Yves Martin <[EMAIL PROTECTED]> wrote: > >Hello, > > Somebody announced here a project that provides a > kind of 'input' tasks but > with graphical interface. > > Can you remember me the name and the URL of t

How to convert commas into spaces

2005-02-09 Thread Ninju Bohra
Hey Guys (and gals), I have this property with a comma delimited list of values (file names) and I need to create another property (let's call it sql.file.names.spaced) with the same set of text but with the commas replaced with spaces. Any regex experts out there... or any other ANT

Re: AW: How to convert commas into spaces

2005-02-09 Thread Ninju Bohra
It works... I never doubted your skill [EMAIL PROTECTED] regardless of what -nat says [EMAIL PROTECTED] wrote:AntContrib: propertyregexp match: ',' replace: ' ' flags: g Jan > -Ursprüngliche Nachricht- > Von: Ninju Bohra [mailto:[EMAIL PROTECTED] > Gese

  1   2   >