Building path like structures

2001-02-13 Thread M.A.Dunphy
Hi all, After reading the ant documentation, I'm still confused as to how best to construct path like structures (i.e classpath). There seems to be so many ways to do the same thing (i.e. path, references, filesets etc..). I have some "test" targets that need the "project" classes to compile and

How to delete a specific directory

2001-02-13 Thread M.A.Dunphy
Hi all, Under a root of the directory tree, I have many directories called test which I'd like to delete using the delete task (i.e /x/v/d/test/c, x/f/test). I've played around with includes but cant see to delete the directories but only their content. Thanks Mick

Access environment variables within ANT?

2001-02-13 Thread M.A.Dunphy
Hi, Is it possible to access environment variables within ANT? e.g. If I create an environment variable MICK, is there any way of access in within ant, ie ${env.MICK} Thanks

Re: Access environment variables within ANT?

2001-02-13 Thread Atul V. Setlur
Is it possible to access environment variables within ANT? e.g. If I create an environment variable MICK, is there any way of access in within ant, ie ${env.MICK} You need to specify it as a Java property i.e., -DpropertyName=value specified on the command line when Ant is launched. Please

Building a hirechial build system

2001-02-13 Thread Ori Burstein
Hi, I would like to know if it's possible to build a hirerchial build system using ant, just like you do with makefiles. For that I assume I need a way to include ant files in some way, or is there a different approach for doing that with ant ? Also, is there a place where I can find ant

RE: Access environment variables within ANT?

2001-02-13 Thread Steve Donie
Also, in ant 1.3 b1 and after, there is a way to get to all environment variables without using -D on the command line. I have this in the beginning of my build.xml, (not inside any targets). !-- This allows access to all OS environment variables - just use syntax

Re: Solaris packages integration

2001-02-13 Thread Vincent Massol
I would very much like to have this kind of task. We use Ant for doing continuous integration and unit tests and also to automatically package and deploy applications on a unix platform. Having a task that create Solaris packages would be great. It don't care whether it is inside or outside, the

Re: Building a hirechial build system

2001-02-13 Thread Atul V. Setlur
Yes it is possible to make a hierarchial build system using ant. There is a built in task called ant that allows you to specify an ant build script as well as the target within that script to run. Does this result in a new javac process each time? Additionally, does this mean that one would

RE: Building a hirechial build system

2001-02-13 Thread Brett Ramdeen
Title: RE: Building a hirechial build system Does this result in a new javac process each time? Additionally, does this mean that one would need to define new targets for each directory in the main build.xml file? No, the ant task does not fork a new VM which is good because if one of

confused over failure

2001-02-13 Thread Phillip Lord
I've just started using ant, and I have a small question. I am a little confused about how ant copes with failures of processes. To give a little background I have a file with the following construction in it public final int ord; protected Constructor() {

Re: Building a hirechial build system

2001-02-13 Thread Dan Christopherson
On Tue, 13 Feb 2001, Atul V. Setlur wrote: Yes it is possible to make a hierarchial build system using ant. There is a built in task called ant that allows you to specify an ant build script as well as the target within that script to run. Does this result in a new javac process each

Re: confused over failure

2001-02-13 Thread Diane Holt
The javac task now has a "failonerror" attribute -- set it to "no" to keep going after a compiler error. Diane --- Phillip Lord [EMAIL PROTECTED] wrote: I've just started using ant, and I have a small question. I am a little confused about how ant copes with failures of

How to specify the location of the compiler ?

2001-02-13 Thread Stefan Lecho
As far as I understand, Ant uses the PATH environment settings to execute the compiler. Is there a possibility to define the location of the compiler in the build or property file ? Something similar to property name="compiler.location" value="compilers/jikes/bin"/ Regards, Stefan.

Re: Solaris packages integration

2001-02-13 Thread Diane Holt
There have been discussions about having a separate place for contributed tasks that wouldn't be part of "standard" Ant (nor supported by ant-dev). I was looking into setting up an Ant-contrib project on Sourceforge, but things got hectic for me, so I haven't done anything more towards that yet.

Re: confused over failure

2001-02-13 Thread Kevin Mukhar
Phillip Lord wrote: I have a file with the following construction in it public final int ord; protected Constructor() { ord = 10; } which is perfectly legal java. Sadly due to a bug in Javac is will not compile, instead telling me that I have to initialise

project name

2001-02-13 Thread Frank Chang
Title: project name Can you reference the project name as a property in Ant? project name=abc default=all .. // get 'abc.properties' ? property file=${???}.properties/ ... /project Thanks in advance.

Jonas EJB Application Servers tasks.

