Parameters in descriptions

2001-06-27 Thread Kazandjian Erik
Can I use parameters in description attributes ? i.e. Erik

P4 Optional Tasks

2001-06-27 Thread Kazandjian Erik
Hi, I'm trying to use P4Sync in my ant script to synchronise all my source files before starting to compile. I already downloaded the optional.jar and put it in my lib directory under my ANT_HOME. However every time when I try to call P4Sync I get the following message /home/erik/square/src/buil

RE: Retry task on Error

2001-06-27 Thread Don Taylor
In this example "build-shared" will not get executed twice. --- Viraj Purang <[EMAIL PROTECTED]> wrote: > HI, > IF Target X which depends on target Y has been executed just after > the > target Y was executed, will it still go ahead and do target Y again > ... > example : > > If I am execu

Ant Logo

2001-06-27 Thread Bevan Arps
I really like some of the Ant Logos that have come up - having a "built by Ant" glyph to hide inside our apps would be cool. One thought though: while we will need a large logo in some places, in some places (eg web sites and about boxes) it would be useful to have a small "button" that matches.

patch: os-specific properties

2001-06-27 Thread Frank Varnavas
The following patch enables one to define properties specific to a given OS. For example: If the OS mismatches the property is ignored. Frank Varnavas = diff -c -r1.1.1.1 Property.java *** Property.java 2001/06/21 20:50:04 1.1.1.1 --- Proper

Re: FTP task is very slow

2001-06-27 Thread Bevan Arps
> Pier Paolo Bortone wrote: > I'm using ANT to package my Cocoon site and send it to production > system (LINUX RH 7.1), but the FTP task is very slow before 'sending > files' action, 40 sec. The FTP task can check to see if any files have changed (based on timestamp) and only upload newer files

Re: Trouble Compling Ant

2001-06-27 Thread Theodore A. Jencks
Well this could be the case I'm a relative newbie to all of this so maybe I need the JDK though I downloaded the SDK from IBM's website and tried using it to the same effect. I haven't been able to find a package labled specifically JDK for Linux. Most of the stuff I've found is either labled SD

RE: Trouble Compling Ant

2001-06-27 Thread Bill . J . Fellows
A WAG here, but it sounds like you need to get the JDK and not the JRE. I'm not sure why the javac is there but it was my understanding that the jre is for executing .class files Can you compile a HelloWorld.java program using javac? /bill public class HelloWorld { public static void main

Trouble Compling Ant

2001-06-27 Thread Theodore A. Jencks
I'm having trouble compiling ant, I've been through the documentation several times, maybe I'm missing something but I think everything should be set correctly. I'm building Ant on the following system and Env Vars set. Redhat 7.1 Kernel 2.4.5 Sun j2re-1_3_1-linux-i386-rpm.bin (Install via RPM)

RE: Retry task on Error

2001-06-27 Thread Viraj Purang
HI, IF Target X which depends on target Y has been executed just after the target Y was executed, will it still go ahead and do target Y again ... example : If I am executing "build all" will "build-shared" get executed twice ? I feel it would not be executed, can you please conf

Classpath issue....I think...

2001-06-27 Thread David Roe
HI, I am getting several errors upon compiling my source tree and I believe that it's a classpath issue. My project compiles fine when I use Kawa but when I try to compile the same source through my build file it squawks at me. I have only been working with Ant to create a build file in very sh

RE: Ant Logo

