Re: Segmentation fault xerces.jar

2002-01-31 Thread kkonaka

At Thu, 31 Jan 2002 16:55:40 -0600,
[EMAIL PROTECTED] wrote:
> 
> Aparently, it is not a xerces problem, but a java machine problem that just
> manifested itself today.
> I got it fixed (and I am still investigating...) by typing:
> 
> ulimit -s 2048

I did have similar problem on my linux machine (Slackware8) too.
it probably have something to do with specific glibc version,
stuff like that; bugParade actually contains several similar
incidents for this, for instance:
http://developer.java.sun.com/developer/bugParade/bugs/4441425.html

does anybody know if similar thing (segv) can also happen
for {solaris sparc/some jdk/some os patch} combination too?
(- yes, I've heard some one around me did face this; but
I couldn't exactly verify what was happening...)

regards,
kenji

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do I get ant's

2002-01-31 Thread dIon Gillard

I've had a look through the source and the docs and I'm no wiser. Does 
anyone know how?

-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Vote for the Official Ant Logo!

2002-01-31 Thread Vince Eagen

Hi Diane, you can send it my way if you want, I've been using photoshop
for years and do a little work for hp and the like. I'd be happy to play
around with the fonts!

-Vinnie

-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 6:00 PM
To: Ant Developers List; Stephane Bailliez
Cc: [EMAIL PROTECTED]
Subject: Re: Vote for the Official Ant Logo!


--- Stephane Bailliez <[EMAIL PROTECTED]> wrote:
> I definitely vote for a rework of 42 (I'd like a different font and a
> anthill less rectangular with an ant inspired from 16)
> How's that sound for a T-shirt or a mousepad ? :-)

I'm with you -- that one definitely seems right for a T-shirt, just not
sure if it's really right for the logo. But I'm getting fond of the one
with the ant and the feather -- it just seemed like it needed some text.
So I downloaded Photoshop and tried my hand at adding some -- couldn't
figure out how to change the font face or size, but hopefully you'll get
the idea.  It's too late to make it an official candidate, but I added
it
to the preview page anyway so it could at least get evaluated as to how
it'd look if text were added to it (by someone who actually knows
Photoshop, that is :)

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Vote for the Official Ant Logo!

2002-01-31 Thread Diane Holt

--- Stephane Bailliez <[EMAIL PROTECTED]> wrote:
> I definitely vote for a rework of 42 (I'd like a different font and a
> anthill less rectangular with an ant inspired from 16)
> How's that sound for a T-shirt or a mousepad ? :-)

I'm with you -- that one definitely seems right for a T-shirt, just not
sure if it's really right for the logo. But I'm getting fond of the one
with the ant and the feather -- it just seemed like it needed some text.
So I downloaded Photoshop and tried my hand at adding some -- couldn't
figure out how to change the font face or size, but hopefully you'll get
the idea.  It's too late to make it an official candidate, but I added it
to the preview page anyway so it could at least get evaluated as to how
it'd look if text were added to it (by someone who actually knows
Photoshop, that is :)

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Ant, jars and Manifest

2002-01-31 Thread Scott Ellsworth


On Thursday, January 31, 2002, at 04:25  PM, Ylan Segal wrote:
> I was going to make my first patch for the documentation of this, but I 
> just
> checked the manual in cvs and it is already included there. Oh well!

Just wanted to say THANKS to the ant list for a just amazing tool.  Thus 
far, everything I have wanted it to do, I was able to coerce it into 
doing.  This, for example, is a really neat way of solving the manifest 
problem, and it is pretty darn neat to boot.

Scott


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Ant, jars and Manifest

2002-01-31 Thread Ylan Segal

Robert,
> -Original Message-
> From: Robert Upshall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Ant, jars and Manifest
>
>
> Is there anyway in ant to specify the the values of a Manifest.mf
> file using
> a task.

Sure there is, I use it all the time:













In ant version 1.4.1 it does not appear in the documentation, but it works.

I was going to make my first patch for the documentation of this, but I just
checked the manual in cvs and it is already included there. Oh well!

Ylan Segal.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




javac: invalid flag -sourcepath???

2002-01-31 Thread Zhendi Su

Hi,

I am trying to compile some .java files and my task looks like:








When I ran ant, it gave me an error message saying:
 [javac] javac: invalid flag: -sourcepath
[javac] use: javac
[-g][-O][-debug][-depend][-nowarn][-verbose][-classpath p
ath][-nowrite][-deprecation][-d dir][-J] file.java...

This really surprised me because I had a similar javac task before and
it worked perfect.  Also, Isn't -sourcepath a valid flag in javac?  And
this -sourcepath flag is gerenated by ant...  I ran ant using -verbose
option and the compilation argument is follows:

   [javac] Compiling 5 source files to /home/rsu/okcbuild/classes
[javac] Using classic compiler
[javac] Compilation args: -d /home/rsu/okcbuild/classes -classpath
/home/rsu
/okcbuild/classes:/home/bhenriqu/okx.jar:/afrz/crmcon/kdv7core/comn/java/jdbc111

.zip:/afrz/crmcon/kdv7core/comn/java/xmlparserv2.zip:/oracle/apache/ojsp/servlet

.jar:/afrz/crmcon/kdv7core/comn/java/apps.zip:/home/rsu/Ant/lib/jaxp.jar:/home/r

su/Ant/lib/jakarta-ant-1.4.1-optional.jar:/home/rsu/Ant/lib/crimson.jar:/home/rs

u/Ant/lib/ant.jar:/local/java/jdk1.1.8/lib/classes.zip:/local/netscape404/java/c

lasses/java40.jar:/okcdev/okc/11.5/java:/local/java/jdk1.2.2/lib/tools.jar
-sour
cepath /afrz/crmcon/kdv7core/comn/java/oracle/apps/okc/common -target 1
.1 -bootclasspath /local/java/jdk1.1.8/lib/classes.zip -extdirs
/home/rsu/okcbui
ld -g:none -Xdepend


Anyone got an idea why?

Thanks a lot!

Zhendi Su




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: sending e-mails from ant

2002-01-31 Thread Zhendi Su

Hi,

I specified the mailhost attribute as the name of the mail server (not "localhost") 
and that fixed the problem!  Thanks a lot for those who responded.

Have a great day!

Zhendi

Jon Skeet wrote:

> > I tried to send an email using ant's mail task, but it failed.  The error message 
>was:
> > /home/rsu/prototype/build.xml:10: IO error sending mail: Connection refused
>
> 
>
> > My original code in ant was:
> > 
> >  > from="[EMAIL PROTECTED]"
> > subject="First Attempt at Ant--Build result:${TODAY}" />
> > 
>
> > Anybody has any idea why?  Thanks a lot!
>
> Well, you haven't specified a mailhost parameter, so Ant is assuming that you want 
>to use localhost as your SMTP server. My guess is that that isn't what you wanted.
>
> Jon



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Ant, jars and Manifest

2002-01-31 Thread Robert Upshall

Is there anyway in ant to specify the the values of a Manifest.mf file using
a task.
ie. something like:



