ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazandjian Erik <Erik.Kazandj...@siemens.atea.be>
Subject RE: upgrade from 1.3 to 1.4.1
Date Wed, 14 Nov 2001 12:32:46 GMT
Sorry Stephane for my stupidyness but I stil have problems.

I now tried the following

CLASSPATH=. ant -v -buildfile=my_build.xml target

where target points to the target tah makes the junitreport

This command fails, it gives (due to the verbose flag) the following

lalalala:
[junitreport] Parsing file:
'/home/integrator/.tests_output/TEST-com.siemens.square.test.suites.FacadeTe
sts.xml'

BUILD FAILED

/home/integrator/square/src/build.xml:589: Errors while applying
transformations
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:192)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.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)
--- Nested Exception ---
Could not find xalan2 nor xalan1 in the classpath. Check
http://xml.apache.org/xalan-j
	at
org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.newInstance(Aggre
gateTransformer.java:287)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:189)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.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: 1 second




If I put the xalan.jar in my $ANT_HOME/lib I get even worser error messages
like

[junitreport] Parsing file:
'/home/integrator/.tests_output/TEST-com.siemens.square.test.suites.FacadeTe
sts.xml'
[junitreport] Using Xalan version: 1.2
#
# HotSpot Virtual Machine Error, Unexpected Signal 11
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F4C494E55580E43505005BC
#
# Problematic Thread: prio=1 tid=0x804de78 nid=0x3055 runnable 
#
/usr/local/jakarta-ant-1.4.1/bin/ant: line 134: 12373 Aborted
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS
org.apache.tools.ant.Main "$@"



Any ideas ?






-----Original Message-----
From: Stephane Bailliez [mailto:sbailliez@imediation.com]
Sent: woensdag 14 november 2001 11:52
To: Ant Users List
Subject: RE: upgrade from 1.3 to 1.4.1


> -----Original Message-----
> From: Kazandjian Erik [mailto:Erik.Kazandjian@siemens.atea.be]
> 
> If I put these 2 jars (jaxp.jar and crimson.jar) in my 
> classpath shoudn't that do the job ?

What do you mean by 'classpath' here ?
I highly recommend to have your CLASSPATH environment variable empty. Or set
to '.' at least for convenience but that's all.

Ant will get all .jar file that you put in the lib directory and use it for
running its JVM.
If you do it this way you have better control on your environnement that
relying on some jars possibily set or not in your classpath. If you don't do
that there is no way for me that you can work correctly in a team because
you can be sure that not all developpers will be using the same versions
when running the build file.

So the best thing to do is to have Ant in source control along with its
appropriate libs and use a script in each build directory that refers to Ant
script (this way you don't have to deal about setting a Ant\bin in your
path, etc..) IMHO it's the best way to ensure integrity about your
environment and to be sure that all people are actually not shooting
themselves in the foot.

Stephane



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


Mime
View raw message