Re: Command line input

2001-11-14 Thread Peter Donald
On Thu, 15 Nov 2001 00:37, Kevin Jones wrote: > Thanks, > > I hoped that wasn't the case :-( > > Is this a fundamental problem in Ant or is there some work-around? It is not a "fundamental problem in Ant" as much as a design choice some made when they originally wrote the java task. You could ar

Re: Sub-element question

2001-11-14 Thread Peter Donald
On Thu, 15 Nov 2001 00:39, Mark Claassen wrote: > I am trying to write a custom task and I need to have a subelement in it > like the following example. > > > > > > ... > > > > This may be more of a dev question, but I was wondering if so

Re: Redefining path id aliases in a subproject

2001-11-14 Thread Diane Holt
--- Anupama Ramesh <[EMAIL PROTECTED]> wrote: > I'm a new user.If you're using build.xml and defining subprojects this > may be important.I was wondering if any of you have seen the problem.Ant > won't let a subproject redefine path id aliases. So, if someone defines > a path id for your classpat

ejbjar: name of the jar-file (naming=ejb-name)

2001-11-14 Thread hpm-intersoft
hello! i need your help: i made a ejbjar with naming=ejb-name:(i wanted to jar a jrun-bean) but the jar-file was not named like the ejb(hear:accountbean.jar) , but accountbean_generic.bat. But i only want the name of the ejb like i stated in "naming". How can i manage it? Thanxs in advan

Re: How do I get a fileset to include only directories?

2001-11-14 Thread Peter Donald
On Thu, 15 Nov 2001 00:31, Alan Pearlman Spencer wrote: > Hi I'm trying to search for a file in a dir tree. > I'm using: > property="found"> > > > > > > > > > > The pathelement works, but I can't get the fileset to include all dirs > in t

Re: ClearCase updates

2001-11-14 Thread Steve Loughran
- Original Message - From: "Stephane Bailliez" <[EMAIL PROTECTED]> > I'm probably the only Ant committer using Clearcase. I have had enough experience of it, that I dont miss its departure since I migrated (that's upgrade without the improvement connotations) to XP last week, which I ne

Redefining path id aliases in a subproject

2001-11-14 Thread Anupama Ramesh
Hi Friends, I'm a new user.If you're using build.xml and defining subprojects this may be important.I was wondering if any of you have seen the problem.Ant won't let a subproject redefine path id aliases. So, if someone defines a path id for your classpath like:

Ant 1.4.1 & VAJ 3.5.3 & NetComponents 1.3.8 Question

2001-11-14 Thread Jarzynka, Mark
Hello, I'm trying to incorporate the FTP functionality from NetComponents into Ant running under VAJ. Ant seems to be working fine from within VAJ, and the build.xml (which contains FTP instructions) that I am executing works fine outside of VAJ. Inside VAJ I get:

RE: Is there a way to search a directory structure?

2001-11-14 Thread Diane Holt
--- Alan Pearlman Spencer <[EMAIL PROTECTED]> wrote: > Thanks a million! > I'll play with the file attribute, don't know how I missed that! Well, as it stood, no matter how much you played with it, I don't think it was going to work the way you needed, or the way it seemed the doc was saying it s

wlclasspath