1
com.something.Driver






  



Is there any way to do this or do I have to create the Manifest file and use
it on the jar task as a properity?
ie. (like i'm currently doing):


<--Manifest.mf-->
Manifest-Version: 1.0
Main-Class: com.somethingDriver
Class-Path:  ./jar1.jar ./jar2.jar
<--Manifest.mf-->

I basicly want to be able to drop any dependent jars into the depen
directory and have them coppied into the lib directory on my dist and
included in the classpath automaticly.

Robert Upshall
Professional Software of Amarillo
(806) 358-8928
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Segmentation fault xerces.jar

2002-01-31 Thread Ylan Segal

Aparently, it is not a xerces problem, but a java machine problem that just
manifested itself today.
I got it fixed (and I am still investigating...) by typing:

ulimit -s 2048

before running ant in the bash shell (on deadrat 7.0). It appers it has
something to do with the default stack size (whatever THAT is) and by
reducing it, all is well. I guess it just manifested today because ant is
loading more stuff than before, on account of the new jars added to ant/lib.

If I find out anything else, I will let everyone now.

Ylan.

> -Original Message-
> From: Ylan Segal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: Segmentation fault xerces.jar
>
>
> I have sucesfully used the junitreport task in my windoze box, by adding
> this jars to the ant/lib directory (I am using ant 1.4.1)
> * jakarta-ant-1.4-optional.jar
> * xalan.jar
> * xerces.jar
>
> Now, I also use a linux box and this is where I have a problem. I have the
> same setup and use the same build files as in the winblows box. Everything
> has always worked until now.
>
> The problem is that if I copy xerces.jar to the ant/lib directory (in the
> linux box) I no longer can run ant, because of a segmentation error:
>
> ===
> [ylan@pinguino Master]$ ant -projecthelp
> Buildfile: build.xml
> /usr/local/ant/bin/ant: line 134:  3438 Segmentation fault
>  $JAVACMD -classpath "$LOCALCLASSPATH"
>  -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
> ==
>
> If I remove xerces.jar, ant starts working again, but of course,
> junitreport
> fails, as it can't find a class:
>
> ==
> [snip]
> [junitreport] Using Xalan version: Xalan Java 2.2.0
>
> BUILD FAILED
>
> java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at org.apache.xml.utils.ObjectPool.(ObjectPool.java:100)
> at
> org.apache.xalan.transformer.TransformerImpl.(TransformerImp
> l.java:237
> )
> at
> org.apache.xalan.templates.StylesheetRoot.newTransformer(Styleshee
> tRoot.java
> :175)
> at
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(T
> ransformer
> FactoryImpl.ja
> va:758)
> at
> org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execut
> e(Aggregat
> eTransformer.j
> ava:316)
> at
> org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.
> transform(
> AggregateTrans
> former.java:190)
> at
> org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.e
> xecute(XML
> ResultAggregat
> or.java:170)
> at org.apache.tools.ant.Task.perform(Task.java:217)
> at org.apache.tools.ant.Target.execute(Target.java:184)
> at org.apache.tools.ant.Target.performTasks(Target.java:202)
> at org.apache.tools.ant.Project.executeTarget(Project.java:601)
> at org.apache.tools.ant.Project.executeTargets(Project.java:560)
> at org.apache.tools.ant.Main.runBuild(Main.java:454)
> at org.apache.tools.ant.Main.start(Main.java:153)
> at org.apache.tools.ant.Main.main(Main.java:176)
>
> Total time: 16 seconds
> org/w3c/dom/traversal/NodeIterator
> ==
>
> I read in the archives somewhere that the java version had something to do
> with it, but I have already have tried two different versions j2sdk 1.3.1
> and 1.3.1_02.
>
> Any help would be greatly appreciated.
>
> Ylan Segal.
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: out of memory error using ant/xalan - SOLVED!

2002-01-31 Thread Papick Garcia Taboada


-BEGIN PGP SIGNED MESSAGE-

- -BEGIN PGP SIGNED MESSAGE-

hi,

thanks for the replies.

well, i had the same probs with xalan 2.1 and 2.2, that's why i
started
trying the 2.3D1 version (knowing it is not production stable).
i am on a w2k-pro desktop with enough memory.

i tried suns jdk 1.3.1, 1.4.0-b2, 1.4.0-rc on 3 different machines
(all
running w2k, enough memory).

the taskmanager tells jvm is using 76mb. sorry, i had no idea that it
is possible to "Fix your JVM size", will look for it - after some
testing
i found the problem: it was the jvm maximum heap size! thanks for the
hint! :-)

since running single sets work perfectly and batch processing
more then 2 sets is throwing the exception i still assume it is a
memory leak,
but i could not find any posting regarding this.

oh, and yes - it reproduces!

brgds

papick

- - -Ursprüngliche Nachricht-
Von: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 16:28
An: Ant Users List
Betreff: RE: out of memory error using ant/xalan



> -Original Message-
> From: ul73 [mailto:[EMAIL PROTECTED]]

> i am using
>   ant 1.4.1
>   xalan-j_2_3_D1
>   xerces-2_0_0
>
>   jdk 1.3.1 and jdk 1.4.0-rc

>   java.lang.OutOfMemoryError

> is this problem known?

I think Shane advice is crystal-clear about xalanj 2.3.d1 and xerces
2.0.0.

http://marc.theaimsgroup.com/?l=xalan-dev&m=101218100730370&w=2

1) Come back to a more reasonable use of 'release' products unless
you know
what ur doing
2) See if it reproduce.
3) Watch the JVM size (Not so long ago, I needed up to to 250MB to do
simple
transformations)
4) Fix your JVM size.
5) goto 2

- - --
 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.



- - --
To unsubscribe, e-mail:

For additional commands, e-mail:


- -BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use


iQEVAwUBPFmxm0iUejJ3oS7OAQFbTgf/WjmDojipGF81XwojHm9pmnsLtpIbLz6V
dMYvEaZDfPNJTrg5Awp1gTcv7wflYEtAOaP1eW+PVuzfV4Irjg08anb3GQ6U0Jbb
Xke4CYHRkPdOPCPgVWqR4oP1FqXjDQ+pQ+DkeDgtA/cJ1tX5tgZ/cCggIuYmNyHD
nc4M/ujk4BPfqzEQJ7pbVJ8kXpymvtWGyuRkDbxS/mbA7RRxDu52lmZ81UFz2YiD
3+p0sZEyuE7dT3gpgCEisLx1WQ7Fze1tyB37t+8xdeWxaSezkkETItMt4uHr3sq3
rA5sc+VB4Kb/DEpUSq8bQkAjBYAzehwD/QjgFDl5SK//Ugy8bTdRrw==
=JMqt
- -END PGP SIGNATURE-

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use 

