Packaging multiple JARs (WAS: Using Main-Class and Class-Path in a manifest file)

2002-03-13 Thread chris brown
Hi all, I asked this question in the past, and came to the conclusion that there's no simple way to do this. I've posted this as a RFE on Sun's Java site, so if you're interested... vote for it! :-) http://developer.java.sun.com/developer/bugParade/bugs/4648386.html My current solution is to

copy task

2002-03-13 Thread Romain.Rouvoy
hello ! I have the following files tree : test |--xmi | |-- a.template | |-- b.template |--idl | |-- a.template | |-- b.template |--java | |-- a.template | |-- a.java | |-- b.java and I want to copy *.template file of this tree in the root dir of test2 directory but without conserving

RE: copy task

2002-03-13 Thread Broderick, Kevin
Could you use copy file=test/**/*.template todir=test2 / Not sure if thats right... -Original Message- From: Romain.Rouvoy [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 09:10 To: Ant User Mailing-List Subject: copy task hello ! I have the following files tree : test |--xmi | |--

Re: copy task

2002-03-13 Thread Romain.Rouvoy
Broderick, Kevin wrote: Could you use copy file=test/**/*.template todir=test2 / Not sure if thats right... -Original Message- From: Romain.Rouvoy [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 09:10 To: Ant User Mailing-List Subject: copy task hello ! I have the

Re: copy task

2002-03-13 Thread Stefan Bodewig
take a look at the flatten attribute and/or a mapper. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: copy task

2002-03-13 Thread Romain.Rouvoy
Stefan Bodewig wrote: take a look at the flatten attribute and/or a mapper. Stefan Thanks, Romain -- R. Rouvoy -- Romain ROUVOY [EMAIL PROTECTED] GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille) USTL Lille 1 - France -- To unsubscribe,

is this the correct place for bug report ?

2002-03-13 Thread Guillaume Rousse
My two previous messages (javadoc get confused by java package running jsdk-1.4 and style task doesn't honor build.sysclasspath property, nor classpath attribute) haven't received any response so far. Is this the right place for exposing such problems, as told by

RE: Using EJBTask with Borland AppServer

2002-03-13 Thread Joao Machado
Ok, thanks for the help, I'm almost there, but now I get the following error for all mt EJBs (below is a sample for one of them) : [ejbjar] Could not load class MyDataPOA for super class check. Sorry for my stupid question, but the POA and Helper classes are not generated by the compiler

launching targets based on file dependencies?

2002-03-13 Thread stephan beal
Hello, fellow anters, i'm finally getting my hands dirty with ant, and i'm having trouble with what is probably a simple concept: i have a set of Java files which are generated from info in a text file. Using 'make' it is very simple to rebuild the java files only if the text file is

Re: style task doesn't honor build.sysclasspath property, nor classpath attribute

2002-03-13 Thread Stefan Bodewig
On Tue, 12 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: Style task seems to ignore completly any build.sysclasspath property and any classpath attribute. No, the problem is that Ant can load the liaison class from the system class path, see

Re: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Stefan Bodewig
On Mon, 11 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: BTW, running javadoc manually works :-) Are you sure? Try ant -verbose and use the command line Ant would use. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: is this the correct place for bug report ?

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: My two previous messages (javadoc get confused by java package running jsdk-1.4 and style task doesn't honor build.sysclasspath property, nor classpath attribute) haven't received any response so far. Well, sometimes it takes a

Re: launching targets based on file dependencies?

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, stephan beal [EMAIL PROTECTED] wrote: i have a set of Java files which are generated from info in a text file. Using 'make' it is very simple to rebuild the java files only if the text file is updated. i have not yet found a way to do this using ant. See apply. How

RE: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Jon Skeet
Building javadoc is OK with jsdk 1.3.1, but fails with 1.4.0, due to javadoc confusing package named java with source files. I'm not entirely surprised - given that JavaDoc takes the names of packages, source files or class files, if you've got a package named foo.java, it seems reasonable

Re: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Guillaume Rousse
Ainsi parlait Jon Skeet : Building javadoc is OK with jsdk 1.3.1, but fails with 1.4.0, due to javadoc confusing package named java with source files. I'm not entirely surprised - given that JavaDoc takes the names of packages, source files or class files, if you've got a package named

RE: redirecting output to a file?

2002-03-13 Thread Broderick, Kevin
As far as I know you need to put the ant tag in a target: target name=example ant. /ant /target -Original Message- From: stephan beal [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 14:00 To: [EMAIL PROTECTED] Subject: redirecting output to a file? Hello again, i'm

RE: redirecting output to a file?

2002-03-13 Thread Jon Skeet
i'm trying to redirect all build output to a file. No problem - this is covered by the ant tag. Any reason for using that rather than the -logfile parameter? Jon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Guillaume Rousse
Ainsi parlait Stefan Bodewig : On Mon, 11 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: BTW, running javadoc manually works :-) Are you sure? Actually, i didn't used the same command. Try ant -verbose and use the command line Ant would use. Same problem with javadoc 1.4, everything

Re: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Guillaume Rousse
Ainsi parlait Guillaume Rousse : [..] I'll report the bug to javadoc maintainers. Done (http://developer.java.sun.com/developer/bugParade/bugs/4646923.html) Anyway, and before this is fixed in a next jdk release, any workaround idea ? Apart changing package names, of course :-) -- Guillaume

Re: redirecting output to a file?

2002-03-13 Thread stephan beal
On Wednesday 13 March 2002 15:02 pm, you wrote: i'm trying to redirect all build output to a file. No problem - this is covered by the ant tag. Any reason for using that rather than the -logfile parameter? because i won't remember to type -logfile each time i run it, and human hands

Re: How to incorporate idlj in my ANT xml ???

2002-03-13 Thread Joseph Shelby
Greg Callaghan wrote: Hi, We're starting up with ANT here. Part of the build process is to -: (1) create TEMP directory (will be deleted with CLEAN) (2) compile IDL from IDL to TEMP/SRC (using idlj) (3) copy other source from SRC to TEMP/SRC (4) compile all source in TEMP to BUILD

Re: redirecting output to a file?

2002-03-13 Thread Diane Holt
--- stephan beal [EMAIL PROTECTED] wrote: On Wednesday 13 March 2002 15:02 pm, you wrote: i'm trying to redirect all build output to a file. No problem - this is covered by the ant tag. Any reason for using that rather than the -logfile parameter? because i won't remember to type

Echo Command and OS Specific EOL Characters

2002-03-13 Thread Truesdale, Jay
I am using Ant 1.4.1 on Windows NT. If I do this: echo file=Test.txt This is line one. This is line two. /echo Then the file has UNIX style end of line characters, i.e. $0A. I would expect that Ant would take in to account the operating system it is running on and use the OS-specific EOL

Re: Echo Command and OS Specific EOL Characters

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, Jay Truesdale [EMAIL PROTECTED] wrote: echo file=Test.txt This is line one. This is line two. /echo Then the file has UNIX style end of line characters, i.e. $0A. I'm not sure, but I think this is fixed in CVS. Also is there any way to specify special characters in

RE: Could not create task of type: junitreport!?

2002-03-13 Thread Ylan Segal
I had put the optional.jar int the lib directory of my ANT_HOME. But when I tried to use the junitreport task, there was an error: In order to use junit report you need xerces.jar and xalan.jar in your classpath (you can put them in ANT_HOME\lib). The jars can be downloaded from

RE: copy task

2002-03-13 Thread Ylan Segal
and I want to copy *.template file of this tree in the root dir of test2 directory but without conserving the arborescence ! Take a look at copy task in the manual. It has a flatten attribute you can set. Ylan Segal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: Basic setup of Junit in Ant?

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, [EMAIL PROTECTED] wrote: pNote: In order to use this task, you must place codejunit.jar/code in your code$ANT_HOME/lib/code directory./p This is not strictly true. The full truth is: You must have junit.jar and the junit task in the same classpath, either (1) both in

RE: Could not create task of type: junitreport!?

2002-03-13 Thread Diane Holt
--- Ylan Segal [EMAIL PROTECTED] wrote: In order to use junit report you need xerces.jar and xalan.jar in your classpath (you can put them in ANT_HOME\lib). The jars can be downloaded from xml.apachge.org. I'll add this to the Library Dependencies table in the doc. Diane = ([EMAIL

RE: Could not create task of type: junitreport!?

2002-03-13 Thread Ylan Segal
--- Ylan Segal [EMAIL PROTECTED] wrote: In order to use junit report you need xerces.jar and xalan.jar in your classpath (you can put them in ANT_HOME\lib). The jars can be downloaded from xml.apachge.org. I'll add this to the Library Dependencies table in the doc. Diane Diane,

Re: Basic setup of Junit in Ant?

2002-03-13 Thread guru
On Mon, Feb 25, 2002 at 02:44:04PM -0800, David M. Karr wrote: My missing element was putting junit.jar in the $ANT_HOME/lib directory. This appears to be one of those you should have known that. The documentation (AFAICT) doesn't state this directly. Agreed! This hosed me too when I

RE: Could not create task of type: junitreport!?

2002-03-13 Thread Diane Holt
--- Ylan Segal [EMAIL PROTECTED] wrote: I also think that there should be a link to the Library Dependencies from the Table of contents (left frame), since otherwise it is very hard to find (I could not do it right now before replaying to your message). Could this be my first ant patch? Did

RE: Using Main-Class and Class-Path in a manifest file

2002-03-13 Thread Dominique Devienne
The Class-Path attribute of the manifest finds *external* JAR dependencies, not JARs inside the main JAR. And to come back on the attribute ordering in the manifest, the JAR spec. states in the additional restrictions and rules that apply to manifest and signature files section: * The order of

valueof environnement variable

2002-03-13 Thread Romain.Rouvoy
Hi ! How can I obtain the value of an existing environment variable ? Thanks, Romain -- R. Rouvoy -- Romain ROUVOY [EMAIL PROTECTED] GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille) USTL Lille 1 - France -- To unsubscribe, e-mail:

RE: valueof environnement variable

2002-03-13 Thread Chappell, Simon P
To get a copy of the current environment variables into Ant, use: property environment=env / This gives you a new namespace or prefix (use which ever term you like) of, in this case, env so that you can access an environment variable thusly: path id=base.path pathelement

Re: Basic setup of Junit in Ant?

2002-03-13 Thread guru
Thanks, Stefan. I understand the problem now. You must have junit.jar and the junit task in the same classpath, either (1) both in CLASSPATH or ANT_HOME/lib or (2) none of them. Okay, so can you put a note to that effect into junit.html? Something really clear like, Note: If you have

Re: Basic setup of Junit in Ant?

2002-03-13 Thread guru
On Mon, Feb 25, 2002 at 06:17:50PM -0500, Erik Hatcher wrote: - Original Message - From: David M. Karr [EMAIL PROTECTED] My missing element was putting junit.jar in the $ANT_HOME/lib directory. This appears to be one of those you should have known that. The documentation

Mac OS X task

2002-03-13 Thread guru
My friend Ian McFarland and I are almost done cleaning up the latest version of our Ant task that bundles Java apps as standalone Mac OS X applications (with icons and everything). Anyone who wants to beta test, please send me email. Also, we'd like to contribute this to optional.jar. What's

Article: Building With Ant

2002-03-13 Thread guru
Part 1 of my article, Building With Ant, has just been published on developer.com. http://softwaredev.earthweb.com/sdtech/article/0,,12065_989631,00.html I'd love to hear your feedback! Abstract: Developing Web Applications using Java Servlets, JavaServer Pages, and other J2EE buzzwords is

Re: Mac OS X task

2002-03-13 Thread Jesse Stockall
On Wed, 2002-03-13 at 13:40, [EMAIL PROTECTED] wrote: Also, we'd like to contribute this to optional.jar. What's the procedure for that? Put a feature request in Bugzilla. Make sure to include a URL to get the source from. Then subscribe to ant-dev follow the discussion. If you find

StreamPumper sleeping for no reason

2002-03-13 Thread Michael D. Norman
Any shell task that uses output or error streams extensively (e.g. CPP) take inordinately long in Ant compared to running it from the command line (a difference from 30 seconds to 10+ minutes). This is due to the fact that org.apache.tools.ant.taskdefs.StreamPumper sleeps for 5ms after it reads

My experiences with doing a large project with ANT

2002-03-13 Thread Jim Jackl-Mochel
Introduction Some people on this list have asked me to post details of how I got a hierarchical ant based build system working for a project I am involved in. This is a simple attempt to get most of my experiences down in a way that might be useful to the ANT community at large. For

Preserving URL paths in apply tasks

2002-03-13 Thread Jeff Lowery
I have a nasty little problem and hoping that someone can point out a workaround: I have a command-line invoked XML Schema validation tool[1] that expects a URI to the schema file. I can't seem to preserve URI paths using the following running under Windows 2K: target name=xsv2

Re: Preserving URL paths in apply tasks

2002-03-13 Thread Diane Holt
--- Jeff Lowery [EMAIL PROTECTED] wrote: I have a command-line invoked XML Schema validation tool[1] that expects a URI to the schema file. I can't seem to preserve URI paths using the following running under Windows 2K: target name=xsv2 apply executable=xsv.exe dir=d:/xml/xsv4

RE: Preserving URL paths in apply tasks

2002-03-13 Thread Jeff Lowery
Is there some reason you're using apply with a fileset, when you only have the one file? Just using it as an example. Replace generic.xs with *.xs and you'll see where I'm going. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

jar task question

2002-03-13 Thread Steven Curtis
Hello all, I'm new at ant have a basic question. Using a project provided build.xml, it seems the jar task will recreate the entire jar archive when executed. Is there any way to modify the task to jar -u filename.jar path/to/file.class any class file newer than the jar instead of recreating

Command line parameters

2002-03-13 Thread Michael Laccetti
Title: Command line parameters -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How can I access command line parameters that I pass in via a command line build? Thanks, Michael - - Michael Laccetti Developer, Eldan Software [EMAIL PROTECTED] -BEGIN

RE: jar task question

2002-03-13 Thread Eddie Bernard
Try using the update attribute in the jar task. For more info on the usage: http://jakarta.apache.org/ant/manual/CoreTasks/jar.html -Original Message- From: Steven Curtis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 2:09 PM To: 'Ant Users List' Subject: jar task question

RE: Ant 1.4.1 ejbjar and EJB 2.0 local interfaces

2002-03-13 Thread Conor MacNeill
Philip, From: Philip Aston [mailto:[EMAIL PROTECTED]] Chaps, I just saw your discussion of this issue on ant-user (a couple of weeks back now). I'm faced with the same problem on a largish project. Can't risk 1.5 alpha, so I'm going to have to hack a patch to 1.4.1 just to auto-include

RE: Ant 1.4.1 ejbjar and EJB 2.0 local interfaces

2002-03-13 Thread Eddie Bernard
Conor- Just to let you know, I did download and install Ant 1.5alpha to take advantage of the super class lookup available in ejbjar. This definitely makes a difference for my particular project I'm supporting! It includes all the necessary support classes I wanted originally without having

RE: jar task question

2002-03-13 Thread Dominique Devienne
Check it out for yourself, but updating a JAR is quite slow, and you may be better off re-jaring everytime!?!?! --DD -Original Message- From: Eddie Bernard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 4:09 PM To: 'Ant Users List' Subject:RE: jar task

Return code from Ant

2002-03-13 Thread dhay
Hi. I am a little perplexed how to call Ant from a makefile (we have to in our build process) and to check whether the build failed or not. Do I HAVE to create a BuildListener? What doesn't Ant simply return an error code set to 0 or 1 when it's done?!! Cheers, David -- To unsubscribe,

RE: Command line parameters

2002-03-13 Thread Dominique Devienne
Title: Command line parameters Im not sure what you mean, but if you refer to the ant command line of the form: ant [ant-options] [-Dname=value ] [targets] for example: ant verbose Ddebug=yes build you cannot access ant-options, all Java properties are accessible in ANT

Re: Basic setup of Junit in Ant?

2002-03-13 Thread Steve Loughran
- Original Message - From: [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 09:47 Subject: Re: Basic setup of Junit in Ant? Or better yet, add an exception handler to Ant that checks for the particular exception (ClassNotFound?) when loading a

ant 1.5alpha - For what it's worth

2002-03-13 Thread Ylan Segal
To the ant community: For what it is worth, I downloaded the current snapshot of ant (using cvs), built it and tried to use it against my current build files to get an idea of what will happen once the 1.5 version is released. Here are my experiences: * The building process was surprisingly

Re: Mac OS X task

2002-03-13 Thread Steve Loughran
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 10:40 Subject: Mac OS X task My friend Ian McFarland and I are almost done cleaning up the latest version of our Ant task that bundles Java apps as standalone Mac OS X applications

Re: My experiences with doing a large project with ANT

2002-03-13 Thread Steve Loughran
- Original Message - From: Jim Jackl-Mochel [EMAIL PROTECTED] To: Ant-User [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 12:26 Subject: My experiences with doing a large project with ANT Introduction Some people on this list have asked me to post details of how I

[PATCH] Documentation for junit junitreport

2002-03-13 Thread Ylan Segal
Hi, This is my first submitted patch, so forgive me if it is not in the expected format. I was looking at the manual for the junit and junitreport tasks, and it seems to me that they should have a note like the one on style task that links to the Library dependency table. So I added the link.

Re: ant 1.5alpha - For what it's worth

2002-03-13 Thread Magesh Umasankar
From: Ylan Segal [EMAIL PROTECTED] - There where warning in the jar task, however the jar created was sucessful and worked ok. [jar] DEPRECATED - The jarfile attribute is deprecated. Use destfile attribute instead. Before Ant 1.5 is released, this message will be removed, but the

Re: [PATCH] Documentation for junit junitreport

2002-03-13 Thread Magesh Umasankar
From: Ylan Segal [EMAIL PROTECTED] Hi Ylan: This is my first submitted patch, so forgive me if it is not in the expected format. Unified diff format patches are prefered generally. I was looking at the manual for the junit and junitreport tasks, and it seems to me that they should have

Re: [PATCH] Documentation for junit junitreport

2002-03-13 Thread Magesh Umasankar
From: Ylan Segal [EMAIL PROTECTED] I was looking at the manual for the junit and junitreport tasks, and it seems to me that they should have a note like the one on style task that links to the Library dependency table. So I added the link. Maybee someone here with access to the cvs

RE: [PATCH] Documentation for junit junitreport

2002-03-13 Thread Ylan Segal
Magesh: Unified diff format patches are prefered generally. What is the Unified diff format? I use jCVS as my cvs client and used show diffs on the files. The output is what I sent. I read the link from the FAQ to http://jakarta.apache.org/site/source.html and there it suggests using: cvs diff

RE: Preserving URL paths in apply tasks

2002-03-13 Thread Diane Holt
--- Jeff Lowery [EMAIL PROTECTED] wrote: Is there some reason you're using apply with a fileset, when you only have the one file? Just using it as an example. Replace generic.xs with *.xs and you'll see where I'm going. Gotcha. So okay, I don't think apply's gonna do it for you. Since

Re: javadoc get confused by java package running jsdk-1.4

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: Anyway, and before this is fixed in a next jdk release, any workaround idea ? You said it worked from the command line (just using a different command than Ant did). Which command did you use? You can use exec instead of javadoc

Re: [PATCH] Documentation for junit junitreport

2002-03-13 Thread Stefan Bodewig
On Wed, 13 Mar 2002, Ylan Segal [EMAIL PROTECTED] wrote: What is the Unified diff format? I use jCVS as my cvs client and used show diffs on the files. The output is what I sent. I read the link from the FAQ to http://jakarta.apache.org/site/source.html and there it suggests using: cvs diff

Re: Return code from Ant

2002-03-13 Thread Stefan Bodewig
On Thu, 14 Mar 2002, Conor MacNeill [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] What doesn't Ant simply return an error code set to 0 or 1 when it's done?!! It should do. Only the CVS version, Diane has fixed the wrapper shell script only two weeks ago.

Re: Return code from Ant

2002-03-13 Thread Diane Holt
--- Stefan Bodewig [EMAIL PROTECTED] wrote: Only the CVS version, Diane has fixed the wrapper shell script only two weeks ago. I only fixed the explicit exit that comes after the test for $JAVACMD. The script as a whole doesn't have an exit, but it does return 1 if it fails. Try 'ant

unsubscribing from ant users list

2002-03-13 Thread Marco.Mistroni
hi all, i have been trying twice to unsubscribe from this list. i send twice message to [EMAIL PROTECTED] but i am still receiving emails. can anyone help me? regard marco -Original Message- From: ext Diane Holt [mailto:[EMAIL PROTECTED]] Sent: 14. March 2002 10:05