2001-11-14 Thread Matt Lyon
Hi, I have a question on how to use the nested element to turn off warnings that occur when the home and remote interfaces of a bean are on the system classpath used to run weblogic.ejbc. The User Manual suggests that the standard weblogic classes should be set with the wlclasspath attribute (or

RE: Question on junitreport

2001-11-14 Thread Ying-Yi Huang
I believed it is xerces 1.4.3 as documented in Xalan2. Ying-Yi -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:06 AM To: Ant Users List Subject: RE: Question on junitreport > -Original Message- > From: Ying-Yi Huang [ma

how to abort build if cvs task fails

2001-11-14 Thread Ryan Grow
Hello, What does ant do when a task such as CVS exits with a non-zero value? I would like to be able to abort the build with an error message in that case. In my development so far, it appears as though ant continues executing the next task for the target when a cvs task fails. Is this the expect

Re: Creating WARs and Weblogic

2001-11-14 Thread James Bullington
What does your task look like? An example of how I create and test a war file in windows is... I take this war file and I transfer it to a solaris box when I am ready to deploy and it works there too. What I have noticed is that deployment does not work if you

RE: ClearCase updates

2001-11-14 Thread Stephane Bailliez
> -Original Message- > From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] > task I use. But it would probably be cooler if a Java guru > out there could > write a class/optional task that could do this. Please enter a bug in Bugzilla and set it as a RFE. Attach your perl script as wel

RE: ClearCase updates

2001-11-14 Thread Anthony Rodriguez
Zak: I've had to deal with this annoying ClearCase problem as well. It is an issue with setcs and snapshot views. The setcs command asks for user input when the new config spec being used has different load rules from the old config spec. It then prompts the user for a yes or no for unloading

RE: Is there a way to search a directory structure?

2001-11-14 Thread Alan Pearlman Spencer
Thanks a million! I'll play with the file attribute, don't know how I missed that! Thanks, Alan. -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 17:06 To: Ant Users List Subject: Re: Is there a way to search a directory structure? --- Alan Pearlman

Re: Is there a way to search a directory structure?

2001-11-14 Thread Diane Holt
--- Alan Pearlman Spencer <[EMAIL PROTECTED]> wrote: > Can this type of thing work for searching a dir tree? > I cant get it to work? > I'm trying to search for a file anywhere in a dir tree and set a > property if that is there. > Like the available task, but I can't see how to get it to search a

Ant 1.4.1 JAR is broken ?

2001-11-14 Thread Russ Freeman
Hi peeps, I am getting an "unable to load main class" problem with a JAR created using 1.4.1. The JAR looks correct otherwise. I found some email related to this about a blank line being placed in the manifest but haven't found a workaround yet. Does anyone have such a workaround? -- To unsubs

Re: Sub-element question

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, <[EMAIL PROTECTED]> wrote: > createXXX: The object returned must be a class that has appropriate > setXXX methods for any of the elements attributes and createXXX or > addXXX methods for any nested subelements. ant will then call these > methods for any attributes and subelem

Re: Sub-element question

2001-11-14 Thread MARobertson
I would like someone to either confirm or deny some assumptions I'm makeing on how subelements get pulled into custom tasks. The documentation Stefan refers to below doesn't really give a lot of informaiton on when you should use createXXX vs addXXX. It also doesn't give much information on how

Re: synchronize directory task

2001-11-14 Thread Mark Gibson
I never actually got the time to test this, but below is a response from a similar question : >All, > >I want to delete files from a local directory that no longer exist in >a previously mirrored directory. e.g. > >c:/localdir > file1.txt > file2.txt > file3.txt > >c:/otherdir >

Re: central definition of classpath, please HELP !!!

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Zak Saurin <[EMAIL PROTECTED]> wrote: > I presume that the path elements do as well? No they don't - nor do filesets, patternsets, mappers, filters or any other data types. This has been identified as a limitation, but "fixing" it would probably break quite a few build envi

Is there a way to search a directory structure?

2001-11-14 Thread Alan Pearlman Spencer
Hi All, Can this type of thing work for searching a dir tree? I cant get it to work? I'm trying to search for a file anywhere in a dir tree and set a property if that is there. Like the available task, but I can't see how to get it to search a complete tree. I've tried:

RE: central definition of classpath, please HELP !!!

2001-11-14 Thread Alan Pearlman Spencer
You can't (as far as I know) Only properties are passed... What I do is define the properties that are needed to recreate the classpath, not ideal, but it works. like classpath.lib.dir, classpath.classes.dir, classpath.other.jar??? Sorry I can't help more... Alan. -Original Message- From:

RE: central definition of classpath, please HELP !!!

2001-11-14 Thread Zak Saurin
Hello, I am only a new user to Ant myself, but I notice that the documentation for the ant task (I presume you are using this to call the other build files?) says that all of the properties of the current project will be available in the new project. I presume that the path elements do as well?

Re: central definition of classpath, please HELP !!!

2001-11-14 Thread Joel Cordonnier
Hi OK ! BUT BUT suppose that your 'project.class.path' is defined in a file A.xml, and that you have the target 'compile' defined in a file B.xml And then, a target in A call the 'compile' target in B.xml with the statement Then ?? how to propagate your classpath's refid `?

Re: central definition of classpath, please HELP !!!

2001-11-14 Thread erich brunner
hi! maybe that helps! cu eric - Original Message - From: "Joel Cordonnier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 3:23 PM Subject: central definition of classpath, please HELP !!! > Hi

Re: synchronize directory task

2001-11-14 Thread Jeff Sahol
Sorry, I was not clear in my original question. Copy and Move will copy new files as needed, but not delete files in the destdir that no longer exist in sourcedir. That's the behavior I'm looking for. - Original Message - From: "Alan Pearlman Spencer" <[EMAIL PROTECTED]> To: "Ant Users L

RE: central definition of classpath, please HELP !!!

2001-11-14 Thread Alan Pearlman Spencer
I believe you need to use a property to do this. classpath refid's will not be passed (as they are XML IDs and it is a different XML file). Not as powerful, but it will be passed to other scripts... Maybe (big maybe) you could xml include other scripts using an ENTITY??? Alan. -Original Mes

ClearCase updates

2001-11-14 Thread Zak Saurin
I see that there are already tasks created to deal with some very fundamental ClearCase interactions, one of them being an update.   However, I am after a task in which you can specify a config spec and *then* do an update.  Has anybody written such as task?   In the meantime I have tried using th

RE: synchronize directory task

2001-11-14 Thread Alan Pearlman Spencer
Or ? Copy will only copy the files it needs. -Original Message- From: Matt Lyon [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 14:16 To: Ant Users List Subject: RE: synchronize directory task Have you checked out ? -Original Message- From: Jeff Sahol [mailto:[EMAIL PROTECTED

central definition of classpath, please HELP !!!

2001-11-14 Thread Joel Cordonnier
Hi ! I really need help. I have and Ant script called build.xml (main script), that call other scripts **.xml. In the main script are Ant's PATH defined, and then, in my compile, javadoc...and other tasks, i refer to the PATHs with the statement I HAVE THE FOLLOWING PROBLEM: the 'other' scri

RE: synchronize directory task

2001-11-14 Thread Matt Lyon
Have you checked out ? -Original Message- From: Jeff Sahol [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: synchronize directory task Is there a task for synchronizing a directory structure from one location to another? I don't want t

synchronize directory task

2001-11-14 Thread Jeff Sahol
Is there a task for synchronizing a directory structure from one location to another? I don't want to do a delete and then copy, I want to minimize the need for copying files. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Sub-element question

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Mark Claassen <[EMAIL PROTECTED]> wrote: > I am trying to write a custom task and I need to have a subelement > in it See list element 5 in the first section. > like the following example. > > > > >

Re: Command line input

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Kevin Jones <[EMAIL PROTECTED]> wrote: > Is this a fundamental problem in Ant or is there some work-around? Unfortunately there is no workaround AFAIK, using fork="yes" won't help either. Stefan -- To unsubscribe, e-mail: For additional command

Sub-element question

2001-11-14 Thread Mark Claassen
I am trying to write a custom task and I need to have a subelement in it like the following example. ... This may be more of a dev question, but I was wondering if someone here could point me to a good example of how to use th

RE: Command line input

2001-11-14 Thread Kevin Jones
Thanks, I hoped that wasn't the case :-( Is this a fundamental problem in Ant or is there some work-around? Kevin Jones Developmentor www.develop.com > -Original Message- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] > Sent: 14 November 2001 08:53 > To: [EMAIL PROTECTED] > Subject:

RE: Command line input

2001-11-14 Thread Kevin Jones
But then it doesn't pick up the right classpath - it uses the classpath ant is using. Is it possible to specify a classpath and use fork=false? Kevin Jones Developmentor www.develop.com > -Original Message- > From: Vojta Filip [mailto:[EMAIL PROTECTED]] > Sent: 14 November 2001 11:42 >

How do I get a fileset to include only directories?

2001-11-14 Thread Alan Pearlman Spencer
Hi I'm trying to search for a file in a dir tree. I'm using: The pathelement works, but I can't get the fileset to include all dirs in the tree... Any ideas? Thanks, Alan. Alan Pearlman-Spencer MobileAware

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Kazandjian Erik
Sorry Stephane for my stupidyness but I stil have problems. I now tried the following CLASSPATH=. ant -v -buildfile=my_build.xml target where target points to the target tah makes the junitreport This command fails, it gives (due to the verbose flag) the following lalalala: [junitreport] Pars

Re: Command line input

2001-11-14 Thread Vojta Filip
Try fork="false". It should work. Vojta On Wed, 14 Nov 2001, Kevin Jones wrote: > I'm hope this is a stupid question! > > I have a very simple Java application that reads input from the command > line. I use the java task like this > > > failonerror="true" fork="true"> > >

Re: Synchronous Exec task?

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Russ Freeman <[EMAIL PROTECTED]> wrote: > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] > >> Nope, Ant will block until the finishes. > > Oh?! Yes, we are looking into adding a detach attribute or similar for asynchronous operation, but it is not done yet. If you see a

RE: Junit test reports

2001-11-14 Thread Alan Pearlman Spencer
This is an (annoying) classpath issue. If you take a look at the definition of the tasks it says it needs Xalan 2 If you get this version of xalan and put it in the lib directory I think that fixes the problem. Let me know how it goes... Alan. -Original Message- From: Kazandjian Erik [mai

RE: Synchronous Exec task?

2001-11-14 Thread Russ Freeman
Oh?! Thanks for the quick clarification as usual! -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 11:05 To: [EMAIL PROTECTED] Subject: Re: Synchronous Exec task? On Wed, 14 Nov 2001, Russ Freeman <[EMAIL PROTECTED]> wrote: > However it appears

Re: Synchronous Exec task?

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Russ Freeman <[EMAIL PROTECTED]> wrote: > However it appears to be asynchronous which makes it unusable when > you have subsequent tasks depend on the prior one finishing. Nope, Ant will block until the finishes. Stefan -- To unsubscribe, e-mail:

Synchronous Exec task?

2001-11-14 Thread Russ Freeman
Hi Peeps, I am trying to pull together a bunch legacy C/C++ make scripts into an "Uber" Ant script to automate a currently manual assembly process. This makes extensive use of the Exec task. However it appears to be asynchronous which makes it unusable when you have subsequent tasks depend on th

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Stephane Bailliez
> -Original Message- > From: Kazandjian Erik [mailto:[EMAIL PROTECTED]] > > If I put these 2 jars (jaxp.jar and crimson.jar) in my > classpath shoudn't that do the job ? What do you mean by 'classpath' here ? I highly recommend to have your CLASSPATH environment variable empty. Or set t

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Kazandjian Erik
If I put these 2 jars (jaxp.jar and crimson.jar) in my classpath shoudn't that do the job ? Erik -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] Sent: woensdag 14 november 2001 11:24 To: Ant Users List Subject: RE: upgrade from 1.3 to 1.4.1 > -Original Message

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Stephane Bailliez
> -Original Message- > From: Kazandjian Erik [mailto:[EMAIL PROTECTED]] > This is what I did. > > I untarred the tar.gz file containing the binaries for ant1.4.1 > I added the file optional.jar to $ANT_HOME/lib > > When I then run ant I get > > No JAXP compliant XML parser found. Plea

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Kazandjian Erik
This is what I did. I untarred the tar.gz file containing the binaries for ant1.4.1 I added the file optional.jar to $ANT_HOME/lib When I then run ant I get No JAXP compliant XML parser found. Please visit http://xml.apache.org for a suitable parser So I took the old jaxp.jar file from my Ant

RE: Ant 1.4.1: Javac task compiling source despite non-altered source files

2001-11-14 Thread Thomas Tuft Muller
Both nested paths and your suggestion with colon separated paths in srcdir works. Again, thanks a lot for your help. -- Thomas | -Original Message- | From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] | Sent: 14 November 2001 09:46 | To: [EMAIL PROTECTED] | Subject: Re: Ant 1.4.1: Java

Re: Ant 1.4.1: Javac task compiling source despite non-altered source files

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Thomas Tuft Muller <[EMAIL PROTECTED]> wrote: > .../JUtils/src/main/com/onrelay/collections/SingleLinkedList.java > and > .../JUtils/src/test/test/onrelay/collections/SingleLinkedListJUnitTest.java > > Now, my javac task is instructed to compile everything below > .../JUtils

RE: upgrade from 1.3 to 1.4.1

2001-11-14 Thread Stephane Bailliez
1) What parsers are you using to compile ? 2) What parsers do you have in Ant libs ? (ie lib and lib/optional) 3) Make sure you compile with the attribute includeantruntime="no" in javac, most of the time it's better not to mix things which have nothing to do. Since getLocalName is a DOML2 me

Re: Javac and 'make dependant'

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Thomas Tuft Muller <[EMAIL PROTECTED]> wrote: > Is it any plans for developing a 'make-dependant' feature into the > javac-task? Please take a look at the optional task. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

upgrade from 1.3 to 1.4.1

2001-11-14 Thread Kazandjian Erik
After an upgrade of Ant 1.3 to Ant 1.4.1 I get errors while compiling /home/integrator/square/src/com/siemens/square/client/translation/Translatio n.java:107: cannot resolve symbol [javac] symbol : method getLocalName () [javac] location: interface org.w3c.dom.Node [javac]

Javac and 'make dependant'

2001-11-14 Thread Thomas Tuft Muller
Ant developers, Is it any plans for developing a 'make-dependant' feature into the javac-task? I found myself having to make clean builds quite often because dependencies between targets and source files/class files are not enough to detect that recompilation of certain files is needed. Regards,

RE: Ant 1.4.1: Javac task compiling source despite non-altered source files

2001-11-14 Thread Thomas Tuft Muller
| If your source directory structure does not correspond to the package | structure, then the classes will be recompiled every time. For example, | if your class is org.foo.mypack.Class, then your source must be in | srcdir/org/foo/mypack/Class.java. You are right. But please note the following:

RE: junitreport

2001-11-14 Thread Stephane Bailliez
Could you please upgrade to Ant 1.4.1 ? There was a complete refactoring about junitreport, it makes it much easier to use and customize (and to maintain as well). -- Stéphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions

RE: junitreport

2001-11-14 Thread Kazandjian Erik
I'm using Ant 1.3 -Original Message- From: Stephane Bailliez [mailto:[EMAIL PROTECTED]] Sent: woensdag 14 november 2001 10:03 To: Ant Users List Subject: RE: junitreport What Ant version are you using ? -- Stéphane Bailliez Software Engineer, Paris - France iMediation - http://w

RE: Question on junitreport

2001-11-14 Thread Stephane Bailliez
> -Original Message- > From: Ying-Yi Huang [mailto:[EMAIL PROTECTED]] > > I am using ANT1.4 with Xalan-j_2_2_D12. Here is the > junitreport task I > setup, [...] > java.lang.NoSuchMethodError > at > org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DTM.java:273) > at