iQEVAwUBPFmynkiUejJ3oS7OAQG9VAf/fs7dSh6cSmoZGk/WfF392CIABAzF83E3
f3n/7SGZNDfdqKhwtsq4+JI+E2EL6e9gl3ua5GL0QWcRCscyIZmkC+7UYcZ5eMEY
F5GaXZxW/sIOt70LouuLRyW+/+DLbhEbO9L7QIUPzOfUKMP8Pt+s3lt0pj0jXbjv
n4PohADruBMdUS/Oo9kyJFtfTt8iS+PhpWRm8qE2ikSy07yRnZleh5/csoW4wAeI
NnEQrTVRIns9veqVBwS15RTKCj7I8Isr2BQEnpHLlV+oxEAkKpoKckrfNwuT0Yif
ln7AbRTnUTyCYe2hJntlFLnVCTAWLFssvzCcndds9pTyIIGvqP6sfw==
=WshI
-END PGP SIGNATURE-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Vote for the Official Ant Logo!

2002-01-31 Thread Stephane Bailliez

- Original Message -
From: "Diane Holt" <[EMAIL PROTECTED]>

> If you haven't yet voted for a logo, and (like me) you'd like to see what
> the logo will look like on Ant's home page before you vote for it, I've
> put together a "preview" page with the logos:
>   http://www.tsoft.com/~dianeh/htdocs/preview.htm

Cool thanks.

> (This was just a q&d-type thing to get an idea, not necessarily what
> they'll really look like, size-wise and what-not.)

> Reminder: Voting ends tomorrow (Friday).

I definitely vote for a rework of 42 (I'd like a different font and a
anthill less rectangular with an ant inspired from 16)
How's that sound for a T-shirt or a mousepad ? :-)

Stephane


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jvm fork

2002-01-31 Thread Manjula Fernando

Hi All
Has anyone tried running junit batch tests  with jvm forked on ?.Does it
sets different classpaths for each test?.


 
  


  
  
  
  
  


   

 
  
 


Regards
Mahesh

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: out of memory error using ant/xalan

2002-01-31 Thread Frank E. Weiss

Yup. I just changed a Style task with includes to individual Style tasks for each  
file with in and out. That seems to work,
at least in my case. I'm going to crack open the Ant source now and look at how Xalan 
2.0.1 and Xalan 2.2.0 APIs have
changed.

"Frank E. Weiss" wrote:

> I've also been having problems using Xalan 2.2.0 with Ant 1.4.1. In my case 
>everything works fine with Xalan 2.0.1. But
> with Xalan 2.2.0, Ant only completes a few transformations before the build fails 
>with a Xalan exception. When I
> hand-run the failed stylesheet using Xalan 2.2.0, it's OK. I'm suspecting a Xalan 
>2.2.0 / JVM problem (using JDK 1.3.1),
> but it may have something to do with the way Ant executes the Style task.
>
> ul73 wrote:
>
> > hi,
> >
> > i am using
> >   ant 1.4.1
> >   xalan-j_2_3_D1
> >   xerces-2_0_0
> >
> >   jdk 1.3.1 and jdk 1.4.0-rc
> >
> > my project does lots of xsl transformation, and I always run into
> > the following error:
> >
> > BUILD FAILED
> >
> > java.lang.OutOfMemoryError
> >
> > is this problem known?
> >
> > i am using a styleshet to generate ant project files:
> >
> > build
> > -> (1-1)
> > generates "modules_to_build"
> > -> (1-n)
> > generates "moduleX_build_file"
> >
> > this "n"-moduleX_build_file are started using  > antfile="moduleX_build_file"/>.
> > if i just start 1 or 2 moduleX processes - no problem. as soon as it
> > generates 3 or
> > more moduleX process i get the memory error.
> >
> > HELP!!!
> >
> > brgds
> >
> > papick
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Thoughts about properties

2002-01-31 Thread David . Bailey


I would like to suggest two extensions to ant's use of .properties files
(maybe ant can already do these things, but between reading the doc
and experimenting I didn't see how):

 1) Add a '-properties ' to specify a properties file
  which in effect "globally" for a single ant run.  Obviously
  it's possible to obtain something close to this functionality
  by inserting the  tag at the top of my
  build file, but if I have my build.xml files set up in a
  cascading manner (as I do) and want the flexibility to build
  against any build file in any directory, I have to include the
   tag in every single build file.  And I believe that
  ant will reload that same properties file with each build.xml
  it parses, which seems like kind of a waste.

 2) Support cascading .properties files.  That is, define some
  distinguished string (like 'INCLUDE_PROPERTIES='
  or something) to indicate that once you're done loading the
  current properties file, then go out and load the specified one
as
  well.

I think my reasons for requesting (1) are pretty clear.  My reason for
requesting (2)
is simply that my project has some properties which need to be constant
across
a given development environment (so all builds would reference a single,
environment-specific .properties file), and other properties which may
change from
one build to the next, and need to be configurable by the end user (and
thus
driven off a file in ${user.home}).  If suggestions (1) and (2) are both
implemented,
then it would be quite easy to slurp up both sets of propeties exactly once
for a
single build, no matter where in my source tree I'm building.  All it would
require
(once the .properties files are defined) is a slight modification to the
ant wrapper.

Furthermore, the properties defined in the "parent" .properties file could
act as
defaults for properties defined in the "child" .properties file, in case a
certain user
doesn't want to/doesn't know about the user-specific .properties file in
their home
directory.

Just a suggestion.

--dave



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Vote for the Official Ant Logo!

2002-01-31 Thread Diane Holt

If you haven't yet voted for a logo, and (like me) you'd like to see what
the logo will look like on Ant's home page before you vote for it, I've
put together a "preview" page with the logos:
  http://www.tsoft.com/~dianeh/htdocs/preview.htm

(This was just a q&d-type thing to get an idea, not necessarily what
they'll really look like, size-wise and what-not.)

Reminder: Voting ends tomorrow (Friday).

Have fun,
Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Segmentation fault xerces.jar

2002-01-31 Thread Ylan Segal

I have sucesfully used the junitreport task in my windoze box, by adding
this jars to the ant/lib directory (I am using ant 1.4.1)
* jakarta-ant-1.4-optional.jar
* xalan.jar
* xerces.jar

Now, I also use a linux box and this is where I have a problem. I have the
same setup and use the same build files as in the winblows box. Everything
has always worked until now.

The problem is that if I copy xerces.jar to the ant/lib directory (in the
linux box) I no longer can run ant, because of a segmentation error:

===
[ylan@pinguino Master]$ ant -projecthelp
Buildfile: build.xml
/usr/local/ant/bin/ant: line 134:  3438 Segmentation fault
 $JAVACMD -classpath "$LOCALCLASSPATH"
 -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
==

If I remove xerces.jar, ant starts working again, but of course, junitreport
fails, as it can't find a class:

==
[snip]
[junitreport] Using Xalan version: Xalan Java 2.2.0

BUILD FAILED

java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.xml.utils.ObjectPool.(ObjectPool.java:100)
at
org.apache.xalan.transformer.TransformerImpl.(TransformerImpl.java:237
)
at
org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java
:175)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.ja
va:758)
at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(Aggregat
eTransformer.j
ava:316)
at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTrans
former.java:190)
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregat
or.java:170)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 16 seconds
org/w3c/dom/traversal/NodeIterator
==