2001-06-27 Thread Alejandro Varela
Ok, I change the cup, redesigne my log and send it. Thanks. AVarela ®. Int. 2664. > -Original Message- > From: Stefan Bodewig [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 11:53 AM > To: [EMAIL PROTECTED] > Subject: Re: Ant Logo > > Alejandro Varela <[EMAIL PROTECT

Re: JavaDoc and patternsets

2001-06-27 Thread Matt_Conway
Only thing I could come up with was to use an embedded script. The reference "i2build.packages" is simply a patternset that has the packages I want to compile/javadoc, I include an example of it below.

RE: per directory make file?

2001-06-27 Thread Mark Womack
Just to answer my own question...patternset does not support wildcards in the excludesfile attribute. But that's ok. I consolidated all of the exclude information into a single exclude file located the directory set as the source for the javac task. I think this is a better practice than having

Re: output from compile.

2001-06-27 Thread Don Taylor
Yeah, just specifiy -logfile -verbose on the Ant command line. - don --- David Roe <[EMAIL PROTECTED]> wrote: > HI, > > Recently I thought there was some discussion around redirecting > output into > a file from a "verbose" compilation via Ant. Could someone help me > out in > that regard?

RE: VAJload and name attribute

2001-06-27 Thread Shaikh, Mehmood
David, How were you able to create a project with a "." in the name, i use VAJ 3.0.2 , and it doesnt allow me to create a project with punctuation mark. i.e. As soon as i enter a punctuation mark (.,][- etc.) in the project name VAJ gives an error saying "invalid project name". -Original Mes

output from compile.

2001-06-27 Thread David Roe
HI, Recently I thought there was some discussion around redirecting output into a file from a "verbose" compilation via Ant. Could someone help me out in that regard? I haven't been able to find that thread unfortunately - perhaps it was just wishful thinking? :) Thank you, David winmail.

RE: JavaDoc and patternsets

2001-06-27 Thread Jamie Lawrence
Yeah, I'm kinda happy not to be doing that for javac, and didn't really want to start for javadoc. It does seem like a logical thing to want to do... perhaps it's time to peer closer into the ANT source code and see if it would be possible. Jamie > -Original Message- > From: Jeremy Cr

RE: JavaDoc and patternsets

2001-06-27 Thread Jeremy Crosbie
Looking at the documentation I don't see how a patternset can be used with the javadoc task. One thing you can do rather than use a patternset is to copy only the sources you wish to compile into a directory separate from your controlled source. You can then point the Javadoc task to that directo

Using existing taskdefs in custom tasks

2001-06-27 Thread Jeremy Crosbie
I am fairly new to Ant so I apologize in advance if this has been brought up before. I created my own task that uses the SQLExec task already provided as a sub element. I have the following method in my class: public SQLExec createSql() { this.sql = new SQLExec(); return this.sql; } It

RE: per directory make file?

2001-06-27 Thread Mark Womack
Stefan, right after I sent out my last message, I found your reply. Yes, this is very close to what I am talking about. Is it possible to have a wildcard in the patternset? Something like: That way, any subdirectory under the srcdir that has an excludes file would be used automatically. Wit

RE: Ant Logo

2001-06-27 Thread Alejandro Varela
Ok, I change the cup, redesigne my log and send it. Thanks. AVarela ®. Int. 2664. > -Original Message- > From: Peter Donald [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 11:26 AM > To: [EMAIL PROTECTED] > Subject: Re: Ant Logo > > On Wed, 27 Jun 2001 21:17, Alejandr

RE: per directory make file?

2001-06-27 Thread Mark Womack
Will, thanks for the reply. I don't think this will work for a dynamic set of possible subdirectories. Maybe I missed it, but I haven't found anything in ant that will let me traverse through subdirecotries, calling a task for each one. So, I would need to know all of the subdirectories upfront.

RE: Ant Logo

2001-06-27 Thread Nick Chalko
Ask, who knows? Any Sun employees lurking, who do we ask? -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 7:53 AM To: [EMAIL PROTECTED] Subject: Re: Ant Logo Alejandro Varela <[EMAIL PROTECTED]> wrote: > I have designed this logo for

JavaDoc and patternsets

2001-06-27 Thread Jamie Lawrence
Is it possible to use the same patternset I define for javac in the javadoc task? Basically I want to produce documentation only for the classes that were actually compiled. Many thanks, Jamie Jamie Lawrence (E-mail).vcf

RE: Retry task on Error

2001-06-27 Thread Don Taylor
I was genericizing it, obviously the 'ftp.ok' property has to be conditionally set possibly via the use of additional tasks. I don't know how he plans on checking if his FTP succeeded, but if it were me, I'd probably just use the uptodate task and make 'ftp.ok' it's target property. You can *alwa

RE: Retry task on Error

2001-06-27 Thread Diane Holt
--- Don Taylor <[EMAIL PROTECTED]> wrote: > Ok. Actually it just requires a small modification: > > > > > Don, How do you see this working? What will prevent the task from being run regardless of what results in? I suspect what you want is to set the property in the task alone (ass

RE: VAJload and name attribute

2001-06-27 Thread Trogdon, David
I appreciate the feed back but the version does not seem to be the problem. To expand a bit on the example below: I have a project named: SpacedObject ABC 3.1.0 in addition it has a version similar to: 010626 DET 00E When useing the VAJLoad task it takes the form With the CORRECT name, r

RE: VAJload and name attribute

2001-06-27 Thread Siberski, Wolf
In the last days I have received mails from three users experiencing similar problems. All of them seem to be able to export projects with certain names, but some project names don't work. Currently I'm investigating, but I don't have any idea yet about the cause of this behaviour. What makes it

RE: Retry task on Error

2001-06-27 Thread Don Taylor
Ok. Actually it just requires a small modification: Note that 'checkFTPfailure' will be called *before* you attempt your first FTP. This should be fine, since you haven't even attempted an FTP yet that *certainly* should be a failure! :) - Don --- "O'Hara, Patrick

RE: VAJload and name attribute

2001-06-27 Thread Shaikh, Mehmood
I've never had any problems with loading project names of length higher than yours. There's one thing to keep in mind that , VA Workspace displays the project name by appending a version number to it, so if your workspace has a project, say, "SpacedObject ABC" version "3.1.0", you'll see "SpacedOb

RE: Retry task on Error

2001-06-27 Thread O'Hara, Patrick
Title: RE: Retry task on Error Yes I was hoping for a loop until successful. Patrick O'Hara 262-408-3849 [EMAIL PROTECTED] -Original Message- From: Don Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 9:29 AM To: [EMAIL PROTECTED] Subject: Re: Retry task on Error

VAJload and name attribute

2001-06-27 Thread Trogdon, David
Howdy When loading projects into the workspace there seems to be some limitations on the name attribute. I have 3 projects that have numbers in the name similar to: JavaMedia Watchamacallit 010424 SpacedObject ABC 3.1.0 SpacedObject Veeger 3.3 Projects listed befor and after these will load.

RE: P4 (was Re: DTD and always compiling)

2001-06-27 Thread Les Hughes
What version client do you have? p4 -V should show this. requires client 99.2 and above - well, that's the version I test against :-). Les > -Original Message- > From: Kazandjian Erik [mailto:[EMAIL PROTECTED]] > Sent: 26 June 2001 15:28 > To: '[EMAIL PROTECTED]' > Subject: RE: P4 (wa

Re: Configuration

2001-06-27 Thread Tanvi Mody
You're right. I have Ant installed in and the ANT_HOME system variable set to - "D:\program files\Ant_home\jakarta-ant-1.3". I changed the line in the ant.bat file from if %ANT_HOME%a==a set ANT_HOME=%DEFAULT_ANT_HOME% to if "%ANT_HOME%a"=="a" set ANT_HOME=%DEFAULT_ANT_HOME% Diane Holt wrote

Re: Ant Logo

2001-06-27 Thread Stefan Bodewig
Alejandro Varela <[EMAIL PROTECTED]> wrote: > I have designed this logo for the new Ant release. I'm afraid, Peter's right. Even though Sun doesn't get a fee for each and every picture of a cup on earth, this one may be a little to close to the trademarked one. Stefan

Re: Set properties.

2001-06-27 Thread Stefan Bodewig
Diane Holt <[EMAIL PROTECTED]> wrote: > Except you probably don't really want that in this target, > since it would always print out, even if ${jar} isn't available, Which is what his original build file did as well 8-) Stefan

Re: Set properties.

2001-06-27 Thread Diane Holt
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > > > > Except you probably don't really want that in this target, since it would always print out, even if ${jar} isn't available, so you'd end up with output that has an unresolved property: [echo] log4j.jar present: ${present} Diane

VAJ plugin problem

2001-06-27 Thread Andreas Imner
Hi! When exporting from Visual Age almost everything works very well. Some projects however cannot be exported. Typicly it is projects that come with Visual Age, like "Java class libraries", "IBM Enterprise Extension Libraries" etc. When I try to export these, the Message log says: [vajexport

Re: Ant Logo

2001-06-27 Thread Bill Clinton
ooo - i like that!!! That's the best one ive seen yet. I hope they choose it. Good job! Bill Alejandro Varela wrote: > I have designed this logo for the new Ant release. > > <> <> > > Alejandro Varela. > Argentina. > > AVarela ®. > > > --

RE: Set properties.

2001-06-27 Thread Natalia Bello
Title: RE: Set properties. -Original Message- From:   Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent:   27 June 2001 15:04 To: [EMAIL PROTECTED] Subject:    Re: Set properties. Natalia Bello <[EMAIL PROTECTED]> wrote: > Hi, I am quite new with Ant, and I have some problems.

Re: Retry task on Error (correction)

2001-06-27 Thread Don Taylor
Oops! Target 'ftpSecond' should read as follows: You want to change 'unless' to 'if'! *BIG* difference! :) - Don --- Don Taylor <[EMAIL PROTECTED]> wrote: > > --- "O'Hara, Patrick" <[EMAIL PROTECTED]> wrote: > > Is there a way to retry a task when it errors out? I have a FTP > > task.

Re: Ant Logo

2001-06-27 Thread Peter Donald
On Wed, 27 Jun 2001 21:17, Alejandro Varela wrote: > I have designed this logo for the new Ant release. > > <> <> Unfortunately the steaming cup is one of suns trademarks which means we can't use it ;( Cheers, Pete *-* | "Faced with the ch

Ant Logo

2001-06-27 Thread Alejandro Varela
I have designed this logo for the new Ant release. <> <> Alejandro Varela. Argentina. AVarela ®. <><>

Re: Configuration

2001-06-27 Thread Diane Holt
--- Tanvi Mody <[EMAIL PROTECTED]> wrote: > I have just installed the binary version of Ant. Have follwed the > instructions to set the correct system variables (PATH and CLASSPATH > etc). When I run ant with a valid build.xml file in the current > directory, I get the message - > > Files\Ant_hom

Re: Retry task on Error

2001-06-27 Thread Don Taylor
--- "O'Hara, Patrick" <[EMAIL PROTECTED]> wrote: > Is there a way to retry a task when it errors out? I have a FTP > task. The > server we are connecting to is a little hit and miss. I would like > to retry > the FTP task if it fails to send all the files. > I'm assuming you can already figu

Re: Configuration

2001-06-27 Thread Rob van Oostrum
what did you set your ANT_HOME variable to? Tanvi Mody wrote: > I have just installed the binary version of Ant. Have follwed the > instructions to set the correct system variables (PATH and CLASSPATH > etc). When I run ant with a valid build.xml file in the current > directory, I get the messag

Configuration

2001-06-27 Thread Tanvi Mody
I have just installed the binary version of Ant. Have follwed the instructions to set the correct system variables (PATH and CLASSPATH etc). When I run ant with a valid build.xml file in the current directory, I get the message - Files\Ant_home\jakarta-ant-1.3a==a was unexpected at this time. Wh

RE: P4 (was Re: DTD and always compiling)

2001-06-27 Thread "Schaible, Jörg"
Hi Erik, The -s option is not an option of sync, but of p4 itself. Have a look at the manual and you'll see that this option causes p4 to add a prefix to each line of output. This makes it much easier for integration into other tools. Jörg >-Original Message- >From: Kazandjian Erik [mai

JAR not updated when using zipfilesets

2001-06-27 Thread Stefano Mancarella
I have the following scenario: If I change util.jar (both in size and timestamp) archive.jar doesn't get recreated, as if it was up to date. Is this normal behavior or should it be considered a bug? Thanks for your help.

Retry task on Error

2001-06-27 Thread O'Hara, Patrick
Title: Retry task on Error Is there a way to retry a task when it errors out?  I have a FTP task.  The server we are connecting to is a little hit and miss.  I would like to retry the FTP task if it fails to send all the files. Patrick O'Hara Workscape, Inc N17 W24222 Riverwood Pl Waukesha, W

RE: ejbjar and parser.jar file

2001-06-27 Thread Srinivas Subbaraju
Thanks Conor,I recovered from the errors. Mistake was setting classpath in ant build file. I removed it, now it is working fine. As you suspected even ejbc was not running from command line. Srini -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27

Set properties.

2001-06-27 Thread Natalia Bello
Title: Set properties. Hi, I  am quite new with Ant, and I have some problems. I am trying to use the same target from two different ones; setting some parameters, and execute or not this last target depending of one of the parameters. This is the code:          

Re: Ant and java frameworks

2001-06-27 Thread Stefan Bodewig
Kyle Adams <[EMAIL PROTECTED]> wrote: > Here's an example: > > > > > > OK, I'm part of the "single compile for all modules" fraction, and prefer a single build file, but my builds are not as complex as those other people have to live with. What you are tryin

Re: Properties not set properly after

2001-06-27 Thread Stefan Bodewig
Don Taylor <[EMAIL PROTECTED]> wrote: > Stefan says this is impossible, I claim he isn't devious enough! :) > > Here's my idea: > > > > > > > > you won 8-) Stefan

RE: Properties not set properly after

2001-06-27 Thread Don Taylor
In general, your "workaround" is standard operating procedure. However, someday you may find that you *really* do need to make an antcall and that you *really* need to propagate the the properties from the caller to the callee. Stefan says this is impossible, I claim he isn't devious enough! :)

Re: ejbjar and parser.jar file

2001-06-27 Thread Conor MacNeill
From: "Srinivas Subbaraju" <[EMAIL PROTECTED]> > > I extracted the parser.jar file into weblogic/classes and started running > ant Why did you do that? It is probably best not to mess with weblogic's classes area - you may be setting many potential class conflicts. Have you tried to run a command

Re: Ant and java frameworks

2001-06-27 Thread Kyle Adams
Here's an example: The three subdirectories above (bm, uv and rh) are the three subprojects that any project can have. Now, if a particular project does NOT have all three of these subprojects, the build will fail with the code above. I don't know enough a

RE: Properties not set properly after

2001-06-27 Thread Jamie Lawrence
Thanks. The workaround for me is to place those targets in the init attribute. i.e, Now, "ant all compile" works fine. Perhaps the or documentation could be updated to explain this issue. Jamie > -Original Message- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] > Sen

Re: PATCH to Rmic.java for IIOP

2001-06-27 Thread Stefan Bodewig
Rob van Oostrum <[EMAIL PROTECTED]> wrote: > Sounds good to me, provided that the -always switch works as > expected. Given that there is a bug report and that Larry has sent a patch to move the timestamp check into Ant, invoking rmic all the time may not be the best option. Guess we look for "

Re: Properties not set properly after

2001-06-27 Thread Stefan Bodewig
Jamie Lawrence <[EMAIL PROTECTED]> wrote: > Why do properties in a target only get set if the target is called > from the cmd-line or init, but aren't set when called using antcall? They are set, but only for the duration of the antcall. When you use , you get a copy of your current project and

Properties not set properly after

2001-06-27 Thread Jamie Lawrence
Why do properties in a target only get set if the target is called from the cmd-line or init, but aren't set when called using antcall? For example, if I call "ant pc compile" everything work fine (the pc target sets a property pc, compile then calls the pc.xml file and if the pc property is set

Re: PATCH to Rmic.java for IIOP

2001-06-27 Thread Rob van Oostrum
Sounds good to me, provided that the -always switch works as expected. About the -sourcebase attribute: what if a user sets the sourcebase to the source base of the rest of the project (so that the generated source files wind up in the same place as the other sources)? It would mean that they mi

FTP task not works if directory just exists

2001-06-27 Thread Pier Paolo Bortone
Hi, I'm using ANT to package my Cocoon site and send it to production system (LINUX RH 7.1).   I wanna send the package all in one without remove the old files, but the task give me this error:   D:\sviluppo\nisdev\build.xml:114: could not create directory: 521 "/usr/local/webapps/nis" direc

FTP task is very slow

2001-06-27 Thread Pier Paolo Bortone
Hi, I'm using ANT to package my Cocoon site and send it to production system (LINUX RH 7.1), but the FTP task is very slow before 'sending files' action, 40 sec.   Someone knows the reason?   Thanks in advance.   Pier Paolo.

RE: Ant and java frameworks

2001-06-27 Thread Mikael Brandt
"Kyle Adams" wrote: > For example, our user management app may only have the back-end implemented. > So the directory for the app would have only one subdirectory. On the other > hand, our customer management app may have the front-end and the back-end > implemented, so the directory would c