2001-02-13 Thread Ori Burstein
Hi, We are about to use the Jonas as our application server. I noticed that there are ANT built in tasks for Weblogic, and I would really like to know if anyone tried to implement such tasks for the Jonas. Or if the anyone got any idea on what is the best way to deal with other Application

Deleting directories

2001-02-13 Thread Jeff Davies
Hi all, I'm trying to delete all of the CVS directories in a project. I'm using the following target to get the job done, but its not working: !-- * * stripCVS * -- target name="stripCVS"

RE: project name

2001-02-13 Thread Jeff Davies
Yes you can. There is a built in property called ant.project.name that contains the info you need. Refer to it as ${ant.project.name}. - Jeff -Original Message- From: Frank Chang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 9:37 AM To: [EMAIL PROTECTED] Subject: project

rebuild when compiler changes ? (was:How to specify the location of the compiler ?)

2001-02-13 Thread Garcia, Gilles
Would Ant rebuild when the compiler location is younger than the class it is attempting to build? More generally, if I rely for my build on the location of umpteen third party jars and classes, how could I create umpteen automatic dependency rebuild actions without having to specify them for

Re: Building a hirechial build system

2001-02-13 Thread Atul V. Setlur
Alternatively, is there a way of automating the search so that the contents of the build.xml files in the sub directory be included in the appropriate targets? For instance, if I want to exclude a particular package from being included in compilation then I would probably want to

Unable to use the Junit task in 1.3b1

2001-02-13 Thread William Lee
I can't seem to get the junit optional task to work under Ant 1.3b1. I download the optional.jar also and put it in the ANT_HOME/lib. But then when I try to use the junit tag in the build.xml file, I got the following: /home/wlee/smi/gui/vcube/build/build.xml:132: Could not create task of

RE: Deleting directories