I read in the archives somewhere that the java version had something to do
with it, but I have already have tried two different versions j2sdk 1.3.1
and 1.3.1_02.

Any help would be greatly appreciated.

Ylan Segal.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: out of memory error using ant/xalan

2002-01-31 Thread Frank E. Weiss

I've also been having problems using Xalan 2.2.0 with Ant 1.4.1. In my case everything 
works fine with Xalan 2.0.1. But
with Xalan 2.2.0, Ant only completes a few transformations before the build fails with 
a Xalan exception. When I
hand-run the failed stylesheet using Xalan 2.2.0, it's OK. I'm suspecting a Xalan 
2.2.0 / JVM problem (using JDK 1.3.1),
but it may have something to do with the way Ant executes the Style task.

ul73 wrote:

> hi,
>
> i am using
>   ant 1.4.1
>   xalan-j_2_3_D1
>   xerces-2_0_0
>
>   jdk 1.3.1 and jdk 1.4.0-rc
>
> my project does lots of xsl transformation, and I always run into
> the following error:
>
> BUILD FAILED
>
> java.lang.OutOfMemoryError
>
> is this problem known?
>
> i am using a styleshet to generate ant project files:
>
> build
> -> (1-1)
> generates "modules_to_build"
> -> (1-n)
> generates "moduleX_build_file"
>
> this "n"-moduleX_build_file are started using  antfile="moduleX_build_file"/>.
> if i just start 1 or 2 moduleX processes - no problem. as soon as it
> generates 3 or
> more moduleX process i get the memory error.
>
> HELP!!!
>
> brgds
>
> papick
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Perhaps simple xsl question

2002-01-31 Thread Scott Ellsworth


On Thursday, January 31, 2002, at 10:15  AM, Frank E. Weiss wrote:

> You'll be happy to hear that XSLT also allows escaping the curly braces 
> by doubling them.

I had thought that should be possible, but missed it when looking in my 
references.  (Good references, inexperienced hand at XSLT.)

Thanks!

Scott


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Perhaps simple xsl question

2002-01-31 Thread Frank E. Weiss

You'll be happy to hear that XSLT also allows escaping the curly braces by doubling 
them. It might be nicer to write

http://www.w3.org/TR/xslt)

Cheers!

Scott Ellsworth wrote:

> On Wednesday, January 30, 2002, at 07:07  PM, Bevan Arps wrote:
>
> >  >
> > Ie the cvsroot attribute is to contain the results of evaluating the
> > expression '${cvs.root}', which is simply a string constant.
> >
> > Hope this helps,
>
> It did indeed!
>
> Thanks much,
>
> Scott
>
> ps - for the search engine: escaping variable in style sheet
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: quick question

2002-01-31 Thread Igor Fedulov

> As far as I know there is no such thing as an "unjar" command.  Instead
> use "jar x " which will extract all files from the jar.

There is together with unzip, untar, unjar, unwar and etc in Built-in
Tasks/Core Tasks...

Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: quick question

2002-01-31 Thread Michael Brailsford

As far as I know there is no such thing as an "unjar" command.  Instead
use "jar x " which will extract all files from the jar.

-Michael

On Thu, Jan 31, 2002 at 11:18:39AM -0600, Igor Fedulov wrote:
> 
> Dear Ant users:
> 
> How can I unjar all files in build/lib directory into build directory
> using unjar? Docs don't say that I can do something like this:
> 
> 
>   
> 
> 
>   
> 
> 
> Please help!
> 
> -- 
> Best regards,
> --
> HTTP is a stateless protocol, and the Internet is a stateless development
> environment
> --
> Igor Fedulov
> E-mail : [EMAIL PROTECTED]
> Work Ph: 773.775.1595
> Home Ph: 773.281.8938
> Cell Ph: 773.580.5935
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ejb-jar and external DTDs

2002-01-31 Thread Erik Hatcher

RTFAQ:  http://jakarta.apache.org/ant/faq.html#xml-entity-include


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 11:30 AM
Subject: Re: ejb-jar and external DTDs


> As a general XML question, how can I define an entity with all my DTDs, so
> that, I can do

> 
> &dtds;
> .
> 

> I realise my SGML is getting rusty...






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do i get JSPC running

2002-01-31 Thread Steve Loughran


- Original Message -
From: "Peter Kesch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 4:32 AM
Subject: How do i get JSPC running


> now i tried to compile jsps by ant with ant 1.5-alpha and 1.4.1 by
compiling
> it and defining it with the taskdef task ..
> in both cases i get the same error message and i don't wknow which
jar-file
> or what ever is missing

have you followed the instructions in the manual page about extra jar files
to get from jakarta-tomcat?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




quick question

2002-01-31 Thread Igor Fedulov


Dear Ant users:

How can I unjar all files in build/lib directory into build directory
using unjar? Docs don't say that I can do something like this:


  


  


Please help!

-- 
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : [EMAIL PROTECTED]
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does Ant's version 1.4.1 support Java's jdk1.1.8?

2002-01-31 Thread Stefan Bodewig

On Thu, 31 Jan 2002, Diane Holt <[EMAIL PROTECTED]> wrote:

> My approach has always been to use the latest&greatest JDK, so you
> get the faster/better Java executables, and if you need to compile
> against old crud, just pass it the old classes.

This doesn't work in all circumstances, the depend attribute is one
example: if you use JDK >= 1.3 it will be a NOOP, if you are running
on JDK 1.2, Ant will send the -Xdepend switch, no matter which classes
will be used.

The debug switch and classpath handling are also different if your Ant
is running on a JDK 1.2 or 1.1.  The src attribute will be translated
into a -sourcepath switch, which is not recognized by JDK 1.1 ...

Stefan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ejb-jar and external DTDs

2002-01-31 Thread lduperval

On 31 Jan, Landgraf, Thomas GFIDOR wrote:
> You can force the ejbjar task to refer to a local file (or to
> a webserver you control on your own) by supplying the -tag
> within the ejbjar task:
> 
> 
> 
>   location="${global.project.home}/DTD/ejb20-jar.dtd"/>
> 
>   location="${global.project.home}/DTD/weblogic-ejb-jar.dtd"/>
> 
> 
> 

As a general XML question, how can I define an entity with all my DTDs, so
that, I can do


&dtds;
.
.
.


I realise my SGML is getting rusty...

L

-- 
Laurent Duperval 

Le petit démon joufflu de la gastronomie frétille en moi!
 -Achille Talon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does Ant's version 1.4.1 support Java's jdk1.1.8?

2002-01-31 Thread Diane Holt

--- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> On Wed, 30 Jan 2002, Zhendi Su <[EMAIL PROTECTED]> wrote:
> 
> > for our development it's important that we use jdk 1.1 to compile
> > all of our java files.
> 
> So use JDK 1.1 to run Ant, that's all.

