stop processes

2002-09-12 Thread Klara Ward

Is there a way to stop processes from ant that you've started with ant, with java or 
exec?
Or do you have to use kill?

Klara



delete emacs ~-files does not work

2002-09-20 Thread Klara Ward

I've tried deleting the emacs ~-files with this delete task, but it won't work

  

  

  

Any ideas why this won't work?

Klara






deleting emacs ~-files does not work

2002-09-20 Thread Klara Ward

I've tried deleting the emacs ~-files with this delete task, but it won't work

  

  

  

Any ideas why this won't work?

Klara






Re: deleting emacs ~-files does not work

2002-09-20 Thread Klara Ward

I tried



  

  

with this result:

clean:
   [delete] DEPRECATED - Use of the implicit FileSet is deprecated.  Use a
nested fileset element instead.


Klara (using ant1.5.1beta)

- Original Message -
From: "Conor MacNeill" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 12:54 PM
Subject: Re: deleting emacs ~-files does not work


> Klara Ward wrote:
> > I've tried deleting the emacs ~-files with this delete task, but it
won't work
> >
> >   
> > 
> >   
> > 
> >   
> >
> > Any ideas why this won't work?
> >
>
> Look at the defaultExcludes attribute
>
> Conor
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




debuglevel in javac doesn't work

2002-09-25 Thread Klara Ward

I have this target:

 
  
  
  
  

and I run:
$>ant buildhello -verbose
Apache Ant version 1.5.1beta1 compiled on August 19 2002
Buildfile: build.xml
Detected Java version: 1.4 in: c:\java\java141\jre
Detected OS: Windows 2000
parsing buildfile build.xml with URI = file:Q:/AutomationFramework/build.xml
Project base dir set to: Q:\AutomationFramework
Build sequence for target `buildhello' is [initprops, buildhello]
Complete build sequence is [initprops, buildhello, javac, rmic, build, run, doal
l, shutdown, cleanclasses, runworker, cleanbuild, clean, runadmin, anttest, runa
ll, runmanager]

initprops:

buildhello:
[javac] Hello.java added as Q:\AutomationFramework\Hello.class doesn't exist
.
[javac] Compiling 1 source file to Q:\AutomationFramework
[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-d'
[javac] 'Q:\AutomationFramework'
[javac] '-classpath'
[javac] 'Q:\AutomationFramework;C:\java\java141\lib\tools.jar;K:\lib\java\an
t1.5.1b\lib\NetComponents.jar;K:\lib\java\ant1.5.1b\lib\xml-apis.jar;K:\lib\java
\ant1.5.1b\lib\xercesImpl.jar;K:\lib\java\ant1.5.1b\lib\optional.jar;K:\lib\java
\ant1.5.1b\lib\ant.jar;K:\lib\java\NetComponents\NetComponents.jar'
[javac] '-sourcepath'
[javac] 'Q:\AutomationFramework'
[javac] '-g:none'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] File to be compiled:
[javac] Q:\AutomationFramework\Hello.java

BUILD SUCCESSFUL
Total time: 4 seconds


should that say -g:lines,vars,source?


Klara




using the ftp task in ant via java not working

2002-09-25 Thread Klara Ward

I tried to run an ant script from java that uses the ftp task and I got:
BuildException: file:k:/rockit/qa/AutomationFramework/tests/install/install.xml:16: 
Could not create task or type of type: ftp.

when I use ant outside java with the same ant-file it works fine.
I had to have NetComponents.jar in my CLASSPATH to get this to work, 
I tried putting in ANT_HOME/lib to get ant through java to work, but that didn't help.

Do I have to set the CLASSPATH some other way when running it with java?

I use ant1.5.1b

Klara



Re: using the ftp task in ant via java not working

2002-09-25 Thread Klara Ward

Well, obviuosly I had to set the classpath specifically java
(with -classpath)..), ant looks at the CLASSPATH but java doesn't (right)
How very smart of me..

Klara


- Original Message -
From: "Klara Ward" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 4:13 PM
Subject: using the ftp task in ant via java not working


I tried to run an ant script from java that uses the ftp task and I got:
BuildException:
file:k:/rockit/qa/AutomationFramework/tests/install/install.xml:16: Could
not create task or type of type: ftp.

when I use ant outside java with the same ant-file it works fine.
I had to have NetComponents.jar in my CLASSPATH to get this to work,
I tried putting in ANT_HOME/lib to get ant through java to work, but that
didn't help.

Do I have to set the CLASSPATH some other way when running it with java?

I use ant1.5.1b

Klara




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Stopping java processes started with ant

2002-10-16 Thread Klara Ward

The timeout in the java task seems to work by calling thread.interrupt 
on the thread running the actual java.
Would it be possible to make some similar feature stopping the java 
process on your demand instead of after a timeout?
I guess you would have to keep some process-id in the ant-script, and 
I'm not sure how to do that in a good way, but it would really neat.

Or are there any other ideas on how to stop java processes from ant?


Klara


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




cvs CreateProcess: error=267

2002-10-28 Thread Klara Ward
I have trouble running cvs with ant

When I run:


   
   
  command="checkout"
  package="ToolsJPDATest"
  dest="${jpda_home}"/>
 

I get:

C:\eclipse\workspace\Tower>ant -f testspecs\jpda\jpda.xml -verbose cvsupdate
Ant version 1.4 compiled on September 3 2001
Buildfile: testspecs\jpda\jpda.xml
Detected Java version: 1.3 in: C:\bea\jdk131_02\jre
Detected OS: Windows 2000
parsing buildfile C:\eclipse\workspace\Tower\testspecs\jpda\jpda.xml 
with URI =
file:C:/eclipse/workspace/Tower/testspecs/jpda/jpda.xml
Project base dir set to: C:\eclipse\workspace\Tower\testspecs\jpda
Build sequence for target `cvsupdate' is [init, cvsupdate]
Complete build sequence is [init, cvsupdate, compiletests, run, sanity, 
testtest
win32, full, rockitrunner, medium, jpdatests]

