RE: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread Matt Benson
--- S I <[EMAIL PROTECTED]> wrote: [SNIP] > > > I'm not sure what you're to accomplish with this. > > > I AM LOST HERE NOW: The exec line by itself works > but how do I get the > result of the date.exe back into here? With Args? > > > > > t

RE: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread S I
Sorry, got pulled away all the day on a broken build. Thank you for your help. That worked. :) I have one more question please. I got all the parts to work, however crued! Now I'm working on the date piece I now modified my file as follows: --

RE: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread Michele Brissette
This may be very simplistic, but what about just an echo message into the file? You can use a property for the variable data like the build number and date. You probably need an echo statement for each line. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent:

Re: Changing method signatures WAS Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
On Wed, 20 Apr 2005, Matt Benson <[EMAIL PROTECTED]> wrote: >> True, a good place to turn it into add(ResourceCollection) later. > > Where do we stand on that? i.e. the above requires 3rd-party code to > recompile, or we can be nice We have to be nice, I'd say. > Also, for tasks like this where

Changing method signatures WAS Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 20 Apr 2005, Matt Benson > <[EMAIL PROTECTED]> wrote: > > >> (2) Use addFileset(FileSet fs) and add fs to > collection on each > >> invocation, you get support for multiple FileSets > for free. > > > > Better yet, use add(FileSet fs) just be

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
On Wed, 20 Apr 2005, Matt Benson <[EMAIL PROTECTED]> wrote: >> (2) Use addFileset(FileSet fs) and add fs to collection on each >> invocation, you get support for multiple FileSets for free. > > Better yet, use add(FileSet fs) just because you can. True, a good place to turn it into add(ResourceC

Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Wed, 20 Apr 2005, Karsten Klohs <[EMAIL PROTECTED]> > wrote: > > > | I agree. Native support for filesets would be > the cleanest > > | solution. [SNIP] > (2) Use addFileset(FileSet fs) and add

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Apr 2005, Karsten Klohs <[EMAIL PROTECTED]> wrote: > | I agree. Native support for filesets would be the cleanest > | solution. > |>>I appreciate any comments to this idea. > | > | > | All it takes is somebody who does the coding and suppl

RE: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread Conelly, Luis (GE Energy, Non GE, GENE)
> *The [Version] gets written as intended but annoyingly preceded by # Conelly, Luis (GE Energy, Non GE, GENE) Of course. A comment in a properties file is always preceded by a # character > *Ant/Buildnumber Task automatically inserts #Tue Apr 19 15:42:20 PDT 2005, which is not my intention. Con

RE: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread Dominique Devienne
> This is how my file should look like at anytime or rather build+1 > > -- content of target file [version.txt] -- > [Version] > Version=5.0 > Build=555 > Date=Wed 04/13/05 05:08:30 PM > --- Your problem is that this is not a

ANT: AINASL! Help with Parsing Files with Ant

2005-04-20 Thread S I
Hi I know Ant is not a scripting language, however, is there a way to checkout a file [version.txt] , out of CVS whose content as displayed below need to be changed & incremented automatically for nightly builds? BTW, we're a Java shop, developing in Windows environment and deploying to Linux s

Getting WebLogic WL tasks to work in Ant 1.6.2

2005-04-20 Thread Karr, David
WebLogic 8.1 comes with a set of Ant tasks. These work fine in Ant 1.5.4, but they fail in Ant 1.6.2. In Ant 1.5.4, I just dump the "weblogic.jar" in $ANT_HOME/lib. When I do this in Ant 1.6.2, I get CNF exceptions for the task classes. I believe I've heard that these task classes simply won't

Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Karsten Klohs <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 [SNIP] The implicit convention, is that the full file > name exactly corresponds to > the full class name. How can this restriction be > relaxed? One idea is to > investigate the files' contents to find

Re: Using ant properties in file -- Success

2005-04-20 Thread Ninju Bohra
The reason that I can't use @@path_to_main_properties@@=@@deploy_dir@@\main.properties is the same reason that my original approach wouldn't work... the task does not examine/process the contents of the filterFile. But going off of what you alluded to, I did come up with a two-pass approach...

Re: Extension of the Javah-Task

2005-04-20 Thread Karsten Klohs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi again, |>>3. I took a brief look at the development of Ant tasks and |>>implementation of the javah-task. I think that it should be quite |>>easy (famous last words ;-)) to extend the javah-task, so that it |>>can take a fileset, transform the filena

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Apr 2005, Karsten Klohs <[EMAIL PROTECTED]> wrote: > I am new to the list, so forgive me if I am asking the obvious ;-) I don't think you did. > 1. Has anyone solved the problem already? Yes and no. For yes, see my answer to 2, for no,

Extension of the Javah-Task

2005-04-20 Thread Karsten Klohs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am new to the list, so forgive me if I am asking the obvious ;-) I have the following problem: I need to run javah for a quite large amount of classes. These classes can be easily collected into a fileset from my project directory tree. However, t

Re: Using ant properties in file

2005-04-20 Thread James Abley
On Wed, 2005-04-20 at 03:40, Ninju Bohra wrote: > So anybody have any guidance on whether or not > ${property.name} are resolved in filter > file? > > > --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > Just want to make sure that ANT 1.6.2 can NOT do the > > following (otherwis