Of course, if you do, and you're running on Winblows, you get those silly
windows popping up all over the place. My approach has always been to use
the latest&greatest JDK, so you get the faster/better Java executables,
and if you need to compile against old crud, just pass it the old classes.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: out of memory error using ant/xalan

2002-01-31 Thread David Stagner

ul73 wrote:

> hi,
> 
> i am using
>   ant 1.4.1
>   xalan-j_2_3_D1
>   xerces-2_0_0
> 
>   jdk 1.3.1 and jdk 1.4.0-rc
> 
> 
> my project does lots of xsl transformation, and I always run into
> the following error:
> 
>   BUILD FAILED
> 
>   java.lang.OutOfMemoryError
> 
> is this problem known?
> 
> i am using a styleshet to generate ant project files:
> 
>   build
>   -> (1-1)
>   generates "modules_to_build"
>   -> (1-n)
>   generates "moduleX_build_file"
> 
> this "n"-moduleX_build_file are started using  antfile="moduleX_build_file"/>.
> if i just start 1 or 2 moduleX processes - no problem. as soon as it
> generates 3 or
> more moduleX process i get the memory error.

You didn't say what operating system you're running on.  That's a 
strange error for any Unix... are you using Windows 98/ME?  If so, i'll 
bet you're running out of low 640k somehow, the DOS legacy of that junk. 
I've seen W98 boxes with 256M that couldn't run two applications at 
once.  Try it under NT/2000/XP and the problem should go away.

If you're actually running some real OS like Unix or an NT-derived 
Windows, then look at your system process management tools and see if 
there is some control limiting maximum memory to a process, or if there 
is a well-known memory leak associated with Java on that platform.

-- 

David Stagner

National Marrow Donor Program
3001 Broadway Street NE
Broadway Ridge Suite 500
Minneapolis, MN  55413

Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: out of memory error using ant/xalan

2002-01-31 Thread Stephane Bailliez


> -Original Message-
> From: ul73 [mailto:[EMAIL PROTECTED]]

> i am using
>   ant 1.4.1
>   xalan-j_2_3_D1
>   xerces-2_0_0
> 
>   jdk 1.3.1 and jdk 1.4.0-rc

>   java.lang.OutOfMemoryError

> is this problem known?

I think Shane advice is crystal-clear about xalanj 2.3.d1 and xerces 2.0.0.

http://marc.theaimsgroup.com/?l=xalan-dev&m=101218100730370&w=2

1) Come back to a more reasonable use of 'release' products unless you know
what ur doing
2) See if it reproduce.
3) Watch the JVM size (Not so long ago, I needed up to to 250MB to do simple
transformations)
4) Fix your JVM size.
5) goto 2

-- 
 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. 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ejb-jar and external DTDs

2002-01-31 Thread lduperval

On 31 Jan, Conor MacNeill wrote:
> L,
> 
> Download the DTD from the link to a local directory and then add a 
> element to inform ejbjar where the DTD is.
> 
> Check out the documentation
> http://jakarta.apache.org/ant/manual/OptionalTasks/ejb.html#ejbjar
> 
> In particular, look at the description of the dtd element and the examples.
> I have copied in a relevant snippet here
> 
>  
> location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/weblogic-ejb-
> jar.dtd"/>
> 
> Obviously you need to select the appropriate publicId and location values.
> 

Thanks, that's a got step forward.

L

-- 
Laurent Duperval 

"Technically, Windows is an 'operating system,' which means that it
supplies your computer with the basic commands that it needs to
suddenly, with no warning whatsoever, stop operating."
 -Dave Barry



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




out of memory error using ant/xalan

2002-01-31 Thread ul73

hi,

i am using
  ant 1.4.1
  xalan-j_2_3_D1
  xerces-2_0_0

  jdk 1.3.1 and jdk 1.4.0-rc


my project does lots of xsl transformation, and I always run into
the following error:

BUILD FAILED

java.lang.OutOfMemoryError

is this problem known?

i am using a styleshet to generate ant project files:

build
-> (1-1)
generates "modules_to_build"
-> (1-n)
generates "moduleX_build_file"

this "n"-moduleX_build_file are started using .
if i just start 1 or 2 moduleX processes - no problem. as soon as it
generates 3 or
more moduleX process i get the memory error.

HELP!!!


brgds

papick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




copying a floder

2002-01-31 Thread Sujan Digumarti

I have to write a build script which will copy a folder(XYZ) lying parallel
to another folder say ABC but ABC itself should be ignored.
This ABC folder is lying inside someother folder.

i tried this






i only have to pick up the folder lying parallel to ABC and nothing else..
i have tried other combinations but at most what i can get is to get ABC
folder ignored but the directory structure gets replicated in the target
directory iel/m/XYZ
what i want is  /XYZ

Any suggestions!!

tar,
Sujan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can I run Ants from a Java Program?

2002-01-31 Thread Kevin Toomey

Check out the Ant API. You can use the Project class as your entry
point. 
--- Joseph Teo Chee Ming <[EMAIL PROTECTED]> wrote:
> Hi...
> 
> Sorry about the earlier mail...
> 
> Does anyone know if I can call Ants from a Java program? If so, how
> do I
> call? thanks...
> 
> Joe
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: fileset / include name= with if/unless

2002-01-31 Thread Stefan Bodewig

On Thu, 31 Jan 2002, Juergen Damke <[EMAIL PROTECTED]> wrote:

> Would it be useful to add optional "if" and "unless" parameters to
> the  parameter in the  task,

They have if/unless attributes (actually, they are the include
elements of an anonymous patternset inside a fileset).

Stefan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can I reduce the amount (which is 100) of ant-javac error messages ?

2002-01-31 Thread Erik Hatcher

I don't believe there is a way to change it its a JDK javac "feature".
You could always manually tweak the files you're including in compilation by
using the patternset include feature of the fileset of  - and
restrict it to a particular branch of your source code while you're working
on that.

Perhaps using Jikes would allow some additional configuration?

Erik


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 5:52 AM
Subject: RE: How can I reduce the amount (which is 100) of ant-javac error
messages ?


> I realize that I have to restate my question.
>
> The max amount of javac error messages is 100.
> Is there a way to set the max amount to a different value?
>
> I thought that this was a relevant question, at least it is to me, because
> now I'm faced with a huge amount of classes that is to be put into my
> environment. But waiting for 100 error messages to be produced, may take
> some 26 seconds.
>
> Regards
> Frode Mjos Johnsen
>
> -Original Message-
> From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
> Sent: 31. januar 2002 11:17
> To: Ant Users List
> Subject: Re: How can I reduce the amount (which is 100) of ant-javac
> error messages ?
>
>
> Fix your code!  :)
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 31, 2002 4:34 AM
> Subject: How can I reduce the amount (which is 100) of ant-javac error
> messages ?
>
>
> > How can I reduce the amount (which is 100) of ant-javac error messages ?
> >
> > Regards
> > Frode Mjos Johnsen
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




fileset / include name= with if/unless

2002-01-31 Thread Juergen Damke


Hello,

Would it be useful to add optional "if" and "unless" parameters to the
 parameter in the  task, similar to the if/unless