RE: junitreport

2001-11-14 Thread Stephane Bailliez
What Ant version are you using ? -- Stéphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. > -Original Message- > From: Kazandjian Erik [mailto:[EMAIL PROTE

RE: Ant 1.4.1: Javac task compiling source despite non-altered source files

2001-11-14 Thread Thomas Tuft Muller
| What's in your prepare task? Also, forgot the Java version: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) Java HotSpot(TM) Server VM

Re: Command line input

2001-11-14 Thread Stefan Bodewig
On Wed, 14 Nov 2001, Kevin Jones <[EMAIL PROTECTED]> wrote: > What am I missing? Ant currently swallows all input sent to programs run via or and friends. There is nothing you can do about it, sorry. Stefan -- To unsubscribe, e-mail: For additional commands, e-m

junitreport

2001-11-14 Thread Kazandjian Erik
I hava managed to generate xml from my junit tests but now I want to generate html out of it. I defined the following target. but when I run it I get java.io.FileNotFoundException: Could not find resource 'html/index.html' at org.apache.tools

Command line input

2001-11-14 Thread Kevin Jones
I'm hope this is a stupid question! I have a very simple Java application that reads input from the command line. I use the java task like this When I run this from Ant I can't enter anything from the command line (it's being eaten by something), works OK outside of An

Re: Setting property depend of other properties

2001-11-14 Thread Stefan Bodewig
On Tue, 13 Nov 2001, Diane Holt <[EMAIL PROTECTED]> wrote: > Thanks for pointing out the simpler approach, Even if it is simpler, it is unintuitive and difficult to understand by the uninitiated (same holds true for your first version). Furthermore, both our versions will result in build failure