init:

cvsupdate:

BUILD FAILED

C:\eclipse\workspace\Tower\testspecs\jpda\jpda.xml:49: 
java.io.IOException: Crea
teProcess: cvs -d :pserver:klara@talvath:/cvsroot checkout ToolsJPDATest 
error=2
67
   at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:221)
   at org.apache.tools.ant.Task.perform(Task.java:217)
   at org.apache.tools.ant.Target.execute(Target.java:164)
   at org.apache.tools.ant.Target.performTasks(Target.java:182)
   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)
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs -d 
:pserver:klara@talvath:/cvsroot check
out ToolsJPDATest error=267
   at java.lang.Win32Process.create(Native Method)
   at java.lang.Win32Process.(Win32Process.java:66)
   at java.lang.Runtime.execInternal(Native Method)
   at java.lang.Runtime.exec(Runtime.java:551)
   at java.lang.reflect.Method.invoke(Native Method)
   at 
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:564)
   at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
   at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:216)
   at org.apache.tools.ant.Task.perform(Task.java:217)
   at org.apache.tools.ant.Target.execute(Target.java:164)
   at org.apache.tools.ant.Target.performTasks(Target.java:182)
   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: 0 seconds

I have cvs.exe in my path
and running the cvs command by hand works
(the password is empty btw)

I'm running ant1.5.1

Klara


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



Re: cvs CreateProcess: error=267

2002-10-28 Thread Klara Ward
Yep, that solved it,
couldn't there have been a better error message?
or where could I have found what error 267 meant?

Klara

[EMAIL PROTECTED] wrote:


probably your destination path doesnt exist. Pls check the jpda_home property.

detlef
Zitiere Klara Ward <[EMAIL PROTECTED]>:

 

I have trouble running cvs with ant

When I run:


   
   
  command="checkout"
  package="ToolsJPDATest"
  dest="${jpda_home}"/>
 

I get:

C:\eclipse\workspace\Tower>ant -f testspecs\jpda\jpda.xml -verbose
cvsupdate
Ant version 1.4 compiled on September 3 2001
Buildfile: testspecs\jpda\jpda.xml
Detected Java version: 1.3 in: C:\bea\jdk131_02\jre
Detected OS: Windows 2000
parsing buildfile C:\eclipse\workspace\Tower\testspecs\jpda\jpda.xml 
with URI =
file:C:/eclipse/workspace/Tower/testspecs/jpda/jpda.xml
Project base dir set to: C:\eclipse\workspace\Tower\testspecs\jpda
Build sequence for target `cvsupdate' is [init, cvsupdate]
Complete build sequence is [init, cvsupdate, compiletests, run, sanity, 
testtest
win32, full, rockitrunner, medium, jpdatests]

init:

cvsupdate:

BUILD FAILED

C:\eclipse\workspace\Tower\testspecs\jpda\jpda.xml:49: 
java.io.IOException: Crea
teProcess: cvs -d :pserver:klara@talvath:/cvsroot checkout ToolsJPDATest

error=2
67
   at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:221)
   at org.apache.tools.ant.Task.perform(Task.java:217)
   at org.apache.tools.ant.Target.execute(Target.java:164)
   at org.apache.tools.ant.Target.performTasks(Target.java:182)
   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)
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs -d 
:pserver:klara@talvath:/cvsroot check
out ToolsJPDATest error=267
   at java.lang.Win32Process.create(Native Method)
   at java.lang.Win32Process.(Win32Process.java:66)
   at java.lang.Runtime.execInternal(Native Method)
   at java.lang.Runtime.exec(Runtime.java:551)
   at java.lang.reflect.Method.invoke(Native Method)
   at 
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:564)
   at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
   at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:216)
   at org.apache.tools.ant.Task.perform(Task.java:217)
   at org.apache.tools.ant.Target.execute(Target.java:164)
   at org.apache.tools.ant.Target.performTasks(Target.java:182)
   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: 0 seconds

I have cvs.exe in my path
and running the cvs command by hand works
(the password is empty btw)

I'm running ant1.5.1

Klara


--
To unsubscribe, e-mail:  
<mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-user-help@;jakarta.apache.org>


   


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

 





--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>




Setting environment variables with ant?

2003-01-07 Thread Klara Ward
Is it possible to set environment variables with ant?

/klara


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




ant and softlinks in cygwin

2003-02-10 Thread Klara Ward
I tried to run the javac task when my javadir was a softlink made in 
cygwin, and it didn't work.
Ant started, which it didn't when I tried having the javadir as a 
windows shortcut, but javac didn't work:

   [javac] Modern compiler is not available - using classic compiler
   [javac] Compiling 265 source files to 
C:\views\MI_VIKING_CROSIS_klara\jrocki
t\build\win32-j2se1.4.1\debug\classes

BUILD FAILED

c:\views\MI_VIKING_CROSIS_klara\jrockit\build\win32-j2se1.4.1\debug\..\..\..\mak
e\classes\build.xml:206: Cannot use classic compiler, as it is not 
available A c
ommon solution is to set the environment variable JAVA_HOME to your jdk 
directory.


This is the softlink.

lrwxrwxrwx1 Administ None  100 Feb 10 13:24 java141 -> 
java141_01

ant is started with this java from withing a .cmd file that is run in 
cygwin.

neither ANT_HOME nor JAVA_HOME has been set.

Klara




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



unwanted countprintouts for javac, java, junit

2001-07-09 Thread Klara Ward

Maybe this isn't an ant-problem but anyway,
I use ant to compile with javac and run tests with java or junit.
When I run I get the usual printouts combined with a lot of lines of :
 [java] count = 0, total = 9
 [java] count = 0, total = 123
The number of lines seemes to have something to do with how many files are
compiled/run but the numbers are always 0,9 and 123.
The problem just appeared some days ago and I can't connect it to anything I
changed just then that could have anything to do with it(but I probably did)
It also appears when I run the tests manually using java with the exact
command that ant prints out with the verbose-flag set.
Does anyone know anything about this? It doesn't obstruct the automatic
build/test-process, but its really annoying when you run ant manually.

Klara




Re: How to use optional tasks of ant1.3

2001-07-09 Thread Klara Ward

I use the optional task junit, and what I did was
place the junit.jar and optional.jar in ANT_HOME/lib

- Original Message -
From: "geeta eknath dhane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:16 AM
Subject: How to use optional tasks of ant1.3


> Hi,
>
> I need help regarding how to use optional tasks
> mainly 

Re: unwanted countprintouts for javac, java, junit

2001-07-09 Thread Klara Ward

You were right, when I removed parser.jar(causing count=0, total=123) and
jaxp.jar(causing count=0, total=9) from the classpath it stopped. Now the
only problem is to get correct ones..
(And it wasn't an ant-problem...)

Thanks, Klara

- Original Message -
From: "Conor MacNeill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:16 AM
Subject: Re: unwanted countprintouts for javac, java, junit


> I think one of your jars is corrupt. I have seen this behaviour in that
> circumstance.
>
> Conor
>
> ----- Original Message -
> From: "Klara Ward" <[EMAIL PROTECTED]>
> To: "ant-user" <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 6:43 PM
> Subject: unwanted countprintouts for javac, java, junit
>
>
> > Maybe this isn't an ant-problem but anyway,
> > I use ant to compile with javac and run tests with java or junit.
> > When I run I get the usual printouts combined with a lot of lines of :
> >  [java] count = 0, total = 9
> >  [java] count = 0, total = 123
> > The number of lines seemes to have something to do with how many files
> are
> > compiled/run but the numbers are always 0,9 and 123.
> > The problem just appeared some days ago and I can't connect it to
> anything I
> > changed just then that could have anything to do with it(but I probably
> did)
> > It also appears when I run the tests manually using java with the exact
> > command that ant prints out with the verbose-flag set.
> > Does anyone know anything about this? It doesn't obstruct the automatic
> > build/test-process, but its really annoying when you run ant manually.
> >
> > Klara
> >
> >
>




the ant task and targets

2001-07-10 Thread Klara Ward

If I want to use one buildfile to checkout the real buildfile and then run
ant with that one, can I use the target specified running ant with the first
buildfile when I run the ant task with the checkedout file?

Klara




RE: Nested library directories

2001-07-11 Thread Klara Ward


Do you do something like this:

  

  

isn't that recursive by nature, the ** can stand for anything, not just a directory?

Klara

> -Original Message-
> From: Ola Sandness [mailto:[EMAIL PROTECTED]]
> Sent: den 11 juli 2001 14:16
> To: '[EMAIL PROTECTED]'
> Subject: Nested library directories
> 
> 
> Hi,
> I understand that you can add all .jar files in one directory to the
> classpath, without naming every single one. That's cool. Is it possible to
> make this recursive, so that you can have a library tree with f.ex. one
> directory for each vendor, like this:
> 
> /lib/
>   |-- sun
>   ||- somelib.jar
>   ||- someother.jar
>   |
>   |-- ibm
>|- ibmlib.jar
>|- onemore.jar
> 
> 
> And then just recursively add all libraries resident under the 
> lib directory
> somewhere, in one go...
> 
> Possible?
> 
> Regards,
> Ola Sandness
> Accenture
> 




Another JUnitReport problem

2001-07-12 Thread Klara Ward

I use (or at least try out for a possible later need) junitreport. I've
succeded in getting the
TESTS-TestSuites.xml, I didn't have to add anything to my classpath (it's
really non-existing on my machine, I use different classpaths for different
situations) I just had to put xalan.jar and xerces.jar in ANT_HOME/lib. But
I couldn't use the nested report tag. I read what was said on the list about
it but I couldn't find the solution to the problem. I tried adding
xalanj1compat.jar and I got from one error

(java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTInputSource) to
another

(java.lang.VerifyError: (class: org/apache/tools/ant/taskde
fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
signature: (Ljava/lang/String;)Lo
rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
function call).

I also tried removing jaxp.jar and parser.jar from the lib, but that didn't
help either.

My junitreport looks like this:








the report tag is on line 167
and I get this error:

C:\anttestvecommon\builddebitech.xml:167: java.lang.VerifyError: (class:
org/apache/tools/ant/taskde
fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
signature: (Ljava/lang/String;)Lo
rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
function call
--- Nested Exception ---
java.lang.VerifyError: (class:
org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, me
thod: getXSLStreamSource signature:
(Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Inc
ompatible object argument for function call
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.createRepor
t(XMLResultAg
gregator.java:114)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper.java:1
67)
at
org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.j
ava:275)
at
org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectHelper.j
ava:535)
at
org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHelper.ja
va:499)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1191)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScan
ner.java:1238)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)

Does anyone know how to fix this, preferably without adding anything to the
classpath.
I use xalan-j_2_2_D6

Klara




Another JUnitReport problem

2001-07-12 Thread Klara Ward

I use (or at least try out for a possible later need) junitreport. I've
succeded in getting the
TESTS-TestSuites.xml, I didn't have to add anything to my classpath (it's
really non-existing on my machine, I use different classpaths for different
situations) I just had to put xalan.jar and xerces.jar in ANT_HOME/lib. But
I couldn't use the nested report tag. I read what was said on the list about
it but I couldn't find the solution to the problem. I tried adding
xalanj1compat.jar and I got from one error

(java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTInputSource) to
another

(java.lang.VerifyError: (class: org/apache/tools/ant/taskde
fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
signature: (Ljava/lang/String;)Lo
rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
function call).

I also tried removing jaxp.jar and parser.jar from the lib, but that didn't
help either.

My junitreport looks like this:








the report tag is on line 167
and I get this error:

C:\anttestvecommon\builddebitech.xml:167: java.lang.VerifyError: (class:
org/apache/tools/ant/taskde
fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
signature: (Ljava/lang/String;)Lo
rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
function call
--- Nested Exception ---
java.lang.VerifyError: (class:
org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, me
thod: getXSLStreamSource signature:
(Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Inc
ompatible object argument for function call
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.createRepor
t(XMLResultAg
gregator.java:114)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper.java:1
67)
at
org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.j
ava:275)
at
org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectHelper.j
ava:535)
at
org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHelper.ja
va:499)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1191)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScan
ner.java:1238)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)

Does anyone know how to fix this, preferably without adding anything to the
classpath.
I use xalan-j_2_2_D6




RE: Help: comma seperated values in inlcude

2001-07-12 Thread Klara Ward

The way I understand it you can either use

or
 
   
   
   
 

Klara

> -Original Message-
> From: Rob Cartier (Apollo) [mailto:[EMAIL PROTECTED]]
> Sent: den 12 juli 2001 14:52
> To: [EMAIL PROTECTED]
> Subject: Help: comma seperated values in inlcude
> 
> 
> I have been trying to use the include name= parameter  and have had no 
> success
> when trying to do a multiple.
> 
> <
> 
>   
> 
>   
> 
> if I try it  with a single pattern all is ok.
> see it in the docs but no examples :(
> 
> 
> 



RE: Another JUnitReport problem

2001-07-13 Thread Klara Ward

Great, now it worked. Nice stuff that came out of it as well..
Is it possible to turn off all the output(Transform time), perhaps by
a -quiet or something?

Klara

> -Original Message-
> From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
> Sent: den 12 juli 2001 16:32
> To: [EMAIL PROTECTED]
> Subject: RE: Another JUnitReport problem
>
>
>
> It does not work with xalan 2 (sorry the doc says it works but it does not
> because optional.jar was not built with xalan1 compatibility
> jar). 
> works only with xalan 1.2.2
>
> Plus I'm not sure that the xsl works with Xalan 2.2D6. I submitted a bug
> that I had with a xsl was similar to the junit one to xalan-dev a few days
> ago (EmptyStackException) that Scott Boag kindly fixed in the next hours.
> Should be fixed in CVS.
>
> --
>  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.




RE: Another JUnitReport problem

2001-07-13 Thread Klara Ward

Well, my classpath is still completly empty. 
I got the old xalan-version like Stephane said.
All I did was put xalan and xerces jars in ANT_HOME/lib

> -Original Message-
> From: Sanjay Bhatia [mailto:[EMAIL PROTECTED]]
> Sent: den 13 juli 2001 07:06
> To: [EMAIL PROTECTED]
> Subject: Re: Another JUnitReport problem
> 
> 
> Hi Klara,
> 
> You need to add xalan.jar (and possibly xerces.jar) to your 
> classpath.  You
> can't use the most recent versions, you will have to use the ones 
> available
> from the jakarta.apache.org/ant website.
> 
> sb
> 
> 
> 



the ant task and targets

2001-07-13 Thread Klara Ward

I tried asking this before without any answer, but I'll try agian:

If I want to use one buildfile to checkout the real buildfile and then run
ant with that one, can I use the target specified running ant with the first
buildfile when I run the ant task with the checkedout file?

something like

< checkout otherbuildfile.xml...>


RE: the ant task and targets

2001-07-13 Thread Klara Ward

Oh, I so your old answer now as well.
The first solution you suggested is probably a little more flexible than the
other.

Thanks, Klara

> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 13 juli 2001 13:54
> To: [EMAIL PROTECTED]
> Subject: Re: the ant task and targets
>
>
> On Fri, 13 Jul 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
>
> > I tried asking this before without any answer, but I'll try agian:
>
> I'm sure I've answered it the first time - you can always use
> -Dtarget=whatever on the command line when y build file.
>
> Another option (and I didn't include it in my first answer:
>
> For each target in otherbuildfile.xml you want to call, add a target
> to your wrapper build file like this
>
> 
>   
> 
>   
> 
>
> Stefan
>




lastGoodBuildTime

2001-07-23 Thread Klara Ward

I know I've read this somewhere, but I can't find it when I need it.
How do you set lastGoodBuildTime the first time?

I get this error:


clean:

init:

cruise-check:
java.text.ParseException: Unparseable date: "${lastGoodBuildTime}"
at java.text.DateFormat.parse(DateFormat.java:324)
at
net.sourceforge.cruisecontrol.ModificationSet.setLastBuild(ModificationSet.j
ava:83)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:352)
at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.ja
va:227)
at
org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:619)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.
java:134)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:220)
at org.apache.tools.ant.Target.execute(Target.java:152)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

BUILD FAILED

java.lang.NullPointerException
at
net.sourceforge.cruisecontrol.ModificationSet.execute(ModificationSet.java:1
12)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 2 seconds

and my build.xml has this in it:














Maybe this is a questions for the cruisecontrol-user list.

Klara




RE: Using Ant with SSH

2001-07-26 Thread Klara Ward

But I suppose the only way of doing this without human interaction is having
an empty passphrase?
(I tried scp:ing in an expect script to enter the passphrase automatically,
but it didn't work.)

Klara

> -Original Message-
> From: Filip Cruz [mailto:[EMAIL PROTECTED]]
> Sent: den 26 juli 2001 15:34
> To: [EMAIL PROTECTED]
> Subject: Re: Using Ant with SSH
>
>
> Cool!
> I'll give it a try.
>
> At 01:26 AM 7/27/2001 +1000, you wrote:
> >On Fri, 27 Jul 2001 01:17, Filip Cruz wrote:
> > > Sorry,
> > > I am trying to use Ant to deploy to our production servers
> through SSH. In
> > > brief I want to be able to deploy the files over SSH to the
> server from a
> > > task in the Ant build.xml file. I am using a Win2K client and
> I have SSH
> > > Secure Shell client and SecureCRT.
> > >
> > > Is there a way to deploy over SSH from Ant?? If so, how is it done?
> >
> >I don't know about SSH on win32 but on linux I can do something like.
> >
> >scp myfile.zip [EMAIL PROTECTED]:/my/deployment/dir
> >
> >and use public/private key system to authenticate. So to do it in ant it
> >would be as simple as
> >
> >
> >   
> >   
> >
> >
> >Cheers,
> >
> >Pete
> >
> >*-*
> >| "Faced with the choice between changing one's mind, |
> >| and proving that there is no need to do so - almost |
> >| everyone gets busy on the proof."   |
> >|  - John Kenneth Galbraith   |
> >*-*
>
>




JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

Is there some way you can make build fail if the junit tests fail?
You can set haltonfailure, bur I want to run all tests. The reason I want
this is because I run cruisecontrol, and it's not really good to recieve a
message "build successful" when tests have failed. In the java task you can
set failonerror but that's not really what I want either. I want the build
to continue, making junitreports and such, but then return a failure. Even
if it doesn't continue with the next target, I would like it to run all
tests even after one failed.
Is this possible?
The reason I ask here and not in the cruise-list is that I suppose that
cruisecontrol just uses the return value from the build.

Maybe it's against the nature of ant to fail, and then continue...

Klara





RE: JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

Do you think you could specify "rather soonish", a week? a month?
Is the fail-property in the 1.4 alpha?

Klara

> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 08:00
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
> 
> 
> On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
> 
> > Is there some way you can make build fail if the junit tests fail?
> > You can set haltonfailure, bur I want to run all tests.
> 
> In Ant 1.4 (due to be ready rather soonish) you can set a property on
> test failure - add to that a fail task in a target that only runs if
> the property is set and you should be done.
> 
> > The reason I want this is because I run cruisecontrol, and it's not
> > really good to recieve a message "build successful" when tests have
> > failed.
> 
> The property has been added for just that reason (I think it was CC's
> Robert Watkins who made the request).
> 
> Stefan
> 



RE: JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

I don't think I got it to work.
 my buildfile:







and


.

started with ant test.
Output:
[snip]
[junit] TEST a.b.CTest FAILED
[junit] TEST a.b.DTest FAILED

main:

BUILD SUCCESSFUL

Total time: 1 minute 54 seconds

Any ideas?

Klara


> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 08:38
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
> 
> 
> On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
> 
> > Feel like giving me a short example of how to use it?
> 
> Say your main target that builds everything, runs the tests and
> formats reports used to be "main".  Rename that target to real-main
> and add a target like this:
> 
> 
>   
> 
> 
> and in your junit tasks add the attribute
> errorproperty="tests-failed".
> 
> You still run the target main, as you used to do, all your stuff will
> build and be tested as usual.  If one of the unit test fails, the
> property tests-failed will be set (but all tests will be run) -
> otherwise the property will not be defined.
> 
> When the main target is reached, it will either be skipped (resulting
> in BUILD SUCCESSFUL) or a BuildException with the given method will be
> thrown, which will give you a BUILD FAILED.
> 
> Stefan
> 



RE: JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

Well, as I got errors it didn't have anything to do with that (it was
easiest just to remove some properties-files and get errors...)

I tried with failureproperty both in junit and batchtest and neither of them
worked.
I suppose I do something really stupid, but I can't see what.

Klara

> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
>
>
> On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
>
> > I don't think I got it to work.
>
> My fault, it should have been failureproperty, not errorproperty (see
> the documentation that is included in the nightly builds).
>
> errorproperty will be set if an error occured, failureproperty will be
> set on test failures.
>
> Stefan
>




RE: JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

I tried with this, both in junit and in the inner batchtest, and either it
said BUILD FAILED when I had haltonfailure="true" but didn't run all tests
or it said BUILD SUCCESSFUL when I had haltonfailure="false".

Maybe there's a difference between test and batchtest.

Klara

> -Original Message-
> From: Ravindra Jain [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 10:17
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
>
>
> Hi,
>
> I'm using following thing  :
>
>   
>
>
>
>   outfile="${build}/unitTestResults/Test1Result">
>   
>  
>   outfile="${build}/unitTestResults/Test2Result">
>  
>  
>   
>
> and it works, I mean it runs both the tests and says  "BUILD FAILED" if
> anyone of them fails.
> Maybe this is bcoz "haltonfailure" attribute's value is set to false..
> Try it..
>
> With Best Regards,
> Ravindra..
>
> - Original Message -
> From: "Klara Ward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 03, 2001 4:03 PM
> Subject: RE: JUnit tests fail -> build fail
>
>
> > I don't think I got it to work.
> >  my buildfile:
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > and
> > 
> > 
> > .
> >
> > started with ant test.
> > Output:
> > [snip]
> > [junit] TEST a.b.CTest FAILED
> > [junit] TEST a.b.DTest FAILED
> >
> > main:
> >
> > BUILD SUCCESSFUL
> >
> > Total time: 1 minute 54 seconds
> >
> > Any ideas?
> >
> > Klara
> >
> >
> > > -Original Message-
> > > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> > > Sent: den 3 augusti 2001 08:38
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: JUnit tests fail -> build fail
> > >
> > >
> > > On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
> > >
> > > > Feel like giving me a short example of how to use it?
> > >
> > > Say your main target that builds everything, runs the tests and
> > > formats reports used to be "main".  Rename that target to real-main
> > > and add a target like this:
> > >
> > > 
> > >   
> > > 
> > >
> > > and in your junit tasks add the attribute
> > > errorproperty="tests-failed".
> > >
> > > You still run the target main, as you used to do, all your stuff will
> > > build and be tested as usual.  If one of the unit test fails, the
> > > property tests-failed will be set (but all tests will be run) -
> > > otherwise the property will not be defined.
> > >
> > > When the main target is reached, it will either be skipped (resulting
> > > in BUILD SUCCESSFUL) or a BuildException with the given method will be
> > > thrown, which will give you a BUILD FAILED.
> > >
> > > Stefan
> > >
> >
>




RE: JUnit tests fail -> build fail

2001-08-03 Thread Klara Ward

It worked for me just as your example (except I have: Ant version 1.4alpha
compiled on August 2 2001 .. and I didn't get a stacktrace, only Wohoo!)

But
If I try with batchtest..


  






   

  

  

  



C:\anttest>ant -f junit.xml with-fail
Buildfile: junit.xml

without-fail:
[junit] TEST Dummy FAILED

with-fail:

BUILD SUCCESSFUL

Total time: 2 seconds


So what do you think of this...

Klara


> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 13:30
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
>
>
> On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
>
> > I tried with failureproperty both in junit and batchtest and neither
> > of them worked.
>
> junit.xml
> =
> 
>   
> 
>   
>   
> 
>   
>
>   
> 
>   
> 
>
> Dummy.java
> ==
> import junit.framework.TestCase;
>
> public class Dummy extends TestCase {
>
> public Dummy(String name) {
> super(name);
> }
>
> public void test1() {
> fail("I failed");
> }
> }
>
> Shell output
> 
> bodewig@bodewig /tmp/src >ant -version
> Ant version 1.4alpha compiled on August 3 2001
>
> bodewig@bodewig /tmp/src >ant -f junit.xml without-fail
> Buildfile: junit.xml
>
> without-fail:
> [junit] TEST Dummy FAILED
>
> BUILD SUCCESSFUL
>
> Total time: 1 second
>
> bodewig@bodewig /tmp/src >ant -f junit.xml with-fail
> Buildfile: junit.xml
>
> without-fail:
> [junit] TEST Dummy FAILED
>
> with-fail:
>
> BUILD FAILED
>
> /tmp/src/junit.xml:10: Wohoo!
>   at java.lang.Throwable.(Throwable.java:96)
>   at java.lang.Exception.(Exception.java:44)
>   at java.lang.RuntimeException.(RuntimeException.java:49)
>   at
> org.apache.tools.ant.BuildException.(BuildException.java:84)
>   at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:74)
>   at org.apache.tools.ant.Task.perform(Task.java:240)
>   at org.apache.tools.ant.Target.execute(Target.java:164)
>   at org.apache.tools.ant.Target.performTasks(Target.java:182)
>   at org.apache.tools.ant.Project.executeTarget(Project.java:568)
>   at org.apache.tools.ant.Project.executeTargets(Project.java:527)
>   at org.apache.tools.ant.Main.runBuild(Main.java:453)
>   at org.apache.tools.ant.Main.start(Main.java:154)
>   at org.apache.tools.ant.Main.main(Main.java:177)
>
> Total time: 1 second
>
> Stefan
>




RE: JUnit tests fail -> build fail

2001-08-06 Thread Klara Ward

Great, now it works. I got a little nervous before I switched to the correct
optional.jar... It's easy to forget it.

Instead I now managed to destroy my junitreport:
C:\antdebitech\builddebitech2.xml:147: Could not create task of type:
junitreport. Common solutions
are to use taskdef to declare your task, or, if this is an optional task, to
put the optional.jar i
 the lib directory of your ant installation (ANT_HOME).
at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
at org.apache.tools.ant.Task.perform(Task.java:197)
at org.apache.tools.ant.Target.execute(Target.java:164)
at org.apache.tools.ant.Target.performTasks(Target.java:182)
at org.apache.tools.ant.Project.executeTarget(Project.java:580)
at org.apache.tools.ant.Project.executeTargets(Project.java:539)
at org.apache.tools.ant.Main.runBuild(Main.java:453)
at org.apache.tools.ant.Main.start(Main.java:154)
at org.apache.tools.ant.Main.main(Main.java:177)

Total time: 2 seconds

I probably did something stupid. It works with ant 1.3 but I can't 1.4 to
work with junitreport, neither my old one(that once worked) nor the new one.
In my ant lib I have the jars ant, crimson, optional(the same version as
the ant1.4alpha, that is 2001-08-05), junit, xalan, xerces and
cruisecontrol. Where exactly is junitreport defined?

Did I loose some jar-file on the way, or what could I have done?

It would be nice to have everything working at the same time...

Klara

> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: den 3 augusti 2001 14:44
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
>
>
> On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
>
> > So what do you think of this...
>
> Think you've discovered a bug and provided a good testcase for it,
> thanks.
>
> The appended patch that fixes the problem will be committed in a few
> minutes.
>
> Stefan
>
>
>




RE: JUnit tests fail -> build fail

2001-08-06 Thread Klara Ward

Just to spam this list even further I'm not sure I tried junitreport with
1.4 at all. Has anyone else tried and got it to work?

Klara

> -Original Message-
> From: Klara Ward [mailto:[EMAIL PROTECTED]]
> Sent: den 6 augusti 2001 09:45
> To: [EMAIL PROTECTED]
> Subject: RE: JUnit tests fail -> build fail
>
>
> Great, now it works. I got a little nervous before I switched to
> the correct
> optional.jar... It's easy to forget it.
>
> Instead I now managed to destroy my junitreport:
> C:\antdebitech\builddebitech2.xml:147: Could not create task of type:
> junitreport. Common solutions
> are to use taskdef to declare your task, or, if this is an
> optional task, to
> put the optional.jar i
>  the lib directory of your ant installation (ANT_HOME).
> at
> org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)
> at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
> at org.apache.tools.ant.Task.perform(Task.java:197)
> at org.apache.tools.ant.Target.execute(Target.java:164)
> at org.apache.tools.ant.Target.performTasks(Target.java:182)
> at org.apache.tools.ant.Project.executeTarget(Project.java:580)
> at org.apache.tools.ant.Project.executeTargets(Project.java:539)
> at org.apache.tools.ant.Main.runBuild(Main.java:453)
> at org.apache.tools.ant.Main.start(Main.java:154)
> at org.apache.tools.ant.Main.main(Main.java:177)
>
> Total time: 2 seconds
>
> I probably did something stupid. It works with ant 1.3 but I can't 1.4 to
> work with junitreport, neither my old one(that once worked) nor
> the new one.
> In my ant lib I have the jars ant, crimson, optional(the same version as
> the ant1.4alpha, that is 2001-08-05), junit, xalan, xerces and
> cruisecontrol. Where exactly is junitreport defined?
>
> Did I loose some jar-file on the way, or what could I have done?
>
> It would be nice to have everything working at the same time...
>
> Klara
>
> > -Original Message-
> > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> > Sent: den 3 augusti 2001 14:44
> > To: [EMAIL PROTECTED]
> > Subject: Re: JUnit tests fail -> build fail
> >
> >
> > On Fri, 3 Aug 2001, Klara Ward <[EMAIL PROTECTED]> wrote:
> >
> > > So what do you think of this...
> >
> > Think you've discovered a bug and provided a good testcase for it,
> > thanks.
> >
> > The appended patch that fixes the problem will be committed in a few
> > minutes.
> >
> > Stefan
> >
> >
> >
>




RE: JUnit tests fail -> build fail

2001-08-06 Thread Klara Ward

Now it works nice. Nice to get rid of all those "Transform time..." as well.

Thanks everybody.

Klara

> -Original Message-
> From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
> Sent: den 6 augusti 2001 10:04
> To: [EMAIL PROTECTED]
> Subject: Re: JUnit tests fail -> build fail
> 
> 
> 
> - Original Message -
> From: "Stefan Bodewig" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 06, 2001 6:55 PM
> Subject: Re: JUnit tests fail -> build fail
> 
> 
> > On 06 Aug 2001, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> >
> > > I'm not sure whether the nightly builds contain this task,
> > > optional.jar is not complete there, a more complete version can be
> > > found here
> > >
> 
.
>
> which in turn doesn't contain the new junit stuff, sorry.

I've pushed up a new one 2001-08-06

Conor





1.4Beta1 and different versions of Xalan

2001-08-09 Thread Klara Ward

Using 1.4Beta1 and running JUnitReport I get this neat little thing:
[junitreport] Using Xalan version: 1.2.2

BUILD FAILED

java.lang.NoClassDefFoundError: com/ibm/bsf/util/BSFEngineImpl
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.xalan.xpath.ExtensionFunctionHandler.(ExtensionFunctionHand
ler.java:110)

at
org.apache.xalan.xslt.ExtensionNSHandler.(ExtensionNSHandler.java:104)
at
org.apache.xalan.xslt.StylesheetHandler.startElement(StylesheetHandler.java:
606)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1335)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:828)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1852)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScan
ner.java:1000)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
at
org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:293)
at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:8
06)
at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:647)
at
org.apache.tools.ant.taskdefs.optional.junit.Xalan1Executor.execute(Unknown
Source)
at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
Unknown Sourc
e)
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(Unk
nown Source)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:164)
at org.apache.tools.ant.Target.performTasks(Target.java:182)
at org.apache.tools.ant.Project.executeTarget(Project.java:599)
at org.apache.tools.ant.Project.executeTargets(Project.java:558)
at org.apache.tools.ant.Main.runBuild(Main.java:453)
at org.apache.tools.ant.Main.start(Main.java:154)
at org.apache.tools.ant.Main.main(Main.java:177)

Total time: 10 seconds
com/ibm/bsf/util/BSFEngineImpl

With Xalan 2.2.D6 everything worked nicely.

Is it supposed to be working with Xalan 1.2.2?

Klara