argument in  when used inside  ?

I think this makes the usage if both more consistent.

Mit freundlichen Grüßen / With best regards
Jürgen Damke
__
IBM WebSphere Portal Server Development
URL: http://www-4.ibm.com/software/webservers/portal/
IBM Development Laboratory Böblingen, Germany


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1 xalan

2002-01-31 Thread Hunt, Bryan


I finally found out what was wrong, you need either Xalan 2.x to do the
optional 
junit and juintreport tasks. I installed this xalan and added it to the
classpath.

CLASSPATH=C:\jdk1.3.1_01\lib\tools.jar;c:\tomcat\lib\servlet.jar;C:\xalan-j_
2_2_
0\bin\

however in the bin directory there is something that conflicts with and
sends
ant absolutely insane. I don't know what it is but I changed the classpath 
so that it read 

CLASSPATH=C:\jdk1.3.1_01\lib\tools.jar;c:\tomcat\lib\servlet.jar;C:\xalan-j_
2_2_
0\bin\xerces.jar

And now everything works, however I havent tried running junitreport yet. If
anyone has managed to get junitreport working can they give me a shout (with
their config files).

Thanks for all your help

Bryan







 


-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 11:28
To: Ant Users List
Subject: Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1


Hunt, Bryan wrote:

> if I try that ant just refuses to work alltogether 
> 
> C:\ichara\build>set ant
> ANT_HOME=c:\jakarta-ant-1.4.1\
> 
> C:\ichara\build>set ant_home=c:\jakarta-ant-1.4.1
> 
> C:\ichara\build>ant
> Usage: java [-options] class [args...]
>(to execute a class)
>or  java -jar [-options] jarfile [args...]
>(to execute a jar file)
> 


OK, you definitely should not have the trailing slash.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1849

So, the problem we need to fix is the problem above.

Please change the ant.bat script to turn echo on - look at the first 
line, the change should be obvious. Now run ant again with ANT_HOME with 
the slash. Send us the output to see what is going wrong.

Conor


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1

2002-01-31 Thread Conor MacNeill

Conor MacNeill wrote:

> Hunt, Bryan wrote:
> 
>> if I try that ant just refuses to work alltogether
>> C:\ichara\build>set ant
>> ANT_HOME=c:\jakarta-ant-1.4.1\
>>
>> C:\ichara\build>set ant_home=c:\jakarta-ant-1.4.1
>>
>> C:\ichara\build>ant
>> Usage: java [-options] class [args...]
>>(to execute a class)
>>or  java -jar [-options] jarfile [args...]
>>(to execute a jar file)
>>
> 
> 
> OK, you definitely should not have the trailing slash.
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1849
> 
> So, the problem we need to fix is the problem above.
> 
> Please change the ant.bat script to turn echo on - look at the first 
> line, the change should be obvious. Now run ant again with ANT_HOME with 
> the slash. Send us the output to see what is going wrong.
> 


Oops,  *without* the slash

Conor





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1

2002-01-31 Thread Conor MacNeill

Hunt, Bryan wrote:

> if I try that ant just refuses to work alltogether 
> 
> C:\ichara\build>set ant
> ANT_HOME=c:\jakarta-ant-1.4.1\
> 
> C:\ichara\build>set ant_home=c:\jakarta-ant-1.4.1
> 
> C:\ichara\build>ant
> Usage: java [-options] class [args...]
>(to execute a class)
>or  java -jar [-options] jarfile [args...]
>(to execute a jar file)
> 


OK, you definitely should not have the trailing slash.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1849

So, the problem we need to fix is the problem above.

Please change the ant.bat script to turn echo on - look at the first 
line, the change should be obvious. Now run ant again with ANT_HOME with 
the slash. Send us the output to see what is going wrong.

Conor


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can I reduce the amount (which is 100) of ant-javac error messages ?

2002-01-31 Thread Stefan Bodewig

On Thu, 31 Jan 2002, frode-mjos johnsen
<[EMAIL PROTECTED]> wrote:

> The max amount of javac error messages is 100.

This is a setting of the compiler you use (jikes?) and not of Ant.
You need to find out how you can tell your compiler to show all error
messages (or less than 100), Ant doesn't know about this.

Stefan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1

2002-01-31 Thread Hunt, Bryan

if I try that ant just refuses to work alltogether 

C:\ichara\build>set ant
ANT_HOME=c:\jakarta-ant-1.4.1\

C:\ichara\build>set ant_home=c:\jakarta-ant-1.4.1

C:\ichara\build>ant
Usage: java [-options] class [args...]
   (to execute a class)
   or  java -jar [-options] jarfile [args...]
   (to execute a jar file)

where options include:
-hotspot  to select the "hotspot" VM
-server   to select the "server" VM
-classic  to select the "classic" VM
  If present, the option to select the VM must be first.
  The default VM is -hotspot.

-cp -classpath 
  set search path for application classes and resources
-D=
  set a system property
-verbose[:class|gc|jni]
  enable verbose output
-version  print product version and exit
-showversion  print product version and continue
-? -help  print this help message
-Xprint help on non-standard options



-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 10:53
To: Ant Users List
Subject: Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1


Hunt, Bryan wrote:

> Yes the ANT_HOME env var is set 
> 
> cut=
> ANT_HOME=C:\jakarta-ant-1.4.1\ 
> =cut
> 

Try
 ANT_HOME=C:\jakarta-ant-1.4.1


i.e. remove trailing slash.

Conor



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can I reduce the amount (which is 100) of ant-javac error messages ?

2002-01-31 Thread frode-mjos . johnsen

I realize that I have to restate my question.

The max amount of javac error messages is 100.
Is there a way to set the max amount to a different value?

I thought that this was a relevant question, at least it is to me, because
now I'm faced with a huge amount of classes that is to be put into my
environment. But waiting for 100 error messages to be produced, may take
some 26 seconds.

Regards
Frode Mjos Johnsen

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: 31. januar 2002 11:17
To: Ant Users List
Subject: Re: How can I reduce the amount (which is 100) of ant-javac
error messages ?


Fix your code!  :)


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 4:34 AM
Subject: How can I reduce the amount (which is 100) of ant-javac error
messages ?


> How can I reduce the amount (which is 100) of ant-javac error messages ?
>
> Regards
> Frode Mjos Johnsen
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1

2002-01-31 Thread Conor MacNeill

Hunt, Bryan wrote:

> Yes the ANT_HOME env var is set 
> 
> cut=
> ANT_HOME=C:\jakarta-ant-1.4.1\ 
> =cut
> 

Try
 ANT_HOME=C:\jakarta-ant-1.4.1


i.e. remove trailing slash.

Conor



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Antwort: Re: How can I reduce the amount (which is 100) of ant-javac errormessages ?

2002-01-31 Thread hauke . stammer

thanks Erik, you saved my day!   :)

greetings,
hauke






"Erik Hatcher" <[EMAIL PROTECTED]>
31.01.2002 11:16
Bitte antworten an "Ant Users List"

 
An: "Ant Users List" <[EMAIL PROTECTED]>
Kopie: 
Thema:  Re: How can I reduce the amount (which is 100) of ant-javac error 
messages 
?