2001-02-13 Thread Brett Ramdeen
Title: RE: Deleting directories delete fileset dir=**/CVS/** / /delete The 'dir' attribute should specify the base directory that you want to delete. It should not contain any patterns. Change your delete task to this: delete fileset dir=whatever_your_base_dir_is includes=**/CVS/**

Re: How to specify the location of the compiler ?

2001-02-13 Thread Larry Strollo
Stefan As far as I understand, Ant uses the PATH environment settings Stefan to execute the compiler. Is there a possibility to define the Stefan location of the compiler in the build or property file ? I just got bit by that. I set my JAVA_HOME to jdk 1.3. I was a little

RE: rebuild when compiler changes ? (was:How to specify the location of the compiler ?)

2001-02-13 Thread Garcia, Gilles
The retainer" mechanism are the time stamps applied by the OS's file system. The compiler path has a time stamp (e.g., when it was dowloaded and installed), and any classs on the file system has a creation date. -Original Message- From: Diane Holt To: [EMAIL PROTECTED] Sent: 2/13/01

RE: Building a hirechial build system

2001-02-13 Thread Brett Ramdeen
Title: RE: Building a hirechial build system Going back to my question, I was wondering if the list of include and exclude could be built dynamically by searching in all the sub directories of a project and including these rules when they exist in the xml files that exist in the

RE: rebuild when compiler changes ? (was:How to specify the locat ion of the compiler ?)

2001-02-13 Thread Diane Holt
--- "Garcia, Gilles" [EMAIL PROTECTED] wrote: The retainer" mechanism are the time stamps applied by the OS's file system. The compiler path has a time stamp (e.g., when it was dowloaded and installed), and any classs on the file system has a creation date. That would take care of the

RE: Jonas EJB Application Servers tasks.

2001-02-13 Thread Brett Ramdeen
You can use ant to build/assemble your EJB jar files by using a combination of the javac, jar, java tasks. However if you follow this approach you will need to manually create your xml descriptors. Basically you use javac to compile your EJB's. Then you use the jar task to build a basic

Re: confused over failure

2001-02-13 Thread Hardy Henneberg
Hi, I'm not 100% sure if it is so in java, but in C++, what you do is not inialization but assignment to an already existing variable. Initialization is done so: public final int ord = 10; kind regards Hardy Diane Holt wrote: The javac task now has a "failonerror" attribute -- set it to "no"

RE: Deleting directories

2001-02-13 Thread Jeff Davies
That worked better! It deleted all of the files in all of the CVS directories throughout the project. However, it left the empty CVS directories in place. Is it possible to delete the CVS directories also? BTW - Thanks for the great response on this question! I do learn alot from this list. -

Re: Deleting directories

2001-02-13 Thread Rick Szeto
Jeff, You can not "delete" CVS directories, unless you do it forcefully(but very ugly and may lead to repository inconsistencies later). Here is why: CVS must maintain it's full history and if you delete directories, it will not be able to retrieve files from that storage. The solution: When

RE: Deleting directories

2001-02-13 Thread Jeff Davies
I know its a dangerous issue. However, what was happening for me was that when I imported my project, I had a subdirectory named "core" that CVS was not importing. I deleted my orginal directory and did a checkout of the newly created project (without my "core" project directory, of course). SO I

Re: rebuild when compiler changes ? (was:How to specify the locat ion of the compiler ?)

2001-02-13 Thread Bill Burton
Hello, I don't think it would be too difficult to write a task that compared a list of build properties in a file to the current values. If any of the values had changed, it would write out a new properties file and set a property indicating a full rebuild was required. This property would

RE: rebuild when compiler changes ? (was:How to specify the locat ion of the compiler ?)

2001-02-13 Thread Garcia, Gilles
Usually one does builds on top of a Version control system e.g. CVS, RCS, CLearCase, etc ... And writing files is not going to be the whole answer. One cannot separate these requirements from the undelying Revision control system. When you check out a file, ITS properties file has to be used for

Re: rebuild when compiler changes ? (was:How to specify the location of the compiler ?)

2001-02-13 Thread Bill Burton
Hello, The default compiler properties file doesn't have to be "lying around," but can be checked into the SCM system as should anything for production builds. For developer builds, the logical place for a compiler properties file might be the target directory for the compile. The point I

RE: rebuild when compiler changes ? (was:How to specify the location of the compiler ?)

2001-02-13 Thread Garcia, Gilles
But the compiler options are file-specific, since a .class file may have been compiled with a different set than its neighbors. Thus one should compare the compiler configuration for each .class against the new one. -Original Message- From: Bill Burton To: Ant User Mailing List Sent:

RE: rebuild when compiler changes ? (was:How to specify the locat ion of the compiler ?)

2001-02-13 Thread Steve Wilkinson
I agree with this since I have exprienced the need for it first hand. We use ant to generate Java classes. The java classes are dependent on txt files. We would like to be able to determine when a text file has changed and re-generate the Java classes associated with the text file. We are

RE: Passing input parameters to build.xml

2001-02-13 Thread Tim Vernum
Is there any way to pass parameters from build.sh to build.xml script? (for example, build.sh accepts some parameters from the command line and has to pass them to build.xml) Yes. You need to use the "-D" syntax, eg ant -D"some.property=$1" target Then you could refer to it int the

RE: Passing input parameters to build.xml

2001-02-13 Thread Conor MacNeill
I just thought that I would add that you should only be using build.sh if you are building ant itself. If you just want to use ant, you should be using the ant script or running the ant Java class directly. Conor From: Tim Vernum [mailto:[EMAIL PROTECTED]] Is there any way to pass

VSS GET Problems

2001-02-13 Thread Saket Raizada
hi folks, I wanna get the code out of the VSS and am sign the VssGet for the same I specify vssget localPath="m:\myproject" recursive="true" label="Test_Build25_8" login="saket,yow13" vsspath="\\C\VSS\LON1.0" writable="true" ssdir="d:/progra~1/micros~2/vss/win32" / when i run the

Vss Get

2001-02-13 Thread Saket Raizada
Hey forgot to tell that i am using Ant version 1.2 on windows 2000 hi folks, I wanna get the code out of the VSS and am sign the VssGet for the same I specify vssget localPath="m:\myproject" recursive="true" label="Test_Build25_8" login="saket,yow13" vsspath="\\C\VSS\LON1.0"

RE: Access environment variables within ANT?

2001-02-13 Thread Les Hughes
Hi, Use ant -Denv.MICK=%MICK% on win or ant -Denv.MICK=$MICK on unix. But I prefer to use a build.properties file and a property tag. The props file is mapped out of our SCM on a per-host basis. Bye, Les (Making up for his recent ant-dev missing file blunder) -Original Message-

ant-dev-digest mailing list failure notice

2001-02-13 Thread dion
Can anyone help me with this? I'd prefer to get ant-dev as a digest -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au NetRexx: http://www.multitask.com.au/NetRexx.nsf - Forwarded by dIon Gillard/Multitask Consulting/AU on 14/02/2001 02:20 PM -

Re: Vss Get

2001-02-13 Thread Ross Lloyd
most likely thing is that you haven't set ssdir as an environment variable to point at your vss database [EMAIL PROTECTED] 02/14/01 12:49am Hey forgot to tell that i am using Ant version 1.2 on windows 2000 hi folks, I wanna get the code out of the VSS and am sign the VssGet for