Fix your code!  :)


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 4:34 AM
Subject: How can I reduce the amount (which is 100) of ant-javac error
messages ?


> How can I reduce the amount (which is 100) of ant-javac error messages ?
>
> Regards
> Frode Mjos Johnsen
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






RE: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1

2002-01-31 Thread Hunt, Bryan


Yes the ANT_HOME env var is set 

cut=
ANT_HOME=C:\jakarta-ant-1.4.1\ 
=cut

here is the verbose output, this is some strange stuff

cut=
Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Detected Java version: 1.3 in: C:\jdk1.3.1_01\jre
Detected OS: Windows 2000
parsing buildfile C:\ichara\build\build.xml with URI =
file:C:/ichara/build/buil
d.xml
Project base dir set to: C:\ichara\build
Build sequence for target `doc' is [init, doc]
Complete build sequence is [init, doc, clean, prepare, compile, jar, test,
norma
l]

init:

doc:
Property ${ant.home} has not been set
 [echo]  ${ant.home}
  [javadoc] Generating Javadoc
  [javadoc] Source path = C:\ichara\src
  [javadoc] Packages = ie.emuse.*
  [javadoc] Exclude Packages =
  [javadoc] Javadoc args: C:\jdk1.3.1_01\jre\..\bin\javadoc.exe -d
C:\ichara\bui
ld\javadocs -use -windowtitle "Ichara Documentation" -classpath
'C:\jdk1.3.1_01\
lib\tools.jar;c:\jakarta-ant-1.4.1\\lib\crimson.jar;c:\jakarta-ant-1.4.1\\li
b\ja
xp.jar;c:\jakarta-ant-1.4.1\\lib\ant.jar;c:\tomcat\lib\servlet.jar;C:\xalan-
j_2_
2_0\bin" -Dant.home=c;\jakarta-ant-1.4.1"' -sourcepath C:\ichara\src
-version -a
uthor ie.emuse.ichara.shared.enum ie.emuse.ichara.shared.trace
  [javadoc] Javadoc execution
  [javadoc] javadoc: invalid flag: -Dant.home=c;\jakarta-ant-1.4.1
  [javadoc] usage: javadoc [options] [packagenames] [sourcefiles]
[classnames] [
@files]
  [javadoc] -overview   Read overview documentation from HTML
file

  [javadoc] -public   Show only public classes and members
  [javadoc] -protectedShow protected/public classes and
members
(default)
  [javadoc] -package  Show package/protected/public classes
and
members
  [javadoc] -private  Show all classes and members
  [javadoc] -help Display command line options
  [javadoc] -docletGenerate output via alternate doclet
  [javadoc] -docletpath Specify where to find doclet class
files
  [javadoc] -1.1  Generate output using JDK 1.1
emulating do
clet
  [javadoc] -sourcepath Specify where to find source files
  [javadoc] -classpath  Specify where to find user class files
  [javadoc] -bootclasspath  Override location of class files
loaded
  [javadoc]   by the bootstrap class loader
  [javadoc] -extdirs Override location of installed
extensions
  [javadoc] -verbose  Output messages about what Javadoc is
doin
g
  [javadoc] -locale Locale to be used, e.g. en_US or
en_US_WIN

  [javadoc] -encoding   Source file encoding name
  [javadoc] -J  Pass  directly to the runtime
system

  [javadoc]
  [javadoc] Provided by Standard doclet:
  [javadoc] -d Destination directory for output files
  [javadoc] -use  Create class and package usage pages
  [javadoc] -version  Include @version paragraphs
  [javadoc] -author   Include @author paragraphs
  [javadoc] -splitindex   Split index into one file per letter
  [javadoc] -windowtitleBrowser window title for the
documenation
  [javadoc] -doctitle  Include title for the package
index(first)
 page
  [javadoc] -headerInclude header text for each page
  [javadoc] -footerInclude footer text for each page
  [javadoc] -bottomInclude bottom text for each page
  [javadoc] -linkCreate links to javadoc output at

  [javadoc] -linkoffline   Link to docs at  using package
list a
t 
  [javadoc] -group  :.. Group specified packages together in
overv
iew page
  [javadoc] -nodeprecated Do not include @deprecated information
  [javadoc] -nosince  Do not include @since information
  [javadoc] -nodeprecatedlist Do not generate deprecated list
  [javadoc] -notree   Do not generate class hierarchy
  [javadoc] -noindex  Do not generate index
  [javadoc] -nohelp   Do not generate help link
  [javadoc] -nonavbar Do not generate navigation bar
  [javadoc] -serialwarn   Generate warning about @serial tag
  [javadoc] -charset Charset for cross-platform viewing of
gene
rated documentation.
  [javadoc] -helpfile   Include file that help link links to
  [javadoc] -stylesheetfile File to change style of the generated
docu
mentation
  [javadoc] -docencodingOutput encoding name
  [javadoc] 1 error

BUILD SUCCESSFUL
=cut




-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 16:21
To: Ant Users List
Subject: Re: javadoc: invalid flag: -Dant.home=C;\jakarta-ant-1.4.1


--- "Hunt, Bryan" <[EMAIL PROTECTED]> wrote:
> I am getting a strange error ... when I run the javadoc task 

> doc:
>  [echo]  ${ant.home}

The fact that ant.home is undefined is suspicious -- it should be getting
set on the 'java' command

Re: How can I reduce the amount (which is 100) of ant-javac error messages ?

2002-01-31 Thread Erik Hatcher

Fix your code!  :)


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 4:34 AM
Subject: How can I reduce the amount (which is 100) of ant-javac error
messages ?


> How can I reduce the amount (which is 100) of ant-javac error messages ?
>
> Regards
> Frode Mjos Johnsen
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How can I reduce the amount (which is 100) of ant-javac error messages ?

2002-01-31 Thread frode-mjos . johnsen

How can I reduce the amount (which is 100) of ant-javac error messages ?

Regards 
Frode Mjos Johnsen

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Target sql]

2002-01-31 Thread Nico Seessle

- Original Message -
From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 9:54 AM
Subject: Re: [Target sql]


> Well,
>
> My problem is that I can indicate the database url but I also need
> to specify the service name and I don't know
> how to do this...
>
> (Sorry, I'm not on Oracle expert...)
>

An Oracle JDBC-Url is (if using the "thin-driver", which only requires
tcp/ip and no configured Oracle-Client on the system you are running this
on)

jdbc:oracle:thin:@::

port of the listener should normally be 1521, hostname is the host the
listener is running on and oracle SID is the SID  configured in
listener.ora.

If you want to use the OCI8-driver (which requires an Oracle-Client to be
installed and configured) it would by jdbc:oracle:oci8:@ where alias
is the alias you are using in (for example) SQL*Plus to connect to the
database.

Nico




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Target sql]

2002-01-31 Thread Sugandha Shah

Hi ,

If this is your database url =jdbc:oracle:thin:@202.54.41.236:1521:abc

Here abc is the service name.
Where is oracle installed ? On the same machine from where you are running
ant ?
If so go this dir structure : ORA_HOME\bin\tnsping

This utility tells whether oracle service is running.
on command prompt
>tnsping abc

If this fails it means Oracle service is not running and hence the exception
in ANT.

Regards
-Sugandha


- Original Message -
From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 2:24 PM
Subject: Re: [Target sql]


> Well,
>
> My problem is that I can indicate the database url but I also need
> to specify the service name and I don't know
> how to do this...
>
> (Sorry, I'm not on Oracle expert...)
>
> Regards,
> Cyriaque,
>
>
> Sugandha Shah wrote:
>
> >Hi Cyriaque ,
> >
> >It is not the problem with driver loading .
> >This error means you are not able to access the machine where Oracle is
> >present.Try to ping the machine where Oracle is present.
> >Kindly also check the dburl. Check whether you are able to access the
> oracle
> >service.
> >
> >Regards
> >-Sugandha
> >
> >
> >- Original Message -
> >From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
> >To: "Ant Users List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, January 30, 2002 3:26 PM
> >Subject: Re: [Target sql]
> >
> >
> >>My target is like this :
> >> >>driver="${wt.pom.jdbc.driver}"
> >>url="${wt.pom.serviceName}"
> >>userid="${wt.pom.dbUser}"
> >>password="${wt.pom.dbPassword}"
> >>src="${rep.db}/sql/ext/cd/Reinit.sql"
> >>classpathref="path.wt.classpath"
> >>print="yes"
> >>/>
> >>
> >>The classpath is set and the driver is found...
> >>
> >>Cyriaque,
> >>
> >>
> >>Nico Seessle wrote:
> >>
> >>>- Original Message -
> >>>From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
> >>>To: "Liste Ant" <[EMAIL PROTECTED]>
> >>>Sent: Wednesday, January 30, 2002 10:01 AM
> >>>Subject: [Target sql]
> >>>
> >>>
> Hello,
> 
>    What does mean the following messages with sql target ?
> 
>    java.sql.SQLException: Exception d'E/S: The Network Adapter
> could not establish the connection
>    or
>    java.sql.SQLException: No suitable Driver for
> 
> >>thalassa:1521:tlse1
> >>
>    My Oracle is not on my machine...
> 
> >>>But your Oracle JDBC-Driver is? And it is in the classpath? Or you
> have
> >>>provided a nested classpath-element to sql?
> >>>
> >>>Nico
> >>>
> >>>
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >>
> >>
> >>>For additional commands, e-mail:
> >>>
> >>
> >>
> >>>
> >>--
> >>Cyriaque Dupoirieux 
> >>PCO Technologies
> >>Burolines - 2 ter rue Marcel Doret
> >>31700 Blagnac
> >>Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10
> >>
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
> >
> >
>
> --
> Cyriaque Dupoirieux 
> PCO Technologies
> Burolines - 2 ter rue Marcel Doret
> 31700 Blagnac
> Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10
>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




timeout of exec doesn't work

2002-01-31 Thread Peter Kesch

if i call a batchfile by an exec-task like this:




Why is ant hanging after executing the task  I set timout to 1 sek and i
think the task should be killed after 1 sek but it wwill not be killed 

why ???


Peter


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Target sql]

2002-01-31 Thread Cyriaque Dupoirieux

Well,

My problem is that I can indicate the database url but I also need 
to specify the service name and I don't know
how to do this...

(Sorry, I'm not on Oracle expert...)

Regards,
Cyriaque,


Sugandha Shah wrote:

>Hi Cyriaque ,
>
>It is not the problem with driver loading .
>This error means you are not able to access the machine where Oracle is
>present.Try to ping the machine where Oracle is present.
>Kindly also check the dburl. Check whether you are able to access the oracle
>service.
>
>Regards
>-Sugandha
>
>
>- Original Message -
>From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
>To: "Ant Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, January 30, 2002 3:26 PM
>Subject: Re: [Target sql]
>
>
>>My target is like this :
>>>driver="${wt.pom.jdbc.driver}"
>>url="${wt.pom.serviceName}"
>>userid="${wt.pom.dbUser}"
>>password="${wt.pom.dbPassword}"
>>src="${rep.db}/sql/ext/cd/Reinit.sql"
>>classpathref="path.wt.classpath"
>>print="yes"
>>/>
>>
>>The classpath is set and the driver is found...
>>
>>Cyriaque,
>>
>>
>>Nico Seessle wrote:
>>
>>>- Original Message -
>>>From: "Cyriaque Dupoirieux" <[EMAIL PROTECTED]>
>>>To: "Liste Ant" <[EMAIL PROTECTED]>
>>>Sent: Wednesday, January 30, 2002 10:01 AM
>>>Subject: [Target sql]
>>>
>>>
Hello,

   What does mean the following messages with sql target ?

   java.sql.SQLException: Exception d'E/S: The Network Adapter
could not establish the connection
   or
   java.sql.SQLException: No suitable Driver for

>>thalassa:1521:tlse1
>>
   My Oracle is not on my machine...

>>>But your Oracle JDBC-Driver is? And it is in the classpath? Or you have
>>>provided a nested classpath-element to sql?
>>>
>>>Nico
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>
>>
>>>For additional commands, e-mail:
>>>
>>
>>
>>>
>>--
>>Cyriaque Dupoirieux 
>>PCO Technologies
>>Burolines - 2 ter rue Marcel Doret
>>31700 Blagnac
>>Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-- 
Cyriaque Dupoirieux 
PCO Technologies
Burolines - 2 ter rue Marcel Doret
31700 Blagnac
Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10





Re: sending e-mails from ant

2002-01-31 Thread Stefan Bodewig

On Wed, 30 Jan 2002, Zhendi Su <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I tried to send an email using ant's mail task, but it failed.  The
> error message was:
> 
> /home/rsu/prototype/build.xml:10: IO error sending mail: Connection
> refused at

This means, that there is no mail server running on the mailhost you
have specified (or the SMTP server doesn't want to talk to you).  As
you don't give a mailhost attribute in your snippet, Ant will use the
default value of localhost.

Stefan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does Ant's version 1.4.1 support Java's jdk1.1.8?

2002-01-31 Thread Stefan Bodewig

On Wed, 30 Jan 2002, Zhendi Su <[EMAIL PROTECTED]> wrote:

> for our development it's important that we use jdk 1.1 to compile
> all of our java files.

So use JDK 1.1 to run Ant, that's all.

> I looked at ant's source code and there seems to be no javac11.java
> provided (under taskdef.compilers/).  I only see javac12.java, and
> this is the class that caused crashing when running ant.

Javac12.java handles the compiler for both JDK 1.1 and 1.2, there are
several places in that code where command line switches will be
adapted to the version of the JVM that is currently running Ant.

For example, the depend attribute will be translated into -depend if
Ant is currently running on a 1.1 JVM and into -Xdepend on a 1.2
system.

Stefan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: